Blame SPECS/maven-doxia-sitetools.spec

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