738a8a
Name:           xml-commons-resolver
738a8a
Version:        1.2
738a8a
Release:        28%{?dist}
738a8a
Summary:        Resolver subproject of xml-commons
738a8a
License:        ASL 2.0
738a8a
URL:            http://xerces.apache.org/xml-commons/components/resolver/
738a8a
BuildArch:      noarch
738a8a
738a8a
Source0:        http://www.apache.org/dist/xerces/xml-commons/%{name}-%{version}.tar.gz
738a8a
Source5:        %{name}-pom.xml
738a8a
Source6:        %{name}-resolver.1
738a8a
Source7:        %{name}-xparse.1
738a8a
Source8:        %{name}-xread.1
738a8a
738a8a
Patch0:         %{name}-1.2-crosslink.patch
738a8a
Patch1:         %{name}-1.2-osgi.patch
738a8a
738a8a
BuildRequires:  javapackages-local
738a8a
BuildRequires:  ant
738a8a
BuildRequires:  apache-parent
738a8a
# Explicit javapackages-tools requires since scripts use
738a8a
# /usr/share/java-utils/java-functions
738a8a
Requires:       javapackages-tools
738a8a
738a8a
%description
738a8a
Resolver subproject of xml-commons.
738a8a
738a8a
%package javadoc
738a8a
Summary:        Javadoc for %{name}
738a8a
738a8a
%description javadoc
738a8a
Javadoc for %{name}.
738a8a
738a8a
%prep
738a8a
%setup -q
738a8a
%patch0 -p1
738a8a
%patch1 -p1
738a8a
738a8a
# remove all binary libs and prebuilt javadocs
738a8a
find . -name "*.jar" -exec rm -f {} \;
738a8a
rm -rf docs
738a8a
sed -i 's/\r//' KEYS LICENSE.resolver.txt NOTICE-resolver.txt
738a8a
738a8a
%mvn_file : xml-commons-resolver xml-resolver
738a8a
738a8a
%build
738a8a
%ant -f resolver.xml jar javadocs
738a8a
%mvn_artifact %{SOURCE5} build/resolver.jar
738a8a
738a8a
%install
738a8a
%mvn_install -J build/apidocs/resolver
738a8a
738a8a
# Scripts
738a8a
mkdir -p $RPM_BUILD_ROOT%{_bindir}
738a8a
%jpackage_script org.apache.xml.resolver.apps.resolver "" "" %{name} xml-resolver true
738a8a
%jpackage_script org.apache.xml.resolver.apps.xread "" "" %{name} xml-xread true
738a8a
%jpackage_script org.apache.xml.resolver.apps.xparse "" "" %{name} xml-xparse true
738a8a
738a8a
# Man pages
738a8a
install -d -m 755 ${RPM_BUILD_ROOT}%{_mandir}/man1
738a8a
install -p -m 644 %{SOURCE6} ${RPM_BUILD_ROOT}%{_mandir}/man1/xml-resolver.1
738a8a
install -p -m 644 %{SOURCE7} ${RPM_BUILD_ROOT}%{_mandir}/man1/xml-xparse.1
738a8a
install -p -m 644 %{SOURCE8} ${RPM_BUILD_ROOT}%{_mandir}/man1/xml-xread.1
738a8a
738a8a
%files -f .mfiles
738a8a
%doc KEYS LICENSE.resolver.txt NOTICE-resolver.txt
738a8a
%{_mandir}/man1/*
738a8a
%{_bindir}/xml-*
738a8a
738a8a
%files javadoc -f .mfiles-javadoc
738a8a
%doc LICENSE.resolver.txt NOTICE-resolver.txt
738a8a
738a8a
%changelog
738a8a
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.2-28
738a8a
- Mass rebuild for javapackages-tools 201902
738a8a
738a8a
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.2-27
738a8a
- Mass rebuild for javapackages-tools 201901
738a8a
738a8a
* Wed Aug 01 2018 Severin Gehwolf <sgehwolf@redhat.com> - 0:1.2-26
738a8a
- Add requirement on javapackages-tools since scripts use
738a8a
  java-functions.
738a8a
738a8a
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0:1.2-25
738a8a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
738a8a
738a8a
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0:1.2-24
738a8a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
738a8a
738a8a
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0:1.2-23
738a8a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
738a8a
738a8a
* Thu Feb 23 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.2-22
738a8a
- Update to current packaging guidelines
738a8a
738a8a
* Thu Feb 16 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.2-21
738a8a
- Fix rpm conditional
738a8a
738a8a
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0:1.2-20
738a8a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
738a8a
738a8a
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0:1.2-19
738a8a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
738a8a
738a8a
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.2-18
738a8a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
738a8a
738a8a
* Fri Jun 13 2014 Alexander Kurtakov <akurtako@redhat.com> 0:1.2-17
738a8a
- Fix FTBFS.
738a8a
738a8a
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.2-16
738a8a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
738a8a
738a8a
* Mon Dec 23 2013 Ville Skyttä <ville.skytta@iki.fi> - 0:1.2-15
738a8a
- Use %%jpackage_script to generate scripts.
738a8a
- Add OSGi metadata to manifest instead of discarding everything else in it.
738a8a
- Drop dependency on xml-commons-api, add one on java(-headless).
738a8a
- Crosslink javadocs with Java's.
738a8a
- Include NOTICE* in docs.
738a8a
- Update URLs.
738a8a
- Specfile cleanups.
738a8a
738a8a
* Thu Aug 15 2013 Mat Booth <fedora@matbooth.co.uk> - 0:1.2-14
738a8a
- Fix FTBFS rhbz #993143
738a8a
738a8a
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.2-13
738a8a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
738a8a
738a8a
* Thu Apr 11 2013 Michal Srb <msrb@redhat.com> - 0:1.2-12
738a8a
- Add man pages (Resolves: rhbz#949424)
738a8a
738a8a
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.2-11
738a8a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
738a8a
738a8a
* Fri Aug 17 2012 Andy Grimm <agrimm@gmail.com> - 0:1.2-10
738a8a
- Remove osgi(system.bundle) requirement
738a8a
738a8a
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.2-9
738a8a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
738a8a
738a8a
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.2-8
738a8a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
738a8a
738a8a
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.2-7
738a8a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
738a8a
738a8a
* Wed Nov 3 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.2-6
738a8a
- Fix merge review comments (bug#226564).
738a8a
738a8a
* Wed Nov 3 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.2-5
738a8a
- Add missing zip BR.
738a8a
- Remove perl and dos2unix usage.
738a8a
- Fix license - ASL 2.0 now.
738a8a
738a8a
* Fri Sep 24 2010 Mat Booth <fedora@matbooth.co.uk> 0:1.2-4
738a8a
- Forgot to actually install a jar with a name that maven users expect.
738a8a
738a8a
* Sun Sep 19 2010 Mat Booth <fedora@matbooth.co.uk> 0:1.2-3
738a8a
- Install a maven pom and depmap.
738a8a
738a8a
* Wed Apr 7 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.2-2
738a8a
- No need to require jaxp_parser_impl now that we require java 1.5 or newer.
738a8a
738a8a
* Fri Mar 5 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.2-1
738a8a
- Update to 1.2.
738a8a
- Drop gcj_support.
738a8a
738a8a
* Mon Jan 11 2010 Andrew Overholt <overholt@redhat.com> 0:1.1-4.17
738a8a
- Fix Group tags
738a8a
- Remove '.' at end of Summary
738a8a
- Add dos2unix BR and fix line endings
738a8a
- Use upstream tarball
738a8a
738a8a
* Sat Aug  8 2009 Ville Skyttä <ville.skytta@iki.fi> - 0:1.1-4.16
738a8a
- Fix specfile UTF-8 encoding.
738a8a
738a8a
* Mon Jul 27 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.1-4.15
738a8a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
738a8a
738a8a
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.1-3.15
738a8a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
738a8a
738a8a
* Fri Jan 30 2009 Alexander Kurtakov <akurtako@redhat.com> 0:1.1-2.15
738a8a
- Install osgi manifest for eclipse-dtp
738a8a
738a8a
* Fri Sep 05 2008 Deepak Bhole <dbhole@redhat.com> 1.1-2.14
738a8a
- Build with IcedTea to escape sinjdoc issues
738a8a
738a8a
* Thu Jul 10 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:1.1-2.13
738a8a
- drop repotag
738a8a
- fix license tag
738a8a
738a8a
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0:1.1-2jpp.12
738a8a
- Autorebuild for GCC 4.3
738a8a
738a8a
* Thu Aug 10 2006 Deepak Bhole <dbhole@redhat.com> 1.1-1jpp.12
738a8a
- Added missing dependencies.
738a8a
738a8a
* Sat Jul 22 2006 Jakub Jelinek <jakub@redhat.com> - 0:1.1-1jpp_11fc
738a8a
- Rebuilt
738a8a
738a8a
* Fri Jul 21 2006 Deepak Bhole <dbhole@redhat.com> - 0:1.1-1jpp_10fc
738a8a
- Added conditional native compilation.
738a8a
738a8a
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0:1.1-1jpp_9fc
738a8a
- rebuild
738a8a
738a8a
* Mon Mar  6 2006 Jeremy Katz <katzj@redhat.com> - 0:1.1-1jpp_8fc
738a8a
- stop scriptlet spew
738a8a
738a8a
* Wed Dec 21 2005 Jesse Keating <jkeating@redhat.com> 0:1.1-1jpp_7fc
738a8a
- rebuilt again
738a8a
738a8a
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com> 0:1.1-1jpp_6fc
738a8a
- rebuilt
738a8a
738a8a
* Tue Jun 28 2005 Gary Benson <gbenson@redhat.com> 0:1.1-1jpp_5fc
738a8a
- Remove jarfile from the tarball.
738a8a
738a8a
* Thu Nov  4 2004 Gary Benson <gbenson@redhat.com> 0:1.1-1jpp_4fc
738a8a
- Build into Fedora.
738a8a
738a8a
* Thu Oct 28 2004 Gary Benson <gbenson@redhat.com> 0:1.1-1jpp_3fc
738a8a
- Bootstrap into Fedora.
738a8a
738a8a
* Thu Mar  4 2004 Frank Ch. Eigler <fche@redhat.com> 0:1.1-1jpp_2rh
738a8a
- RH vacuuming part II
738a8a
738a8a
* Wed Mar  3 2004 Frank Ch. Eigler <fche@redhat.com> 0:1.1-1jpp_1rh
738a8a
- RH vacuuming
738a8a
738a8a
* Wed Jan 21 2004 David Walluck <david@anti-microsoft.org> 0:1.1-1jpp
738a8a
- 1.1
738a8a
- use perl instead of patch
738a8a
- don't build docs (build fails)
738a8a
738a8a
* Tue May 06 2003 David Walluck <david@anti-microsoft.org> 0:1.0-2jpp
738a8a
- update for JPackage 1.5
738a8a
738a8a
* Wed Nov 13 2002 Ville Skyttä <ville.skytta@iki.fi> - 1.0-1jpp
738a8a
- Follow upstream changes, split out of xml-commons.