Blame SPECS/fop.spec

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