2006-07-21 22:44:34 +00:00
|
|
|
|
|
|
|
|
|
%define _with_gcj_support 1
|
|
|
|
|
|
|
|
|
|
%define gcj_support %{?_with_gcj_support:1}%{!?_with_gcj_support:%{?_without_gcj_support:0}%{!?_without_gcj_support:%{?_gcj_support:%{_gcj_support}}%{!?_gcj_support:0}}}
|
|
|
|
|
|
2004-09-09 14:51:13 +00:00
|
|
|
|
%define section free
|
|
|
|
|
|
2006-07-21 22:44:34 +00:00
|
|
|
|
Name: xml-commons-resolver
|
|
|
|
|
Version: 1.1
|
2008-09-05 20:09:32 +00:00
|
|
|
|
Release: 2.14%{?dist}
|
2004-09-09 14:51:13 +00:00
|
|
|
|
Epoch: 0
|
|
|
|
|
Summary: Resolver subproject of xml-commons.
|
2008-07-10 20:42:24 +00:00
|
|
|
|
License: ASL 1.1
|
2004-09-09 14:51:13 +00:00
|
|
|
|
URL: http://xml.apache.org/commons/
|
2005-06-28 09:08:08 +00:00
|
|
|
|
Source0: xml-commons-resolver-1.1-RHCLEAN.tar.bz2
|
2004-09-09 14:51:13 +00:00
|
|
|
|
Source1: xml-commons-resolver-resolver.sh
|
|
|
|
|
Source2: xml-commons-resolver-xread.sh
|
|
|
|
|
Source3: xml-commons-resolver-xparse.sh
|
2008-09-05 20:09:32 +00:00
|
|
|
|
|
|
|
|
|
Patch0: %{name}-src-version.patch
|
|
|
|
|
|
2004-09-09 14:51:13 +00:00
|
|
|
|
Requires: jaxp_parser_impl
|
|
|
|
|
Requires: xml-commons-apis
|
2008-09-05 20:09:32 +00:00
|
|
|
|
BuildRequires: java-devel >= 1.6.0
|
2004-09-09 14:51:13 +00:00
|
|
|
|
BuildRequires: ant
|
|
|
|
|
BuildRequires: jpackage-utils >= 0:1.5
|
|
|
|
|
#BuildRequires: %{_bindir}/xsltproc
|
|
|
|
|
#BuildRequires: docbook-style-xsl
|
|
|
|
|
Group: Text Processing/Markup/XML
|
2006-07-21 22:44:34 +00:00
|
|
|
|
%if ! %{gcj_support}
|
2004-09-09 14:51:13 +00:00
|
|
|
|
BuildArch: noarch
|
2006-07-21 22:44:34 +00:00
|
|
|
|
%endif
|
2004-09-09 14:51:13 +00:00
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
|
|
|
|
|
|
2006-07-21 22:44:34 +00:00
|
|
|
|
%if %{gcj_support}
|
|
|
|
|
BuildRequires: java-gcj-compat-devel
|
|
|
|
|
Requires(post): java-gcj-compat
|
|
|
|
|
Requires(postun): java-gcj-compat
|
|
|
|
|
%endif
|
|
|
|
|
|
2004-09-09 14:51:13 +00:00
|
|
|
|
%description
|
|
|
|
|
Resolver subproject of xml-commons.
|
|
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
|
Summary: Javadoc for %{name}
|
|
|
|
|
Group: Development/Documentation
|
2008-07-10 20:42:24 +00:00
|
|
|
|
# for /bin/rm and /bin/ln
|
|
|
|
|
Requires(post): coreutils
|
|
|
|
|
Requires(postun): coreutils
|
2004-09-09 14:51:13 +00:00
|
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
|
Javadoc for %{name}.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
2008-09-05 20:09:32 +00:00
|
|
|
|
|
|
|
|
|
%patch0
|
|
|
|
|
|
2004-09-09 14:51:13 +00:00
|
|
|
|
# remove all binary libs and prebuilt javadocs
|
|
|
|
|
find . -name "*.jar" -exec rm -f {} \;
|
|
|
|
|
rm -rf docs
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
perl -p -i -e 's|call Resolver|call resolver|g' resolver.xml
|
|
|
|
|
perl -p -i -e 's|classname="org.apache.xml.resolver.Catalog"|fork="yes" classname="org.apache.xml.resolver.apps.resolver"|g' resolver.xml
|
|
|
|
|
perl -p -i -e 's|org.apache.xml.resolver.Catalog|org.apache.xml.resolver.apps.resolver|g' src/manifest.resolver
|
|
|
|
|
#DOCBOOK_XSL=`rpm -ql docbook-style-xsl | grep /html/docbook.xsl \
|
|
|
|
|
#| sed 's#html/docbook.xsl##'`
|
|
|
|
|
#
|
|
|
|
|
#if [ -z $DOCBOOK_XSL ]; then
|
|
|
|
|
# echo "Unable to find docbook xsl directory"
|
|
|
|
|
# exit 1
|
|
|
|
|
#fi
|
|
|
|
|
|
|
|
|
|
#ant -Ddocbook.dir=$DOCBOOK_XSL -f resolver.xml main
|
|
|
|
|
ant -f resolver.xml jar javadocs
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
# Jars
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_javadir}
|
|
|
|
|
cp build/resolver.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
|
|
|
|
|
|
|
|
|
|
# Jar versioning
|
|
|
|
|
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
|
|
|
|
|
|
|
|
|
|
# Javadocs
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
|
|
|
|
cp -pr build/apidocs/resolver/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
|
|
|
|
|
|
|
|
|
# Scripts
|
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
|
|
|
|
cp %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/xml-resolver
|
|
|
|
|
cp %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/xml-xread
|
|
|
|
|
cp %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}/xml-xparse
|
|
|
|
|
|
2006-07-21 22:44:34 +00:00
|
|
|
|
%if %{gcj_support}
|
|
|
|
|
%{_bindir}/aot-compile-rpm
|
|
|
|
|
%endif
|
|
|
|
|
|
2004-09-09 14:51:13 +00:00
|
|
|
|
%clean
|
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
%post javadoc
|
|
|
|
|
rm -f %{_javadocdir}/%{name}
|
|
|
|
|
ln -s %{name}-%{version} %{_javadocdir}/%{name}
|
|
|
|
|
|
|
|
|
|
%postun javadoc
|
|
|
|
|
if [ "$1" = "0" ]; then
|
|
|
|
|
rm -f %{_javadocdir}/%{name}
|
|
|
|
|
fi
|
|
|
|
|
|
2006-07-21 22:44:34 +00:00
|
|
|
|
%post
|
|
|
|
|
%if %{gcj_support}
|
|
|
|
|
if [ -x %{_bindir}/rebuild-gcj-db ]
|
|
|
|
|
then
|
|
|
|
|
%{_bindir}/rebuild-gcj-db
|
|
|
|
|
fi
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%if %{gcj_support}
|
|
|
|
|
if [ -x %{_bindir}/rebuild-gcj-db ]
|
|
|
|
|
then
|
|
|
|
|
%{_bindir}/rebuild-gcj-db
|
|
|
|
|
fi
|
|
|
|
|
%endif
|
|
|
|
|
|
2004-09-09 14:51:13 +00:00
|
|
|
|
%files
|
|
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
|
%doc KEYS LICENSE.resolver.txt
|
|
|
|
|
%{_javadir}/*
|
|
|
|
|
%attr(0755,root,root) %{_bindir}/*
|
|
|
|
|
|
2006-07-21 22:44:34 +00:00
|
|
|
|
%if %{gcj_support}
|
|
|
|
|
%attr(-,root,root) %{_libdir}/gcj/%{name}
|
|
|
|
|
%endif
|
|
|
|
|
|
2004-09-09 14:51:13 +00:00
|
|
|
|
%files javadoc
|
|
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
|
%{_javadocdir}/%{name}-%{version}
|
|
|
|
|
|
|
|
|
|
%changelog
|
2008-09-05 20:09:32 +00:00
|
|
|
|
* Fri Sep 05 2008 Deepak Bhole <dbhole@redhat.com> 1.1-2.14
|
|
|
|
|
- Build with IcedTea to escape sinjdoc issues
|
|
|
|
|
|
2008-07-10 20:42:24 +00:00
|
|
|
|
* Thu Jul 10 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:1.1-2.13
|
|
|
|
|
- drop repotag
|
|
|
|
|
- fix license tag
|
|
|
|
|
|
2008-02-19 03:16:00 +00:00
|
|
|
|
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0:1.1-2jpp.12
|
|
|
|
|
- Autorebuild for GCC 4.3
|
|
|
|
|
|
2006-08-10 23:52:09 +00:00
|
|
|
|
* Thu Aug 10 2006 Deepak Bhole <dbhole@redhat.com> 1.1-1jpp.12
|
|
|
|
|
- Added missing dependencies.
|
|
|
|
|
|
2006-07-22 08:46:51 +00:00
|
|
|
|
* Sat Jul 22 2006 Jakub Jelinek <jakub@redhat.com> - 0:1.1-1jpp_11fc
|
|
|
|
|
- Rebuilt
|
|
|
|
|
|
2006-07-21 22:44:34 +00:00
|
|
|
|
* Fri Jul 21 2006 Deepak Bhole <dbhole@redhat.com> - 0:1.1-1jpp_10fc
|
|
|
|
|
- Added conditional native compilation.
|
|
|
|
|
|
2006-07-12 08:54:30 +00:00
|
|
|
|
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0:1.1-1jpp_9fc
|
|
|
|
|
- rebuild
|
|
|
|
|
|
2006-03-06 23:09:28 +00:00
|
|
|
|
* Mon Mar 6 2006 Jeremy Katz <katzj@redhat.com> - 0:1.1-1jpp_8fc
|
|
|
|
|
- stop scriptlet spew
|
|
|
|
|
|
2005-12-22 06:20:04 +00:00
|
|
|
|
* Wed Dec 21 2005 Jesse Keating <jkeating@redhat.com> 0:1.1-1jpp_7fc
|
|
|
|
|
- rebuilt again
|
|
|
|
|
|
2005-12-16 20:39:28 +00:00
|
|
|
|
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com> 0:1.1-1jpp_6fc
|
2005-12-09 20:46:17 +00:00
|
|
|
|
- rebuilt
|
|
|
|
|
|
2005-06-28 09:08:08 +00:00
|
|
|
|
* Tue Jun 28 2005 Gary Benson <gbenson@redhat.com> 0:1.1-1jpp_5fc
|
|
|
|
|
- Remove jarfile from the tarball.
|
|
|
|
|
|
2004-11-04 14:41:06 +00:00
|
|
|
|
* Thu Nov 4 2004 Gary Benson <gbenson@redhat.com> 0:1.1-1jpp_4fc
|
2004-10-12 14:24:47 +00:00
|
|
|
|
- Build into Fedora.
|
|
|
|
|
|
2004-11-01 10:30:51 +00:00
|
|
|
|
* Thu Oct 28 2004 Gary Benson <gbenson@redhat.com> 0:1.1-1jpp_3fc
|
|
|
|
|
- Bootstrap into Fedora.
|
|
|
|
|
|
2004-09-09 14:51:21 +00:00
|
|
|
|
* Thu Mar 4 2004 Frank Ch. Eigler <fche@redhat.com> 0:1.1-1jpp_2rh
|
|
|
|
|
- RH vacuuming part II
|
|
|
|
|
|
2004-09-09 14:51:13 +00:00
|
|
|
|
* Wed Mar 3 2004 Frank Ch. Eigler <fche@redhat.com> 0:1.1-1jpp_1rh
|
|
|
|
|
- RH vacuuming
|
|
|
|
|
|
|
|
|
|
* Wed Jan 21 2004 David Walluck <david@anti-microsoft.org> 0:1.1-1jpp
|
|
|
|
|
- 1.1
|
|
|
|
|
- use perl instead of patch
|
|
|
|
|
- don't build docs (build fails)
|
|
|
|
|
|
|
|
|
|
* Tue May 06 2003 David Walluck <david@anti-microsoft.org> 0:1.0-2jpp
|
|
|
|
|
- update for JPackage 1.5
|
|
|
|
|
|
|
|
|
|
* Wed Nov 13 2002 Ville Skytt<EFBFBD> <ville.skytta at iki.fi> - 1.0-1jpp
|
|
|
|
|
- Follow upstream changes, split out of xml-commons.
|
|
|
|
|
|