5e90c5
Name:           apache-commons-jxpath
5e90c5
Version:        1.3
5e90c5
Release:        36%{?dist}
5e90c5
Summary:        Simple XPath interpreter
5e90c5
License:        ASL 2.0
5e90c5
URL:            http://commons.apache.org/jxpath/
5e90c5
BuildArch:      noarch
5e90c5
5e90c5
Source0:        http://www.apache.org/dist/commons/jxpath/source/commons-jxpath-%{version}-src.tar.gz
5e90c5
5e90c5
Patch0:         commons-jxpath-mockrunner.patch
5e90c5
5e90c5
BuildRequires:  maven-local
5e90c5
BuildRequires:  mvn(commons-beanutils:commons-beanutils)
5e90c5
BuildRequires:  mvn(javax.servlet:jsp-api)
5e90c5
BuildRequires:  mvn(javax.servlet:servlet-api)
5e90c5
BuildRequires:  mvn(jdom:jdom)
5e90c5
BuildRequires:  mvn(org.apache.commons:commons-parent:pom:)
5e90c5
BuildRequires:  mvn(xerces:xercesImpl)
5e90c5
BuildRequires:  mvn(xml-apis:xml-apis)
5e90c5
5e90c5
%description
5e90c5
Defines a simple interpreter of an expression language called XPath.
5e90c5
JXPath applies XPath expressions to graphs of objects of all kinds:
5e90c5
JavaBeans, Maps, Servlet contexts, DOM etc, including mixtures thereof.
5e90c5
5e90c5
%package javadoc
5e90c5
Summary:        API documentation for %{name}
5e90c5
5e90c5
%description javadoc
5e90c5
This package contains the API documentation for %{name}.
5e90c5
5e90c5
%prep
5e90c5
%setup -q -n commons-jxpath-%{version}-src
5e90c5
%patch0 -p1
5e90c5
5e90c5
%mvn_file ":{*}" %{name} @1
5e90c5
%mvn_alias : org.apache.commons:
5e90c5
5e90c5
%pom_xpath_inject 'pom:properties' \
5e90c5
  '<commons.osgi.import>org.apache.commons.beanutils;resolution:="optional",org.jdom*;resolution:="optional",org.w3c.dom;resolution:="optional",javax.servlet*;resolution:="optional",*</commons.osgi.import>'
