138e2917c1
Mon Jul 01 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 2.3.1-2jpp - provides jaxp_transform_impl - requires jaxp_parser_impl - stylebook already requires xml-commons-apis - jaxp_parser_impl already requires xml-commons-apis - use sed instead of bash 2.x extension in link area to make spec compatible with distro using bash 1.1x
421 lines
14 KiB
RPMSpec
421 lines
14 KiB
RPMSpec
%define section free
|
|
%define version 2.6.0
|
|
%define cvs_version 2_6_0
|
|
|
|
Name: xalan-j2
|
|
Version: %{version}
|
|
Release: 3jpp_9fc
|
|
Epoch: 0
|
|
Summary: Java XSLT processor
|
|
License: Apache Software License
|
|
Source0: xalan-j_%{cvs_version}-src-RHsemiCLEAN.tar.bz2
|
|
Patch0: %{name}-noxsltcdeps.patch
|
|
Patch1: %{name}-manifest.patch
|
|
Patch2: %{name}-crosslink.patch
|
|
Patch4: %{name}-bz152255.patch
|
|
Patch5: %{name}-javadoc.patch
|
|
Patch6: %{name}-notarget.patch
|
|
URL: http://xml.apache.org/xalan-j/
|
|
Group: Text Processing/Markup/XML
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
|
|
|
|
Provides: jaxp_transform_impl
|
|
Requires: jaxp_parser_impl, /usr/sbin/update-alternatives
|
|
BuildRequires: ant, xml-commons-apis, bcel, servletapi5, jlex, java_cup, sed
|
|
BuildRequires: jpackage-utils >= 0:1.5, java-devel, xerces-j2
|
|
# RHEL3 and FC2
|
|
Obsoletes: xalan-j <= 0:2.4.1
|
|
# libgcj aot-compiled native libraries
|
|
BuildRequires: java-gcj-compat-devel >= 1.0.31
|
|
Requires(post): java-gcj-compat >= 1.0.31
|
|
Requires(postun): java-gcj-compat >= 1.0.31
|
|
|
|
%description
|
|
Xalan is an XSLT processor for transforming XML documents into HTML,
|
|
text, or other XML document types. It implements the W3C Recommendations
|
|
for XSL Transformations (XSLT) and the XML Path Language (XPath). It can
|
|
be used from the command line, in an applet or a servlet, or as a module
|
|
in other program.
|
|
|
|
%package xsltc
|
|
Summary: XSLT compiler
|
|
Group: Text Processing/Markup/XML
|
|
Requires: java_cup, bcel, jlex, regexp, jaxp_parser_impl
|
|
#Requires: /usr/sbin/update-alternatives
|
|
#Provides: jaxp_transform_impl
|
|
Requires(post): java-gcj-compat >= 1.0.31
|
|
Requires(postun): java-gcj-compat >= 1.0.31
|
|
|
|
%description xsltc
|
|
The XSLT Compiler is a Java-based tool for compiling XSLT stylesheets into
|
|
lightweight and portable Java byte codes called translets.
|
|
|
|
%package manual
|
|
Summary: Manual for %{name}
|
|
Group: Text Processing/Markup/XML
|
|
|
|
%description manual
|
|
Documentation for %{name}.
|
|
|
|
%package javadoc
|
|
Summary: Javadoc for %{name}
|
|
Group: Development/Documentation
|
|
BuildRequires: java-javadoc
|
|
Prereq: coreutils
|
|
|
|
%description javadoc
|
|
Javadoc for %{name}.
|
|
|
|
%package demo
|
|
Summary: Demo for %{name}
|
|
Group: Text Processing/Markup/XML
|
|
Requires: %{name} = %{epoch}:%{version}-%{release}, servletapi5
|
|
BuildRequires: servletapi5
|
|
Requires(post): java-gcj-compat >= 1.0.31
|
|
Requires(postun): java-gcj-compat >= 1.0.31
|
|
|
|
%description demo
|
|
Demonstrations and samples for %{name}.
|
|
|
|
%prep
|
|
%setup -q -n xalan-j_%{cvs_version}
|
|
%patch0 -p0
|
|
%patch1 -p0
|
|
%patch2 -p0
|
|
%patch4 -p1
|
|
%patch5 -p1
|
|
%patch6 -p0
|
|
# Remove all binary libs, except ones needed to build docs and N/A elsewhere.
|
|
find . -name "*.jar" \
|
|
! -name xalan2jdoc.jar \
|
|
! -name stylebook-1.0-b3_xalan-2.jar \
|
|
-exec rm -f {} \;
|
|
|
|
%build
|
|
if [ ! -e "$JAVA_HOME" ] ; then export JAVA_HOME="%{java_home}" ; fi
|
|
export CLASSPATH=$(build-classpath servletapi5 java_cup java_cup-runtime jlex \
|
|
bcel xerces-j2)
|
|
|
|
ant \
|
|
-Djava.awt.headless=true \
|
|
-Dapi.j2se=%{_javadocdir}/java \
|
|
-Dbuild.xalan-interpretive.jar=build/xalan-interpretive.jar \
|
|
xalan-interpretive.jar\
|
|
xsltc.unbundledjar \
|
|
docs \
|
|
xsltc.docs \
|
|
javadocs \
|
|
samples \
|
|
servlet
|
|
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
# jars
|
|
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
|
|
install -p -m 644 build/xalan-interpretive.jar \
|
|
$RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
|
|
install -p -m 644 build/xsltc.jar \
|
|
$RPM_BUILD_ROOT%{_javadir}/xsltc-%{version}.jar
|
|
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
|
|
|
|
# javadoc
|
|
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
|
cp -pr build/docs/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
|
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
|
rm -rf build/docs/apidocs
|
|
|
|
# demo
|
|
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/%{name}
|
|
install -p -m 644 build/xalansamples.jar \
|
|
$RPM_BUILD_ROOT%{_datadir}/%{name}/%{name}-samples.jar
|
|
install -p -m 644 build/xalanservlet.war \
|
|
$RPM_BUILD_ROOT%{_datadir}/%{name}/%{name}-servlet.war
|
|
cp -pr samples $RPM_BUILD_ROOT%{_datadir}/%{name}
|
|
|
|
# fix link between manual and javadoc
|
|
(cd build/docs; ln -sf %{_javadocdir}/%{name}-%{version} apidocs)
|
|
|
|
# jaxp_transform_impl ghost symlink
|
|
ln -s %{_sysconfdir}/alternatives \
|
|
$RPM_BUILD_ROOT%{_javadir}/jaxp_transform_impl.jar
|
|
|
|
aot-compile-rpm --exclude %{_datadir}/%{name}/%{name}-servlet.war
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%pre
|
|
rm -f %{_javadir}/%{name}.jar
|
|
|
|
%post
|
|
update-alternatives --install %{_javadir}/jaxp_transform_impl.jar \
|
|
jaxp_transform_impl %{_javadir}/%{name}.jar 30
|
|
%{_bindir}/rebuild-gcj-db
|
|
|
|
%postun
|
|
%{_bindir}/rebuild-gcj-db
|
|
|
|
%preun
|
|
{
|
|
[ $1 = 0 ] || exit 0
|
|
update-alternatives --remove jaxp_transform_impl %{_javadir}/%{name}.jar
|
|
} >/dev/null 2>&1 || :
|
|
|
|
%post xsltc
|
|
#update-alternatives --install %{_javadir}/jaxp_transform_impl.jar \
|
|
# jaxp_transform_impl %{_javadir}/xsltc.jar 10
|
|
%{_bindir}/rebuild-gcj-db
|
|
|
|
%preun xsltc
|
|
#{
|
|
# [ $1 = 0 ] || exit 0
|
|
# update-alternatives --remove jaxp_transform_impl %{_javadir}/xsltc.jar
|
|
#} >/dev/null 2>&1 || :
|
|
%{_bindir}/rebuild-gcj-db
|
|
|
|
%post demo
|
|
%{_bindir}/rebuild-gcj-db
|
|
|
|
%postun demo
|
|
%{_bindir}/rebuild-gcj-db
|
|
|
|
%post javadoc
|
|
rm -f %{_javadocdir}/%{name}
|
|
ln -s %{name}-%{version} %{_javadocdir}/%{name}
|
|
|
|
%files
|
|
%defattr(0644,root,root,0755)
|
|
%doc KEYS LICENSE NOTICE
|
|
%{_javadir}/%{name}-%{version}.jar
|
|
%{_javadir}/%{name}.jar
|
|
%ghost %{_javadir}/jaxp_transform_impl.jar
|
|
%dir %{_libdir}/gcj/%{name}
|
|
%attr(-,root,root) %{_libdir}/gcj/%{name}/%{name}-%{version}.jar.*
|
|
|
|
%files xsltc
|
|
%defattr(0644,root,root,0755)
|
|
%{_javadir}/xsltc-%{version}.jar
|
|
%{_javadir}/xsltc.jar
|
|
#%ghost %{_javadir}/jaxp_transform_impl.jar
|
|
%attr(-,root,root) %{_libdir}/gcj/%{name}/xsltc-%{version}.jar.*
|
|
|
|
%files manual
|
|
%defattr(0644,root,root,0755)
|
|
%doc build/docs/*
|
|
|
|
%files javadoc
|
|
%defattr(0644,root,root,0755)
|
|
%doc %{_javadocdir}/%{name}-%{version}
|
|
%ghost %doc %{_javadocdir}/%{name}
|
|
|
|
%files demo
|
|
%defattr(0644,root,root,0755)
|
|
%{_datadir}/%{name}
|
|
%attr(-,root,root) %{_libdir}/gcj/%{name}/%{name}-samples.jar.*
|
|
|
|
%changelog
|
|
* Mon Mar 6 2006 Jeremy Katz <katzj@redhat.com> - 0:2.6.0-3jpp_9fc
|
|
- stop scriptlet spew
|
|
|
|
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0:2.6.0-3jpp_8fc
|
|
- bump again for double-long bug on ppc(64)
|
|
|
|
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0:2.6.0-3jpp_7fc
|
|
- rebuilt for new gcc4.1 snapshot and glibc changes
|
|
|
|
* Wed Dec 21 2005 Jesse Keating <jkeating@redhat.com> 0:2.6.0-3jpp_6fc
|
|
- rebuild again
|
|
|
|
* Tue Dec 13 2005 Jesse Keating <jkeating@redhat.com> 0:2.6.0-3jpp_5fc.3
|
|
- patch to not use target= in build.xml
|
|
|
|
* Tue Dec 13 2005 Jesse Keating <jkeating@redhat.com> 0:2.6.0-3jpp_5fc.1
|
|
- rebuild again with gcc-4.1
|
|
|
|
* Fri Dec 09 2005 Warren Togami <wtogami@redhat.com> 0:2.6.0-3jpp_5fc
|
|
- rebuild with gcc-4.1
|
|
|
|
* Tue Nov 1 2005 Archit Shah <ashah at redhat.com> 0:2.6.0-3jpp_4fc
|
|
- Exclude war which blocks aot compilation of main jar (#171005).
|
|
|
|
* Tue Jul 19 2005 Gary Benson <gbenson at redhat.com> 0:2.6.0-3jpp_3fc
|
|
- Build on ia64, ppc64, s390 and s390x.
|
|
- Switch to aot-compile-rpm (also BC-compiles xsltc and samples).
|
|
|
|
* Tue Jun 28 2005 Gary Benson <gbenson at redhat.com> 0:2.6.0-3jpp_2fc
|
|
- Remove a tarball from the tarball too.
|
|
- Fix demo subpackage's dependencies.
|
|
|
|
* Wed Jun 15 2005 Gary Benson <gbenson at redhat.com> 0:2.6.0-3jpp_1fc
|
|
- Remove jarfiles from the tarball.
|
|
|
|
* Fri May 27 2005 Gary Benson <gbenson at redhat.com> 0:2.6.0-3jpp
|
|
- Add NOTICE file as per Apache License version 2.0.
|
|
- Build with servletapi5.
|
|
|
|
* Fri May 27 2005 Gary Benson <gbenson@redhat.com> 0:2.6.0-2jpp_3fc
|
|
- Remove now-unnecessary workaround for #130162.
|
|
- Rearrange how BC-compiled stuff is built and installed.
|
|
|
|
* Tue May 24 2005 Gary Benson <gbenson@redhat.com> 0:2.6.0-2jpp_2fc
|
|
- Add DOM3 stubs to classes that need them (#152255).
|
|
- BC-compile the main jarfile.
|
|
|
|
* Fri Apr 1 2005 Gary Benson <gbenson@redhat.com>
|
|
- Add NOTICE file as per Apache License version 2.0.
|
|
|
|
* Wed Jan 12 2005 Gary Benson <gbenson@redhat.com> 0:2.6.0-2jpp_1fc
|
|
- Sync with RHAPS.
|
|
|
|
* Mon Nov 15 2004 Fernando Nasser <fnasser@redhat.com> 0:2.6.0-2jpp_1rh
|
|
- Merge with latest community release
|
|
|
|
* Thu Nov 4 2004 Gary Benson <gbenson@redhat.com> 0:2.6.0-1jpp_2fc
|
|
- Build into Fedora.
|
|
|
|
* Thu Aug 26 2004 Ralph Apel <r.ape at r-apel.de> 0:2.6.0-2jpp
|
|
- Build with ant-1.6.2
|
|
- Try with -Djava.awt.headless=true
|
|
|
|
* Mon Jul 26 2004 Fernando Nasser <fnasser@redhat.com> 0:2.6.0-1jpp_1rh
|
|
- Merge with latest community version
|
|
|
|
* Fri Mar 26 2004 Frank Ch. Eigler <fche@redhat.com> 0:2.5.2-1jpp_2rh
|
|
- add RHUG upgrade cleanup
|
|
|
|
* Tue Mar 23 2004 Kaj J. Niemi <kajtzu@fi.basen.net> 0:2.6.0-1jpp
|
|
- Updated to 2.6.0
|
|
- Patches supplied by <aleksander.adamowski@altkom.pl>
|
|
|
|
* Thu Mar 4 2004 Frank Ch. Eigler <fche@redhat.com> - 0:2.5.2-1jpp_1rh
|
|
- RH vacuuming
|
|
|
|
* Sat Nov 15 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:2.5.2-1jpp
|
|
- Update to 2.5.2.
|
|
- Re-enable javadocs, new style versionless symlink handling, crosslink
|
|
with local J2SE javadocs.
|
|
- Spec cleanups.
|
|
|
|
* Sat Jun 7 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:2.5.1-1jpp
|
|
- Update to 2.5.1.
|
|
- Fix jpackage-utils version in BuildRequires, add xerces-j2.
|
|
- Non-versioned javadoc symlinking.
|
|
- Add one missing epoch.
|
|
- Clean up manifests from Class-Path's and other stuff we don't include.
|
|
- xsltc no longer provides a jaxp_transform_impl because of huge classpath
|
|
and general unsuitablity for production-use, system-installed transformer.
|
|
- Own (ghost) %%{_javadir}/jaxp_transform_impl.jar.
|
|
- Remove alternatives in preun instead of postun.
|
|
- Disable javadoc subpackage for now:
|
|
<http://issues.apache.org/bugzilla/show_bug.cgi?id=20572>
|
|
|
|
* Thu Mar 27 2003 Nicolas Mailhot <Nicolas.Mailhot@One2team.com> 0:2.5.0.d1-1jpp
|
|
- For jpackage-utils 1.5
|
|
|
|
* Wed Jan 22 2003 Ville Skyttä <ville.skytta at iki.fi> - 2.4.1-2jpp
|
|
- bsf -> oldbsf.
|
|
- Use non-versioned jar in alternative, don't remove it on upgrade.
|
|
- Remove hardcoded packager tag.
|
|
|
|
* Mon Nov 04 2002 Henri Gomez <hgomez@users.sourceforge.net> 2.4.1-1jpp
|
|
- 2.4.1
|
|
|
|
* Tue Sep 10 2002 Ville Skyttä <ville.skytta at iki.fi> 2.4.0-1jpp
|
|
- 2.4.0.
|
|
|
|
* Thu Aug 22 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 2.4-0.D1.3jpp
|
|
- corrected case for Group tag
|
|
- fixed servlet classpath
|
|
|
|
* Tue Aug 20 2002 Ville Skyttä <ville.skytta at iki.fi> 2.4-0.D1.2jpp
|
|
- Remove xerces-j1 runtime dependency.
|
|
- Add bcel, jlex, regexp to xsltc runtime requirements:
|
|
<http://xml.apache.org/xalan-j/xsltc_usage.html>
|
|
- Build with -Dbuild.compiler=modern (IBM 1.3.1) to avoid stylebook errors.
|
|
- XSLTC now provides jaxp_transform_impl too.
|
|
- Earlier changes by Henri, from unreleased 2.4-D1.1jpp:
|
|
Mon Jul 15 2002 Henri Gomez <hgomez@users.sourceforge.net> 2.4-D1.1jpp
|
|
- 2.4D1
|
|
- use the jlex 1.2.5-5jpp (patched by Xalan/XSLTC team) rpm
|
|
- use the stylebook-1.0-b3_xalan-2.jar included in source file till it will
|
|
be packaged in jpackage
|
|
- use jaxp_parser_impl (possibly xerces-j2) instead of xerces-j1 for docs
|
|
generation, since it's tuned for stylebook-1.0-b3_xalan-2.jar
|
|
- build and provide xsltc in a separate rpm
|
|
|
|
%changelog
|
|
* Mon Jul 01 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 2.3.1-2jpp
|
|
- provides jaxp_transform_impl
|
|
- requires jaxp_parser_impl
|
|
- stylebook already requires xml-commons-apis
|
|
- jaxp_parser_impl already requires xml-commons-apis
|
|
- use sed instead of bash 2.x extension in link area to make spec compatible with distro using bash 1.1x
|
|
|
|
* Wed Jun 26 2002 Henri Gomez <hgomez@users.sourceforge.net> 2.3.1-2jpp
|
|
- fix built classpath (bsf, bcel are existing jpackage rpms),
|
|
- add buildrequires for javacup and JLex
|
|
|
|
* Wed May 08 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 2.3.1-1jpp
|
|
- 2.3.1
|
|
- vendor, distribution, group tags
|
|
|
|
* Mon Mar 18 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 2.3.0-2jpp
|
|
- generic servlet support
|
|
|
|
* Wed Feb 20 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 2.3.0-1jpp
|
|
- 2.3.0
|
|
- no more compat jar
|
|
|
|
* Sun Jan 27 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 2.2.0-2jpp
|
|
- adaptation to new stylebook1.0b3 package
|
|
- used source tarball
|
|
- section macro
|
|
|
|
* Fri Jan 18 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 2.2.0-1jpp
|
|
- 2.2.0 final
|
|
- versioned dir for javadoc
|
|
- no dependencies for manual and javadoc packages
|
|
- stricter dependency for compat and demo packages
|
|
- fixed package confusion
|
|
- adaptation for new servlet3 package
|
|
- requires xerces-j1 instead of jaxp_parser
|
|
- xml-apis jar now in required xml-commons-apis external package
|
|
|
|
* Wed Dec 5 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 2.2.D14-1jpp
|
|
- 2.2.D14
|
|
- javadoc into javadoc package
|
|
- compat.jar into compat package
|
|
- compat javadoc into compat-javadoc package
|
|
|
|
* Wed Nov 21 2001 Christian Zoffoli <czoffoli@littlepenguin.org> 2.2.D13-2jpp
|
|
- changed extension to jpp
|
|
- prefixed xml-apis
|
|
|
|
* Tue Nov 20 2001 Christian Zoffoli <czoffoli@littlepenguin.org> 2.2.D13-1jpp
|
|
- 2.2.D13
|
|
- removed packager tag
|
|
|
|
* Sat Oct 6 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 2.2.D11-1jpp
|
|
- 2.2.D11
|
|
|
|
* Sun Sep 30 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 2.2.D10-2jpp
|
|
- first unified release
|
|
- s/jPackage/JPackage
|
|
|
|
* Fri Sep 14 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 2.2.D10-1mdk
|
|
- cvs references
|
|
- splitted demo package
|
|
- moved demo files to %{_datadir}/%{name}
|
|
- only manual package requires stylebook-1.0b3
|
|
- only demo package requires servletapi3
|
|
|
|
* Wed Aug 22 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 2.2.D9-1mdk
|
|
- 2.2.9
|
|
- used new source packaging policy
|
|
- added samples data
|
|
|
|
* Wed Aug 08 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 2.2.D6-1mdk
|
|
- first Mandrake release
|