Blame SPECS/maven-doxia-sitetools.spec

348015
# Copyright (c) 2000-2005, JPackage Project
348015
# All rights reserved.
348015
#
348015
# Redistribution and use in source and binary forms, with or without
348015
# modification, are permitted provided that the following conditions
348015
# are met:
348015
#
348015
# 1. Redistributions of source code must retain the above copyright
348015
#    notice, this list of conditions and the following disclaimer.
348015
# 2. Redistributions in binary form must reproduce the above copyright
348015
#    notice, this list of conditions and the following disclaimer in the
348015
#    documentation and/or other materials provided with the
348015
#    distribution.
348015
# 3. Neither the name of the JPackage Project nor the names of its
348015
#    contributors may be used to endorse or promote products derived
348015
#    from this software without specific prior written permission.
348015
#
348015
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
348015
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
348015
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
348015
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
348015
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
348015
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
348015
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
348015
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
348015
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
348015
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
348015
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
348015
#
348015
348015
%global parent maven-doxia
348015
%global subproj sitetools
348015
348015
Name:           %{parent}-%{subproj}
348015
Version:        1.4
348015
Release:        3%{?dist}
348015
Summary:        Doxia content generation framework
348015
License:        ASL 2.0
348015
Group:          Development/Tools
348015
URL:            http://maven.apache.org/doxia/
348015
348015
Source0:        http://repo2.maven.org/maven2/org/apache/maven/doxia/doxia-sitetools/%{version}/doxia-%{subproj}-%{version}-source-release.zip
348015
348015
348015
Patch1:         0001-Remove-dependency-on-velocity-tools.patch
348015
348015
BuildRequires:  maven-local
348015
BuildRequires:  java-devel
348015
BuildRequires:  mvn(commons-collections:commons-collections)
348015
BuildRequires:  mvn(org.apache.maven.doxia:doxia-core)
348015
BuildRequires:  mvn(org.apache.maven.doxia:doxia-logging-api)
348015
BuildRequires:  mvn(org.apache.maven.doxia:doxia-module-apt)
348015
BuildRequires:  mvn(org.apache.maven.doxia:doxia-module-fml)
348015
BuildRequires:  mvn(org.apache.maven.doxia:doxia-module-fo)
348015
BuildRequires:  mvn(org.apache.maven.doxia:doxia-module-xdoc)
348015
BuildRequires:  mvn(org.apache.maven.doxia:doxia-module-xhtml)
348015
BuildRequires:  mvn(org.apache.maven.doxia:doxia-sink-api)
348015
BuildRequires:  mvn(org.apache.maven:maven-parent)
348015
BuildRequires:  mvn(org.apache.velocity:velocity)
348015
BuildRequires:  mvn(org.codehaus.plexus:plexus-container-default)
348015
BuildRequires:  mvn(org.codehaus.plexus:plexus-i18n)
348015
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
348015
BuildRequires:  mvn(org.codehaus.plexus:plexus-velocity)
348015
BuildRequires:  mvn(xalan:xalan)
348015
BuildRequires:  mvn(xml-apis:xml-apis)
348015
348015
BuildArch:      noarch
348015
348015
%description
348015
Doxia is a content generation framework which aims to provide its
348015
users with powerful techniques for generating static and dynamic
348015
content. Doxia can be used to generate static sites in addition to
348015
being incorporated into dynamic content generation systems like blogs,
348015
wikis and content management systems.
348015
348015
%package javadoc
348015
Summary:        Javadoc for %{name}
348015
Group:          Documentation
348015
348015
%description javadoc
348015
API documentation for %{name}.
348015
348015
%prep
348015
%setup -q -n doxia-%{subproj}-%{version}
348015
348015
# upstream added support for velocity toolmanager, but it also means new
348015
# dependency on velocity-tools. we don't want to depend on this package
348015
# (it depends on struts 1) so this patch reverts upstream changes
348015
%patch1 -p1
348015
%pom_remove_dep :velocity-tools doxia-site-renderer
348015
348015
%pom_remove_plugin org.codehaus.mojo:clirr-maven-plugin
348015
%pom_remove_dep net.sourceforge.htmlunit:htmlunit doxia-site-renderer/pom.xml
348015
348015
348015
%pom_xpath_inject "pom:plugin[pom:artifactId[text()='modello-maven-plugin']]/pom:configuration" \
348015
    "<useJava5>true</useJava5>" doxia-decoration-model
