xmlgraphics-commons/xmlgraphics-commons.spec

146 lines
4.4 KiB
RPMSpec
Raw Normal View History

2007-11-23 15:11:26 +00:00
Name: xmlgraphics-commons
2010-10-01 06:50:04 +00:00
Version: 1.4
Release: 6%{?dist}
Epoch: 0
2007-11-23 15:11:26 +00:00
Summary: XML Graphics Commons
Group: Development/Libraries
License: ASL 2.0
URL: http://xmlgraphics.apache.org/
2010-01-09 13:00:22 +00:00
Source0: http://apache.skknet.net/xmlgraphics/commons/source/%{name}-%{version}-src.tar.gz
Patch0: %{name}-java-7-fix.patch
2007-11-23 15:11:26 +00:00
BuildArch: noarch
2010-10-01 06:50:04 +00:00
BuildRequires: java-devel >= 1:1.6.0
BuildRequires: jpackage-utils >= 0:1.6
BuildRequires: ant >= 0:1.6
BuildRequires: ant-junit >= 0:1.6
2007-11-23 15:11:26 +00:00
BuildRequires: junit
2010-10-01 06:50:04 +00:00
BuildRequires: apache-commons-io >= 0:1.1
BuildRequires: apache-commons-logging >= 0:1.0.4
Requires: apache-commons-logging >= 0:1.0.4
2010-10-01 06:50:04 +00:00
Requires: apache-commons-io >= 0:1.1
Requires(post): jpackage-utils
Requires(postun): jpackage-utils
2007-11-23 15:11:26 +00:00
%description
Apache XML Graphics Commons is a library that consists of
several reusable components used by Apache Batik and
Apache FOP. Many of these components can easily be used
separately outside the domains of SVG and XSL-FO. You will
find components such as a PDF library, an RTF library,
Graphics2D implementations that let you generate PDF &
2007-11-23 15:11:26 +00:00
PostScript files, and much more.
%package javadoc
Summary: Javadoc for %{name}
Group: Documentation
2010-10-01 06:50:04 +00:00
Requires: jpackage-utils
2007-11-23 15:11:26 +00:00
%description javadoc
%{summary}.
%prep
%setup -q %{name}-%{version}
rm -f `find . -name "*.jar"`
%patch0
2007-11-23 15:11:26 +00:00
# create pom from template
sed "s:@version@:%{version}:g" %{name}-pom-template.pom \
> %{name}.pom
2007-11-23 15:11:26 +00:00
%build
2010-10-01 06:50:04 +00:00
export CLASSPATH=$(build-classpath commons-logging)
2007-11-23 15:11:26 +00:00
export OPT_JAR_LIST="ant/ant-junit junit"
pushd lib
ln -sf $(build-classpath commons-io) .
popd
2007-11-23 15:25:28 +00:00
ant package javadocs
2007-11-23 15:11:26 +00:00
%install
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
install -Dpm 0644 build/%{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
install -pm 644 %{name}.pom $RPM_BUILD_ROOT/%{_mavenpomdir}/JPP-%{name}.pom
%add_to_maven_depmap org.apache.xmlgraphics %{name} %{version} JPP %{name}
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
cp -pr build/javadocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
2007-11-23 15:11:26 +00:00
%post
%update_maven_depmap
%postun
%update_maven_depmap
2007-11-23 15:11:26 +00:00
%files
%doc LICENSE NOTICE README
%{_mavendepmapfragdir}/%{name}
%{_mavenpomdir}/JPP-%{name}.pom
2007-11-23 15:11:26 +00:00
%{_javadir}/*.jar
%files javadoc
%doc LICENSE NOTICE
2007-11-23 15:11:26 +00:00
%doc %{_javadocdir}/%{name}
%changelog
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.4-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2012-03-06 21:11:33 +00:00
* Tue Mar 06 2012 Deepak Bhole <dbhole@redhat.com> 1.4-5
- Added dist to the release tag
* Thu Mar 01 2012 Jiri Vanek <jvanek@redhat.com> - 0:1.4-5
- Resolves: rhbz#796341
- Added xmlgraphics-commons-java-7-fix.patch to fix build with Java 7
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.4-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Tue May 3 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:1.4-3
- Install maven metadata
- Versionless jars & javadocs
- Fixes according to new guidelines
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2010-10-01 06:50:04 +00:00
* Fri Oct 1 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.4-1
- Updte to 1.4.
2010-01-09 13:00:22 +00:00
* Sat Jan 9 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.3.1-1
- Update to 1.3.1.
- Fix Source0 url.
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Wed Apr 02 2008 Lillian Angel <langel at redhat.com> - 0:1.3-1
- Added java-1.6.0-openjdk-devel as build requirement.
2008-03-31 21:11:24 +00:00
* Mon Mar 31 2008 Lillian Angel <langel at redhat.com> - 0:1.3-1
- Updated sources to 1.3.
* Fri Nov 23 2007 Lillian Angel <langel at redhat.com> - 0:1.2-1
2007-11-23 19:46:49 +00:00
- Added epoch.
2007-11-23 16:20:20 +00:00
* Fri Nov 23 2007 Lillian Angel <langel at redhat.com> - 0:1.2-1
- Added missing BuildRoot line.
2007-11-23 16:15:59 +00:00
* Fri Nov 23 2007 Lillian Angel <langel at redhat.com> - 0:1.2-1
- Fixed install section.
2007-11-23 15:11:26 +00:00
* Fri Nov 23 2007 Lillian Angel <langel at redhat.com> - 0:1.2-1
2007-11-23 15:14:21 +00:00
- Fixed rpmlint errors.
2007-11-23 15:11:26 +00:00
* Tue Sep 18 2007 Joshua Sumali <jsumali at redhat.com> - 0:1.2-1jpp
- Update to 1.2
* Tue May 23 2006 Ralph Apel <r.apel at r-apel.de> - 0:1.0-1jpp
- First JPP-1.7 release