382 lines
12 KiB
RPMSpec
382 lines
12 KiB
RPMSpec
%define section free
|
|
%define version 2.6.0
|
|
%define cvs_version 2_6_0
|
|
|
|
Name: xalan-j2
|
|
Version: %{version}
|
|
Release: 2jpp_2fc
|
|
Epoch: 0
|
|
Summary: Java XSLT processor
|
|
License: Apache Software License
|
|
Source0: http://www.apache.org/dist/xml/xalan-j/source/xalan-j_%{cvs_version}-src.tar.gz
|
|
Patch0: %{name}-noxsltcdeps.patch
|
|
Patch1: %{name}-manifest.patch
|
|
Patch2: %{name}-crosslink.patch
|
|
Patch3: %{name}-bz130162.patch
|
|
Patch4: %{name}-bz152255.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, servlet, 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: gcc-java >= 4.0.0-0.43
|
|
BuildRequires: java-1.4.2-gcj-compat >= 1.4.2.0-40jpp_16rh
|
|
Requires(post,postun): java-1.4.2-gcj-compat >= 1.4.2.0-40jpp_16rh
|
|
ExclusiveArch: %{ix86} x86_64 ppc alpha
|
|
|
|
%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
|
|
|
|
%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
|
|
|
|
%description javadoc
|
|
Javadoc for %{name}.
|
|
|
|
%package demo
|
|
Summary: Demo for %{name}
|
|
Group: Text Processing/Markup/XML
|
|
Requires: %{name} = %{epoch}:%{version}-%{release}, servlet
|
|
BuildRequires: servlet
|
|
|
|
%description demo
|
|
Demonstrations and samples for %{name}.
|
|
|
|
%prep
|
|
%setup -q -n xalan-j_%{cvs_version}
|
|
%patch0 -p0
|
|
%patch1 -p0
|
|
%patch2 -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 {} \;
|
|
# Don't unzip stuff (#130162: gunzip task fails in libgcj)
|
|
if java -version 2>&1 | grep -q "gcj"; then
|
|
%patch3 -p1
|
|
fi
|
|
%patch4 -p1
|
|
|
|
%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
|
|
|
|
aot-compile \
|
|
build/xalan-interpretive.jar \
|
|
build/lib%{name}.jar.so \
|
|
"$RPM_OPT_FLAGS -fPIC"
|
|
|
|
|
|
%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)
|
|
|
|
# solibs
|
|
mkdir -p $RPM_BUILD_ROOT%{_libdir}
|
|
cp -p build/lib%{name}.jar.so $RPM_BUILD_ROOT%{_libdir}/lib%{name}-%{version}.jar.so
|
|
(cd $RPM_BUILD_ROOT%{_libdir} && for so in lib*-%{version}.jar.so; do ln -sf ${so} `echo $so| sed "s|-%{version}||g"`; done)
|
|
|
|
# gcjdb
|
|
gcjdbdir=`gcj-dbtool -p %{_libdir}`.d
|
|
mkdir -p $RPM_BUILD_ROOT$gcjdbdir
|
|
gcj-dbtool -n $RPM_BUILD_ROOT$gcjdbdir/%{name}-%{version}.db 80000
|
|
gcj-dbtool -f $RPM_BUILD_ROOT$gcjdbdir/%{name}-%{version}.db \
|
|
$RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar \
|
|
%{_libdir}/lib%{name}-%{version}.jar.so
|
|
|
|
# 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
|
|
|
|
|
|
%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
|
|
/usr/bin/rebuild-gcj-db %{_libdir}
|
|
|
|
%postun
|
|
/usr/bin/rebuild-gcj-db %{_libdir}
|
|
|
|
%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
|
|
|
|
#%preun xsltc
|
|
#{
|
|
# [ $1 = 0 ] || exit 0
|
|
# update-alternatives --remove jaxp_transform_impl %{_javadir}/xsltc.jar
|
|
#} >/dev/null 2>&1 || :
|
|
|
|
%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
|
|
%attr(0755,root,root) %{_libdir}/lib*.jar.so
|
|
%{_libdir}/*/*/%{name}-%{version}.db
|
|
|
|
%files xsltc
|
|
%defattr(0644,root,root,0755)
|
|
%{_javadir}/xsltc-%{version}.jar
|
|
%{_javadir}/xsltc.jar
|
|
#%ghost %{_javadir}/jaxp_transform_impl.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}
|
|
|
|
%changelog
|
|
* Tue May 24 2005 Gary Benson <gbenson@redhat.com>
|
|
- 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
|