Blame SPECS/xmlgraphics-commons.spec

2cc3aa
%global pkg_name xmlgraphics-commons
2cc3aa
%{?scl:%scl_package %{pkg_name}}
2cc3aa
%{?maven_find_provides_and_requires}
2cc3aa
2cc3aa
Name:           %{?scl_prefix}%{pkg_name}
2cc3aa
Version:        1.5
2cc3aa
Release:        3.14%{?dist}
2cc3aa
Epoch:          0
2cc3aa
Summary:        XML Graphics Commons
2cc3aa
2cc3aa
License:        ASL 2.0
2cc3aa
URL:            http://xmlgraphics.apache.org/
2cc3aa
Source0:        http://apache.skknet.net/xmlgraphics/commons/source/%{pkg_name}-%{version}-src.tar.gz
2cc3aa
2cc3aa
BuildArch:      noarch
2cc3aa
BuildRequires:  %{?scl_prefix_java_common}javapackages-tools
2cc3aa
BuildRequires:  %{?scl_prefix_java_common}ant >= 0:1.6
2cc3aa
BuildRequires:  %{?scl_prefix_java_common}ant-junit >= 0:1.6
2cc3aa
BuildRequires:  %{?scl_prefix_java_common}junit
2cc3aa
BuildRequires:  %{?scl_prefix_java_common}apache-commons-io >= 1.3.1
2cc3aa
BuildRequires:  %{?scl_prefix_java_common}apache-commons-logging >= 1.0.4
2cc3aa
Requires:       %{?scl_prefix_java_common}apache-commons-io >= 1.3.1
2cc3aa
Requires:       %{?scl_prefix_java_common}apache-commons-logging >= 1.0.4
2cc3aa
2cc3aa
%description
2cc3aa
Apache XML Graphics Commons is a library that consists of
2cc3aa
several reusable components used by Apache Batik and
2cc3aa
Apache FOP. Many of these components can easily be used
2cc3aa
separately outside the domains of SVG and XSL-FO. You will
2cc3aa
find components such as a PDF library, an RTF library,
2cc3aa
Graphics2D implementations that let you generate PDF &
2cc3aa
PostScript files, and much more.
2cc3aa
2cc3aa
%package        javadoc
2cc3aa
Summary:        Javadoc for %{pkg_name}
2cc3aa
2cc3aa
%description    javadoc
2cc3aa
%{summary}.
2cc3aa
2cc3aa
2cc3aa
%prep
2cc3aa
%setup -q -n %{pkg_name}-%{version}
2cc3aa
%{?scl:scl enable %{scl} - <<"EOF"}
2cc3aa
set -e -x
2cc3aa
rm -f `find . -name "*.jar"`
2cc3aa
2cc3aa
# create pom from template
2cc3aa
sed "s:@version@:%{version}:g" %{pkg_name}-pom-template.pom \
2cc3aa
    > %{pkg_name}.pom