5e90c5
5e90c5
%build
5e90c5
# we are skipping tests because we don't have com.mockrunner in repos yet
5e90c5
%mvn_build -f -- -Dcommons.osgi.symbolicName=org.apache.commons.jxpath -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8
5e90c5
5e90c5
%install
5e90c5
%mvn_install
5e90c5
5e90c5
%files -f .mfiles
5e90c5
%license LICENSE.txt NOTICE.txt
5e90c5
5e90c5
%files javadoc -f .mfiles-javadoc
5e90c5
%license LICENSE.txt NOTICE.txt
5e90c5
5e90c5
%changelog
5e90c5
* Fri Jul 10 2020 Jiri Vanek <jvanek@redhat.com> - 1.3-36
5e90c5
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
5e90c5
5e90c5
* Fri May 22 2020 Fabio Valentini <decathorpe@gmail.com> - 1.3-35
5e90c5
- Set javac -source and -target to 1.8.
5e90c5
5e90c5
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-34
5e90c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
5e90c5
5e90c5
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-33
5e90c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
5e90c5
5e90c5
* Thu Feb 07 2019 Mat Booth <mat.booth@redhat.com> - 1.3-32
5e90c5
- Rebuild to fix OSGi metadata
5e90c5
5e90c5
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-31
5e90c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
5e90c5
5e90c5
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-30
5e90c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
5e90c5
5e90c5
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-29
5e90c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
5e90c5
5e90c5
* Thu Aug 31 2017 Mat Booth <mat.booth@redhat.com> - 1.3-28
5e90c5
- Make the OSGi dep on servlet APIs optional
5e90c5
5e90c5
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-27
5e90c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
5e90c5
5e90c5
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-26
5e90c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
5e90c5
5e90c5
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-25
5e90c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
5e90c5
5e90c5
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-24
5e90c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
5e90c5
5e90c5
* Fri Apr 24 2015 Mat Booth <mat.booth@redhat.com> - 1.3-23
5e90c5
- Fix optional deps in OSGi manifest
5e90c5
5e90c5
* Tue Apr 14 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.3-22
5e90c5
- Cleanup spec file
5e90c5
5e90c5
* Wed Feb 25 2015 Alexander Kurtakov <akurtako@redhat.com> 1.3-21
5e90c5
- Rebuild for jsp api.
5e90c5
- Drop old javadoc pre section.
5e90c5
5e90c5
* Tue Oct 14 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.3-20
5e90c5
- Remove legacy Obsoletes/Provides for jakarta-commons
5e90c5
5e90c5
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-19
5e90c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
5e90c5
5e90c5
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.3-18
5e90c5
- Use Requires: java-headless rebuild (#1067528)
5e90c5
5e90c5
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-17
5e90c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
5e90c5
5e90c5
* Mon Apr 29 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.3-16
5e90c5
- Remove unneeded BR: maven-idea-plugin
5e90c5
5e90c5
* Tue Feb 26 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.3-15
5e90c5
- Migrate from Tomcat 6 to Tomcat 7
5e90c5
- Resolves: rhbz#913879
5e90c5
5e90c5
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-14
5e90c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
5e90c5
5e90c5
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1.3-13
5e90c5
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
5e90c5
- Replace maven BuildRequires with maven-local
5e90c5
5e90c5
* Tue Jan 15 2013 Michal Srb <msrb@redhat.com> - 1.3-12
5e90c5
- Build with xmvn
5e90c5
5e90c5
* Thu Nov 22 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.3-11
5e90c5
- Install NOTICE file
5e90c5
- Resolves: rhbz#879556
5e90c5
5e90c5
* Fri Nov  9 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.3-10
5e90c5
- Don't build-require maven2
5e90c5
5e90c5
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-9
5e90c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
5e90c5
5e90c5
* Fri Mar  2 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> 1.3-8
5e90c5
- Fix build and update to latest guidelines
5e90c5
5e90c5
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-7
5e90c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
5e90c5
5e90c5
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-6
5e90c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
5e90c5
5e90c5
* Thu Oct 21 2010 Chris Spike <chris.spike@arcor.de> 1.3-5
5e90c5
- tomcat5 -> tomcat6 BRs/Rs
5e90c5
5e90c5
* Thu Jul  8 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.3-4
5e90c5
- Add license to javadoc subpackage
5e90c5
5e90c5
* Thu May 27 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.3-3
5e90c5
- Add tomcat5 to BR
5e90c5
5e90c5
* Tue May 25 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.3-2
5e90c5
- Fix ownership of some directories
5e90c5
5e90c5
* Tue May 25 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.3-1
5e90c5
- Rename package (jakarta-commons-jxpath->apache-commons-jxpath)
5e90c5
- Cleanup spec file
5e90c5
- Build using maven, drop old pom file from sources
5e90c5
- Update to upstream version
5e90c5
5e90c5
* Thu Aug 20 2009 Alexander Kurtakov <akurtako@redhat.com> 0:1.2-9
5e90c5
- Fix random spaces.
5e90c5
5e90c5
* Wed Aug 19 2009 Alexander Kurtakov <akurtako@redhat.com> 0:1.2-8
5e90c5
- BuildRequires java-devel >= 1.6.0.
5e90c5
5e90c5
* Wed Aug 19 2009 Alexander Kurtakov <akurtako@redhat.com> 0:1.2-7
5e90c5
- Initial package for Fedora.
5e90c5
5e90c5
* Sun May 17 2009 Fernando Nasser <fnasser@redhat.com> - 0:1.2-6
5e90c5
- Fix License
5e90c5
- Provide intructions for obtaining source and refresh source tar ball
5e90c5
5e90c5
* Wed Mar 18 2009 Yong Yang <yyang@redhat.com> - 0:1.2-5
5e90c5
- rebuild with new maven2 2.0.8 built in bootstrap mode
5e90c5
5e90c5
* Thu Feb 05 2009 Yong Yang <yyang@redhat.com> - 0:1.2-4
5e90c5
- Fix release tag
5e90c5
5e90c5
* Thu Jan 08 2009 Yong Yang <yyang@redhat.com> - 0:1.2-3jpp.1
5e90c5
- Import from dbhole's maven 2.0.8 packages, initial building
5e90c5
5e90c5
* Wed Apr 09 2008 Deepak Bhole <dbhole@redhat.com> - 0:1.2-2jpp.1
5e90c5
- Import from JPackage
5e90c5
- Added pom file
5e90c5
5e90c5
* Wed Jun 07 2006 Fernando Nasser <fnasser@redhat.com> - 0:1.2-2jpp
5e90c5
- First JPP 1.7 build
5e90c5
5e90c5
* Sat Sep 18 2004 Ralph Apel <r.apel at r-apel.de> - 0:1.2-1jpp
5e90c5
- Upgrade to 1.2
5e90c5
- Use jdom-1.0-0.rc1.1jpp
5e90c5
- Relax some versioned dependencies
5e90c5
5e90c5
* Sun Aug 23 2004 Randy Watler <rwatler at finali.com> - 0:1.1-3jpp
5e90c5
- Rebuild with ant-1.6.2
5e90c5
5e90c5
* Tue Jun 01 2004 Randy Watler <rwatler at finali.com> - 0:1.1-2jpp
5e90c5
- Upgrade to Ant 1.6.X
5e90c5
5e90c5
* Mon Jan 19 2004 Ralph Apel <r.apel at r-apel.de> - 0:1.1-1jpp
5e90c5
- First JPackage release