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