2cc3aa
%{?scl:EOF}
2cc3aa
2cc3aa
2cc3aa
%build
2cc3aa
%{?scl:scl enable %{scl} - <<"EOF"}
2cc3aa
set -e -x
2cc3aa
export CLASSPATH=$(build-classpath commons-logging)
2cc3aa
export OPT_JAR_LIST="ant/ant-junit junit"
2cc3aa
pushd lib
2cc3aa
ln -sf $(build-classpath commons-io) .
2cc3aa
popd
2cc3aa
ant package javadocs
2cc3aa
%{?scl:EOF}
2cc3aa
2cc3aa
%install
2cc3aa
%{?scl:scl enable %{scl} - <<"EOF"}
2cc3aa
set -e -x
2cc3aa
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
2cc3aa
install -Dpm 0644 build/%{pkg_name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{pkg_name}.jar
2cc3aa
install -pm 644 %{pkg_name}.pom $RPM_BUILD_ROOT/%{_mavenpomdir}/JPP-%{pkg_name}.pom
2cc3aa
%add_maven_depmap JPP-%{pkg_name}.pom %{pkg_name}.jar
2cc3aa
2cc3aa
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
2cc3aa
cp -pr build/javadocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
2cc3aa
%{?scl:EOF}
2cc3aa
2cc3aa
%files -f .mfiles
2cc3aa
%doc LICENSE NOTICE README
2cc3aa
2cc3aa
%files javadoc
2cc3aa
%doc LICENSE NOTICE
2cc3aa
%doc %{_javadocdir}/%{name}
2cc3aa
2cc3aa
2cc3aa
%changelog
2cc3aa
* Mon Feb 08 2016 Michal Srb <msrb@redhat.com> - 0:1.5-3.14
2cc3aa
- Fix BR on maven-local & co.
2cc3aa
2cc3aa
* Mon Jan 11 2016 Michal Srb <msrb@redhat.com> - 0:1.5-3.13
2cc3aa
- maven33 rebuild #2
2cc3aa
2cc3aa
* Sat Jan 09 2016 Michal Srb <msrb@redhat.com> - 0:1.5-3.12
2cc3aa
- maven33 rebuild
2cc3aa
2cc3aa
* Tue Jan 13 2015 Michael Simacek <msimacek@redhat.com> - 0:1.5-3.11
2cc3aa
- Mass rebuild 2015-01-13
2cc3aa
2cc3aa
* Mon Jan 12 2015 Michal Srb <msrb@redhat.com> - 1.5-3.10
2cc3aa
- Fix BR/R
2cc3aa
2cc3aa
* Wed Jan 07 2015 Michal Srb <msrb@redhat.com> - 1.5-3.9
2cc3aa
- Migrate to .mfiles
2cc3aa
2cc3aa
* Tue Jan 06 2015 Michael Simacek <msimacek@redhat.com> - 0:1.5-3.8
2cc3aa
- Mass rebuild 2015-01-06
2cc3aa
2cc3aa
* Mon May 26 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.5-3.7
2cc3aa
- Mass rebuild 2014-05-26
2cc3aa
2cc3aa
* Wed Feb 19 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.5-3.6
2cc3aa
- Mass rebuild 2014-02-19
2cc3aa
2cc3aa
* Tue Feb 18 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.5-3.5
2cc3aa
- Mass rebuild 2014-02-18
2cc3aa
2cc3aa
* Tue Feb 18 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.5-3.4
2cc3aa
- Remove requires on java
2cc3aa
2cc3aa
* Mon Feb 17 2014 Michal Srb <msrb@redhat.com> - 0:1.5-3.3
2cc3aa
- SCL-ize BR/R
2cc3aa
2cc3aa
* Thu Feb 13 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.5-3.2
2cc3aa
- Rebuild to regenerate auto-requires
2cc3aa
2cc3aa
* Tue Feb 11 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.5-3.1
2cc3aa
- First maven30 software collection build
2cc3aa
2cc3aa
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 01.5-3
2cc3aa
- Mass rebuild 2013-12-27
2cc3aa
2cc3aa
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.5-2
2cc3aa
- Rebuild to regenerate API documentation
2cc3aa
- Resolves: CVE-2013-1571
2cc3aa
2cc3aa
* Tue Mar 19 2013 Mat Booth <fedora@matbooth.co.uk> - 0:1.5-1
2cc3aa
- Update to 1.5, rhbz #895934
2cc3aa
- Drop unneeded patch
2cc3aa
2cc3aa
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.4-7
2cc3aa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2cc3aa
2cc3aa
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.4-6
2cc3aa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2cc3aa
2cc3aa
* Tue Mar 06 2012 Deepak Bhole <dbhole@redhat.com> 1.4-5
2cc3aa
- Added dist to the release tag
2cc3aa
2cc3aa
* Thu Mar 01 2012 Jiri Vanek <jvanek@redhat.com> - 0:1.4-5
2cc3aa
- Resolves: rhbz#796341
2cc3aa
- Added xmlgraphics-commons-java-7-fix.patch to fix build with Java 7
2cc3aa
2cc3aa
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.4-4
2cc3aa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
2cc3aa
2cc3aa
* Tue May  3 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:1.4-3
2cc3aa
- Install maven metadata
2cc3aa
- Versionless jars & javadocs
2cc3aa
- Fixes according to new guidelines
2cc3aa
2cc3aa
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.4-2
2cc3aa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2cc3aa
2cc3aa
* Fri Oct 1 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.4-1
2cc3aa
- Updte to 1.4.
2cc3aa
2cc3aa
* Sat Jan 9 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.3.1-1
2cc3aa
- Update to 1.3.1.
2cc3aa
- Fix Source0 url.
2cc3aa
2cc3aa
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.3-3
2cc3aa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
2cc3aa
2cc3aa
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.3-2
2cc3aa
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2cc3aa
2cc3aa
* Wed Apr 02 2008 Lillian Angel <langel at redhat.com> - 0:1.3-1
2cc3aa
- Added java-1.6.0-openjdk-devel as build requirement.
2cc3aa
2cc3aa
* Mon Mar 31 2008 Lillian Angel <langel at redhat.com> - 0:1.3-1
2cc3aa
- Updated sources to 1.3.
2cc3aa
2cc3aa
* Fri Nov 23 2007 Lillian Angel <langel at redhat.com> - 0:1.2-1
2cc3aa
- Added epoch.
2cc3aa
2cc3aa
* Fri Nov 23 2007 Lillian Angel <langel at redhat.com> - 0:1.2-1
2cc3aa
- Added missing BuildRoot line.
2cc3aa
2cc3aa
* Fri Nov 23 2007 Lillian Angel <langel at redhat.com> - 0:1.2-1
2cc3aa
- Fixed install section.
2cc3aa
2cc3aa
* Fri Nov 23 2007 Lillian Angel <langel at redhat.com> - 0:1.2-1
2cc3aa
- Fixed rpmlint errors.
2cc3aa
2cc3aa
* Tue Sep 18 2007 Joshua Sumali <jsumali at redhat.com> - 0:1.2-1jpp
2cc3aa
- Update to 1.2
2cc3aa
2cc3aa
* Tue May 23 2006 Ralph Apel <r.apel at r-apel.de> - 0:1.0-1jpp
2cc3aa
- First JPP-1.7 release