348015
348015
# There are two backends for generating PDFs: one based on iText and
348015
# one using FOP.  iText module is broken and only brings additional
348015
# dependencies.  Besides that upstream admits that iText support will
348015
# likely removed in future versions of Doxia.  In Fedora we remove
348015
# iText backend sooner in order to fix dependency problems.
348015
#
348015
# See also: http://maven.apache.org/doxia/faq.html#How_to_export_in_PDF
348015
# http://lists.fedoraproject.org/pipermail/java-devel/2013-April/004742.html
348015
rm -rf $(find -type d -name itext)
348015
%pom_remove_dep :itext doxia-doc-renderer
348015
%pom_remove_dep :doxia-module-itext doxia-doc-renderer
348015
348015
%build
348015
# tests can't run because of missing deps
348015
%mvn_build -f
348015
348015
%install
348015
%mvn_install
348015
348015
348015
%files -f .mfiles
348015
348015
%files javadoc -f .mfiles-javadoc
348015
348015
%changelog
348015
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.4-3
348015
- Mass rebuild 2013-12-27
348015
348015
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.4-2
348015
- Rebuild to regenerate API documentation
348015
- Resolves: CVE-2013-1571
348015
348015
* Mon Apr 29 2013 Michal Srb <msrb@redhat.com> - 1.4-1
348015
- Update to upstream version 1.4
348015
- Remove unneeded patch
348015
348015
* Tue Apr  9 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.3-4
348015
- Fix BuildRequires
348015
348015
* Tue Apr  9 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.3-3
348015
- Remove iText PDF backend
348015
348015
* Tue Apr 09 2013 Michal Srb <msrb@redhat.com>
348015
- Remove dependency on velocity-tools
348015
348015
* Wed Feb 06 2013 Michal Srb <msrb@redhat.com> - 1.3-1
348015
- Update to upstream version 1.3
348015
- Migrate from maven-doxia to doxia subpackages (#889145)
348015
- Build with xmvn
348015
- Replace patches with pom_ macros
348015
- Remove unnecessary depmap
348015
348015
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1.2-6
348015
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
348015
- Replace maven BuildRequires with maven-local
348015
348015
* Wed Nov 28 2012 Tomas Radej <tradej@redhat.com> - 1.2-5
348015
- Removed (B)R on plexus-container-default
348015
348015
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2-4
348015
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
348015
348015
* Fri Jan 27 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.2-3
348015
- Remove dependency on plexux-xmlrpc
348015
- Add BR/R on java 1.7.0+
348015
348015
* Mon Jan 09 2012 Jaromir Capik <jcapik@redhat.com> - 1.2-2
348015
- Migration from plexus-maven-plugin to plexus-containers-component-metadata
348015
- Minor spec file changes according to the latest guidelines
348015
348015
* Fri May  6 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.2-1
348015
- Update to latest version (1.2)
348015
- Use maven 3 to build
348015
- Remove version limits on BR/R (not valid anymore anyway)
348015
348015
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-3
348015
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
348015
348015
* Fri Dec 17 2010 Alexander Kurtakov <akurtako@redhat.com> 1.1.3-2
348015
- Adapt to current guidelines.
348015
348015
* Tue Sep  7 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.1.3-1
348015
- Update to 1.1.3
348015
- Enable javadoc generation again
348015
- Update maven plugins BRs
348015
- Make dependency on maven-doxia unversioned
348015
348015
* Thu Jun 17 2010 Deepak Bhole <dbhole@redhat.com> - 0:1.1.2-3
348015
- Rebuild with maven 2.2.1
348015
- Remove modello 1.0 patch
348015
348015
* Wed May  5 2010 Mary Ellen Foster <mefoster at gmail.com> 0:1.1.2-2
348015
- Add (Build)Requirement maven-shared-reporting-impl,
348015
  plexus-containers-container-default, jakarta-commons-configuration
348015
348015
* Fri Feb 12 2010 Mary Ellen Foster <mefoster at gmail.com> 0:1.1.2-1
348015
- Update to 1.1.2
348015
- Temporarily disable javadoc until maven2-plugin-javadoc is rebuilt against
348015
  the new doxia
348015
348015
* Mon Dec 21 2009 Alexander Kurtakov <akurtako@redhat.com> 1.0-0.2.a10.2
348015
- BR maven-surefire-provider-junit.
348015
348015
* Tue Sep 01 2009 Andrew Overholt <overholt@redhat.com> 1.0-0.2.a10.1
348015
- Add itext, tomcat5, and tomcat5-servlet-2.4-api BRs
348015
348015
* Fri Aug 28 2009 Andrew Overholt <overholt@redhat.com> 1.0-0.2.a10
348015
- First Fedora build
348015
348015
* Fri Jun 20 2000 Deepak Bhole <dbhole@redhat.com> 1.0-0.1.a10.0jpp.1
348015
- Initial build