3a08a6
Name:		fop
3a08a6
Summary:	XSL-driven print formatter
3a08a6
Version:	1.1
e8efc7
Release:	6%{?dist}
3a08a6
# ASL 1.1:
3a08a6
# several files in src/java/org/apache/fop/render/awt/viewer/resources/
3a08a6
# rest is ASL 2.0
3a08a6
License:	ASL 2.0 and ASL 1.1
3a08a6
URL:		http://xmlgraphics.apache.org/fop
3a08a6
# ./create-tarball.sh %%{version}
3a08a6
Source0:	%{name}-%{version}-clean.tar.gz
3a08a6
Source1:	%{name}.script
3a08a6
Source2:	batik-pdf-MANIFEST.MF
3a08a6
Source3:	http://mirrors.ibiblio.org/pub/mirrors/maven2/org/apache/xmlgraphics/%{name}/%{version}/%{name}-%{version}.pom
3a08a6
Source4:	http://www.apache.org/licenses/LICENSE-1.1.txt
3a08a6
Source5:	create-tarball.sh
3a08a6
Patch0:		%{name}-main.patch
3a08a6
Patch1:		%{name}-Use-sRGB.icc-color-profile-from-icc-profiles-openicc.patch
3a08a6
3a08a6
BuildArch:	noarch
3a08a6
3a08a6
Requires:	xmlgraphics-commons >= 1.5
3a08a6
Requires:	avalon-framework >= 4.1.4
3a08a6
Requires:	batik >= 1.7
3a08a6
Requires:	xalan-j2 >= 2.7.0
3a08a6
Requires:	xml-commons-apis >= 1.3.04
3a08a6
Requires:	jakarta-commons-httpclient
3a08a6
Requires:	apache-commons-io >= 1.2
3a08a6
Requires:	apache-commons-logging >= 1.0.4
3a08a6
Requires:	java
3a08a6
Requires:	icc-profiles-openicc
3a08a6
3a08a6
BuildRequires:	ant
3a08a6
BuildRequires:	java-devel
3a08a6
BuildRequires:	apache-commons-logging
3a08a6
BuildRequires:	apache-commons-io
3a08a6
BuildRequires:	avalon-framework
3a08a6
BuildRequires:	xmlgraphics-commons >= 1.5
3a08a6
BuildRequires:	batik
3a08a6
BuildRequires:	servlet
3a08a6
BuildRequires:	qdox
3a08a6
BuildRequires:	xmlunit
3a08a6
BuildRequires:	zip
3a08a6
BuildRequires:	junit
3a08a6
3a08a6
%description
3a08a6
FOP is the world's first print formatter driven by XSL formatting
3a08a6
objects. It is a Java application that reads a formatting object tree
3a08a6
and then turns it into a PDF document. The formatting object tree, can
3a08a6
be in the form of an XML document (output by an XSLT engine like XT or
3a08a6
Xalan) or can be passed in memory as a DOM Document or (in the case of
3a08a6
XT) SAX events.
3a08a6
3a08a6
%package javadoc
3a08a6
Summary:	Javadoc for %{name}
3a08a6
3a08a6
%description    javadoc
3a08a6
Javadoc for %{name}.
3a08a6
3a08a6
%prep
3a08a6
%setup -q
3a08a6
%patch0 -p0
3a08a6
%patch1 -p1
3a08a6
3a08a6
cp %{SOURCE4} LICENSE-1.1
3a08a6
3a08a6
sed -i -e "s|1.4|1.5|g" build.xml
3a08a6
3a08a6
#upstream workaround -- many thanks to spepping@apache.org -- see https://issues.apache.org/bugzilla/show_bug.cgi?id=50575
3a08a6
ln -s %{_javadir}/qdox.jar lib/build/qdox.jar
3a08a6
3a08a6
%build
3a08a6
#qdox intentionally left off classpath -- see https://issues.apache.org/bugzilla/show_bug.cgi?id=50575
3a08a6
export CLASSPATH=$(build-classpath apache-commons-logging apache-commons-io xmlgraphics-commons batik-all avalon-framework-api avalon-framework-impl servlet batik/batik-svg-dom xml-commons-apis xml-commons-apis-ext objectweb-asm/asm-all xmlunit)
3a08a6
ant jar-main transcoder-pkg javadocs
3a08a6
3a08a6
%install
3a08a6
# inject OSGi manifests
3a08a6
install -d -m 755 META-INF
3a08a6
install -p -m 644 %{SOURCE2} META-INF/MANIFEST.MF
3a08a6
touch META-INF/MANIFEST.MF
3a08a6
zip -u build/%{name}.jar META-INF/MANIFEST.MF
3a08a6
3a08a6
# jars
3a08a6
install -d -m 755 %{buildroot}%{_javadir}
3a08a6
install -p -m 644 build/%{name}.jar %{buildroot}%{_javadir}/%{name}.jar
3a08a6
install -p -m 644 build/%{name}-transcoder.jar %{buildroot}%{_javadir}/pdf-transcoder.jar
3a08a6
3a08a6
# script
3a08a6
install -d -m 755 %{buildroot}%{_bindir}
3a08a6
install -p -m 755 %{SOURCE1} %{buildroot}%{_bindir}/fop
3a08a6
3a08a6
# data
3a08a6
install -d -m 755 %{buildroot}%{_datadir}/%{name}/conf
3a08a6
cp -rp conf/* %{buildroot}%{_datadir}/%{name}/conf
3a08a6
3a08a6
# javadoc
3a08a6
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
3a08a6
cp -rp build/javadocs/* %{buildroot}%{_javadocdir}/%{name}
3a08a6
3a08a6
install -d -m 755 %{buildroot}%{_mavenpomdir}
3a08a6
install -p -m 644 %{SOURCE3} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
3a08a6
%add_maven_depmap JPP-%{name}.pom %{name}.jar
3a08a6
3a08a6
3a08a6
%files
3a08a6
%doc LICENSE LICENSE-1.1 README NOTICE
3a08a6
%{_javadir}/%{name}.jar
3a08a6
%{_datadir}/%{name}
3a08a6
%{_javadir}/pdf-transcoder.jar
3a08a6
%{_mavendepmapfragdir}/%{name}
3a08a6
%{_mavenpomdir}/JPP-%{name}.pom
3a08a6
%{_bindir}/fop
3a08a6
3a08a6
%files javadoc
3a08a6
%doc %{_javadocdir}/%{name}
3a08a6
%doc LICENSE LICENSE-1.1
3a08a6
3a08a6
3a08a6
%changelog
e8efc7
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.1-6
e8efc7
- Mass rebuild 2013-12-27
e8efc7
3a08a6
* Fri Aug 02 2013 Michal Srb <msrb@redhat.com> - 1.1-5
3a08a6
- Add create-tarball.sh script to SRPM
3a08a6
3a08a6
* Tue Jul 02 2013 Michal Srb <msrb@redhat.com> - 1.1-4
3a08a6
- Fix license tag (Resolves: rhbz#979394)
3a08a6
- Add ASL 1.1 license text
3a08a6
3a08a6
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.1-3
3a08a6
- Rebuild to regenerate API documentation
3a08a6
- Resolves: CVE-2013-1571
3a08a6
3a08a6
* Fri Jun 21 2013 Michal Srb <msrb@redhat.com> - 1.1-2
3a08a6
- Build from clean tarball
3a08a6
- Spec file clean up
3a08a6
3a08a6
* Fri Apr 12 2013 Michal Srb <msrb@redhat.com> - 1.1-1
3a08a6
- Update to upstream version 1.1
3a08a6
- Replace proprietary color profile with free CP from icc-profiles-openicc package
3a08a6
- Resolves: rhbz#848659
3a08a6
3a08a6
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-21
3a08a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
3a08a6
3a08a6
* Sun Nov 18 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.0-20
3a08a6
- Add xml-commons-apis-ext to classpath
3a08a6
3a08a6
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-19
3a08a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
3a08a6
3a08a6
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-18
3a08a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
3a08a6
3a08a6
* Tue Jun 21 2011 Rüdiger Landmann <r.landmann@redhat.com> 1.0-16
3a08a6
- Supply missing event-model.xml files
3a08a6
3a08a6
* Fri Jun 3 2011 Rüdiger Landmann <r.landmann@redhat.com> 1.0-15
3a08a6
- Split avalon-framework into avalon-framework-api and avalon-framework-impl in classpath
3a08a6
3a08a6
* Thu Mar 10 2011 Alexander Kurtakov <akurtako@redhat.com> 1.0-14
3a08a6
- Reapply Fedora guidelines.
3a08a6
- Re-add pom.xml to unbreak Maven stack.
3a08a6
- Re-add OSGi manifest to unbreak Eclipse stack.
3a08a6
- Remove all bundled jars and classes and fix the build to work with our libs.
3a08a6
3a08a6
* Thu Mar 10 2011 Rüdiger Landmann <r.landmann@redhat.com> 1.0-13
3a08a6
- reinstate updated manifest patch
3a08a6
- change define to global
3a08a6
3a08a6
* Thu Mar 10 2011 Rüdiger Landmann <r.landmann@redhat.com> 1.0-12
3a08a6
- buildarch: noarch
3a08a6
3a08a6
* Thu Mar 10 2011 Rüdiger Landmann <r.landmann@redhat.com> 1.0-11
3a08a6
- drop obsolete manifest patch
3a08a6
3a08a6
* Wed Mar 10 2011 Rüdiger Landmann <r.landmann@redhat.com> 1.0-10
3a08a6
- import 1.0 into Fedora, based on Mandriva package
3a08a6
3a08a6
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-9
3a08a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
3a08a6
3a08a6
* Tue Jan 4 2011 Rüdiger Landmann <r.landmann@redhat.com> - 1.0-8
3a08a6
- BR qdox
3a08a6
3a08a6
* Tue Jan 4 2011 Rüdiger Landmann <r.landmann@redhat.com> - 1.0-7
3a08a6
- set BR on xmlgraphics-commons >= 1.4
3a08a6
- Add qdox classpath
3a08a6
3a08a6
* Thu Dec 09 2010 Paulo Ricardo Zanoni <pzanoni@mandriva.com> 1.0-0.0.3mdv2011.0
3a08a6
- Revision: 617684
3a08a6
- Resubmit after moving
3a08a6
3a08a6
* Fri Dec 3 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.0-6
3a08a6
- Add LICENSE to javadoc sub-package
3a08a6
- Few other tweaks according to new guidelines
3a08a6
- Make jars and javadoc versionless
3a08a6
- Add pom file (Resolves rhbz#655804)
3a08a6
3a08a6
* Fri Oct 1 2010 Alexander Kurtakov <akurtako@redhat.com> 1.0-5
3a08a6
- We need servlet not jsp.
3a08a6
3a08a6
* Fri Oct 1 2010 Alexander Kurtakov <akurtako@redhat.com> 1.0-4
3a08a6
- BR jsp.
3a08a6
3a08a6
* Fri Oct 1 2010 Alexander Kurtakov <akurtako@redhat.com> 1.0-3
3a08a6
- Add more BRs.
3a08a6
3a08a6
* Fri Oct 1 2010 Alexander Kurtakov <akurtako@redhat.com> 1.0-2
3a08a6
- BR ant-nodeps.
3a08a6
3a08a6
* Fri Oct 1 2010 Alexander Kurtakov <akurtako@redhat.com> 1.0-1
3a08a6
- Update to 1.0.
3a08a6
- BR/R java 1.6.0 not openjdk (rhbz#620330).
3a08a6
- Remove jars in prep.
3a08a6
3a08a6
* Sat Sep 04 2010 Tomasz Pawel Gajc <tpg@mandriva.org> 1.0-0.0.2mdv2011.0
3a08a6
- Revision: 576002
3a08a6
- rebuild for new xmlgraphics-commons
3a08a6
3a08a6
* Sun Aug 29 2010 Tomasz Pawel Gajc <tpg@mandriva.org> 1.0-0.0.1mdv2011.0
3a08a6
- Revision: 574030
3a08a6
- update to new version 1.0
3a08a6
- disable patch 1
3a08a6
- disable gcj support
3a08a6
3a08a6
* Thu Apr 29 2010 Tomasz Pawel Gajc <tpg@mandriva.org> 0.95-0.0.3mdv2010.1
3a08a6
- Revision: 540954
3a08a6
- rebuild
3a08a6
3a08a6
* Fri Sep 11 2009 Thierry Vignaud <tv@mandriva.org> 0.95-0.0.2mdv2010.0
3a08a6
- Revision: 437573
3a08a6
- rebuild
3a08a6
3a08a6
* Wed Dec 17 2008 Tomasz Pawel Gajc <tpg@mandriva.org> 0.95-0.0.1mdv2009.1
3a08a6
- Revision: 315376
3a08a6
- update to new version 0.95
3a08a6
- drop patch0, not needed anymore
3a08a6
- spec file clean
3a08a6
- drop useles buildrequires
3a08a6
- use %%java_home
3a08a6
3a08a6
* Sat Dec 29 2007 David Walluck <walluck@mandriva.org> 0.94-0.2.1mdv2008.1
3a08a6
- Revision: 139372
3a08a6
- spec cleanup
3a08a6
- import fop
3a08a6
3a08a6
3a08a6
* Fri Dec  7 2007 Lillian Angel <langel at redhat.com> - 0.94-2
3a08a6
- Updated Release.
3a08a6
3a08a6
* Thu Dec  6 2007 Lillian Angel <langel at redhat.com> - 0.94-1
3a08a6
- Removed ppc/64 conditions since IcedTea is now available for ppc/64.
3a08a6
3a08a6
* Tue Nov 27 2007 Lillian Angel <langel at redhat.com> - 0.94-1
3a08a6
- Fixed to build with gcj on ppc/64.
3a08a6
3a08a6
* Fri Nov 23 2007 Lillian Angel <langel at redhat.com> - 0.94-1
3a08a6
- Fixed rpmlint errors.
3a08a6
3a08a6
* Tue Sep 18 2007 Joshua Sumali <jsumali at redhat.com> - 0:0.94-1
3a08a6
- Update to fop 0.94
3a08a6
3a08a6
* Thu Mar 30 2006 Ralph Apel <r.apel at r-apel.de> - 0:0.20.5-9jpp
3a08a6
- First build for JPP-1.7
3a08a6
- Replace avalon-framework, avalon-logkit with their new excalibur-*
3a08a6
  counterparts
3a08a6
- Drop non-free jimi and jai BRs
3a08a6
3a08a6
* Tue Oct 11 2005 Ralph Apel <r.apel at r-apel.de> - 0:0.20.5-8jpp
3a08a6
- Patch to Batik >= 1.5.1
3a08a6
3a08a6
* Fri Oct 07 2005 Ralph Apel <r.apel at r-apel.de> - 0:0.20.5-7jpp
3a08a6
- Omit ant -d flag
3a08a6
3a08a6
* Mon Aug 23 2004 Ralph Apel <r.apel at r-apel.de> - 0:0.20.5-6jpp
3a08a6
- Build with ant-1.6.2
3a08a6
3a08a6
* Fri Aug 06 2004 Ralph Apel <r.apel at r-apel.de> - 0:0.20.5-5jpp
3a08a6
- Void change
3a08a6
3a08a6
* Tue Jun 01 2004 Randy Watler <rwatler at finali.com> - 0:0.20.5-4jpp
3a08a6
- Upgrade to Ant 1.6.X
3a08a6
3a08a6
* Thu Jan  8 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.20.5-3jpp
3a08a6
- BuildRequires ant-optional.
3a08a6
- Crosslink with full J2SE javadocs instead of just JAXP/XML-commons.
3a08a6
- Add Main-Class back to manifest.
3a08a6
3a08a6
* Tue Sep 23 2003 Paul Nasrat <pauln at truemesh.com> - 0:0.20.5-2jpp
3a08a6
- Fix script and requires
3a08a6
- Remove class path in manifest
3a08a6
- New javadoc style
3a08a6
3a08a6
* Sat Jul 19 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.20.5-1jpp
3a08a6
- Update to 0.20.5.
3a08a6
- Crosslink with xml-commons-apis and batik javadocs.
3a08a6
- BuildRequires jai, jce and jimi.
3a08a6
3a08a6
* Sat Jun  7 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.20.5-0.rc3a.1jpp
3a08a6
- Update to 0.20.5rc3a.
3a08a6
- Include fop script.
3a08a6
- Non-versioned javadoc symlinks.
3a08a6
3a08a6
* Thu Apr 17 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.20.5-0.rc2.1jpp
3a08a6
- Update to 0.20.5rc2 and JPackage 1.5.
3a08a6
3a08a6
* Sun Mar 10 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 0.20.3-1jpp
3a08a6
- 0.20.3 final
3a08a6
- fixed missing symlink
3a08a6
3a08a6
* Mon Jan 21 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 0.20.3-0.rc.1jpp
3a08a6
- 0.20.3rc
3a08a6
- first unified release
3a08a6
- javadoc into javadoc package
3a08a6
- no dependencies for manual package
3a08a6
- s/jPackage/JPackage
3a08a6
- adaptation to new xalan-j2 package
3a08a6
- requires and buildrequires avalon-logkit
3a08a6
3a08a6
* Thu Aug 30 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 0.20.1-1mdk
3a08a6
- first release