From 0bcf65e6beda66f1589cfa291feca850852a2881 Mon Sep 17 00:00:00 2001 From: Lillian Angel Date: Fri, 23 Nov 2007 15:11:26 +0000 Subject: [PATCH] - Fixedd rpmlint errors. --- .cvsignore | 1 + sources | 1 + xmlgraphics-commons.spec | 82 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 84 insertions(+) create mode 100644 xmlgraphics-commons.spec diff --git a/.cvsignore b/.cvsignore index e69de29..3676fad 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +xmlgraphics-commons-1.2-src.tar.gz diff --git a/sources b/sources index e69de29..a8b0196 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +d3cf738e3ef890bb1a1b1668ad4054ff xmlgraphics-commons-1.2-src.tar.gz diff --git a/xmlgraphics-commons.spec b/xmlgraphics-commons.spec new file mode 100644 index 0000000..67b8647 --- /dev/null +++ b/xmlgraphics-commons.spec @@ -0,0 +1,82 @@ +Name: xmlgraphics-commons +Version: 1.2 +Release: 1 +Epoch: 0 +Summary: XML Graphics Commons + +Group: Development/Libraries +License: ASL 2.0 +URL: http://xmlgraphics.apache.org/ +Source0: xmlgraphics-commons-1.2-src.tar.gz + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: jpackage-utils >= 0:1.6 +BuildRequires: ant >= 0:1.6 +BuildRequires: ant-junit >= 0:1.6 +BuildRequires: junit +BuildRequires: jakarta-commons-io >= 0:1.1 +Requires: jakarta-commons-io >= 0:1.1 + +%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 & +PostScript files, and much more. + +%package javadoc +Summary: Javadoc for %{name} +Group: Documentation + +%description javadoc +%{summary}. + + +%prep +%setup -q %{name}-%{version} +rm -f `find . -name "*.jar"` + + +%build +export OPT_JAR_LIST="ant/ant-junit junit" +pushd lib +ln -sf $(build-classpath commons-io) . +popd +ant package javadocs junit + +%install +rm -rf $RPM_BUILD_ROOT +install -Dpm 644 build/%{name}-%{version}.jar \ + $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar +ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar +install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} +cp -pr build/javadocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} +ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc LICENSE NOTICE README +%{_javadir}/*.jar + +%files javadoc +%defattr(-,root,root,-) +%doc %{_javadocdir}/%{name}-%{version} +%doc %{_javadocdir}/%{name} + + +%changelog +* Fri Nov 23 2007 Lillian Angel - 0:1.2-1 +- Fixedd rpmlint errors. + +* Tue Sep 18 2007 Joshua Sumali - 0:1.2-1jpp +- Update to 1.2 + +* Tue May 23 2006 Ralph Apel - 0:1.0-1jpp +- First JPP-1.7 release