5c06d3
%global base_name       jxpath
5c06d3
%global short_name      commons-%{base_name}
5c06d3
5c06d3
Name:             apache-%{short_name}
5c06d3
Version:          1.3
5c06d3
Release:          20%{?dist}
5c06d3
Summary:          Simple XPath interpreter
5c06d3
5c06d3
Group:            Development/Libraries
5c06d3
License:          ASL 2.0
5c06d3
URL:              http://commons.apache.org/%{base_name}/
5c06d3
Source0:          http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
5c06d3
Patch0:           %{short_name}-mockrunner.patch
5c06d3
BuildArch:        noarch
5c06d3
5c06d3
BuildRequires:    java-devel >= 1:1.6.0
5c06d3
BuildRequires:    jpackage-utils
5c06d3
BuildRequires:    maven-local
5c06d3
BuildRequires:    apache-commons-parent >= 26-7
5c06d3
BuildRequires:    maven-antrun-plugin
5c06d3
BuildRequires:    maven-assembly-plugin
5c06d3
BuildRequires:    maven-compiler-plugin
5c06d3
BuildRequires:    maven-install-plugin
5c06d3
BuildRequires:    maven-jar-plugin
5c06d3
BuildRequires:    maven-javadoc-plugin
5c06d3
BuildRequires:    maven-plugin-bundle
5c06d3
BuildRequires:    maven-resources-plugin
5c06d3
BuildRequires:    maven-surefire-plugin
5c06d3
BuildRequires:    servlet
5c06d3
BuildRequires:    jsp
5c06d3
BuildRequires:    el_api
5c06d3
5c06d3
Provides:         jakarta-%{short_name} = 0:%{version}-%{release}
5c06d3
Obsoletes:        jakarta-%{short_name} < 0:%{version}-%{release}
5c06d3
5c06d3
%description
5c06d3
Defines a simple interpreter of an expression language called XPath.
5c06d3
JXPath applies XPath expressions to graphs of objects of all kinds:
5c06d3
JavaBeans, Maps, Servlet contexts, DOM etc, including mixtures thereof.
5c06d3
5c06d3
%package javadoc
5c06d3
Summary:          API documentation for %{name}
5c06d3
Group:            Documentation
5c06d3
Requires:         jpackage-utils
5c06d3
5c06d3
Provides:         jakarta-%{short_name}-javadoc = 0:%{version}-%{release}
5c06d3
Obsoletes:        jakarta-%{short_name}-javadoc < 0:%{version}-%{release}
5c06d3
5c06d3
%description javadoc
5c06d3
This package contains the API documentation for %{name}.
5c06d3
5c06d3
%prep
5c06d3
%setup -q -n %{short_name}-%{version}-src
5c06d3
%patch0 -p1
5c06d3
5c06d3
%build
5c06d3
# we are skipping tests because we don't have com.mockrunner in repos yet
5c06d3
%mvn_file  : %{short_name} %{name}
5c06d3
%mvn_alias : org.apache.commons:%{short_name}
5c06d3
%mvn_build -f
5c06d3
5c06d3
%install
5c06d3
%mvn_install
5c06d3
5c06d3
5c06d3
%files -f .mfiles
5c06d3
%doc LICENSE.txt NOTICE.txt
5c06d3
5c06d3
%files javadoc -f .mfiles-javadoc
5c06d3
%doc LICENSE.txt NOTICE.txt
5c06d3
5c06d3
%changelog
5c06d3
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.3-20
5c06d3
- Mass rebuild 2013-12-27
5c06d3
5c06d3
* Fri Sep 20 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.3-19
5c06d3
- Add BuildRequires on apache-commons-parent >= 26-7
5c06d3
5c06d3
* Fri Jul 12 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.3-18
5c06d3
- Remove workaround for rpm bug #646523
5c06d3
5c06d3
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.3-17
5c06d3
- Rebuild to regenerate API documentation
5c06d3
- Resolves: CVE-2013-1571
5c06d3
5c06d3
* Mon Apr 29 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.3-16
5c06d3
- Remove unneeded BR: maven-idea-plugin
5c06d3
5c06d3
* Tue Feb 26 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.3-15
5c06d3
- Migrate from Tomcat 6 to Tomcat 7
5c06d3
- Resolves: rhbz#913879
5c06d3
5c06d3
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-14
5c06d3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
5c06d3
5c06d3
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1.3-13
5c06d3
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
5c06d3
- Replace maven BuildRequires with maven-local
5c06d3
5c06d3
* Tue Jan 15 2013 Michal Srb <msrb@redhat.com> - 1.3-12
5c06d3
- Build with xmvn
5c06d3
5c06d3
* Thu Nov 22 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.3-11
5c06d3
- Install NOTICE file
5c06d3
- Resolves: rhbz#879556
5c06d3
5c06d3
* Fri Nov  9 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.3-10
5c06d3
- Don't build-require maven2
5c06d3
5c06d3
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-9
5c06d3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
5c06d3
5c06d3
* Fri Mar  2 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> 1.3-8
5c06d3
- Fix build and update to latest guidelines
5c06d3
5c06d3
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-7
5c06d3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
5c06d3
5c06d3
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-6
5c06d3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
5c06d3
5c06d3
* Thu Oct 21 2010 Chris Spike <chris.spike@arcor.de> 1.3-5
5c06d3
- tomcat5 -> tomcat6 BRs/Rs
5c06d3
5c06d3
* Thu Jul  8 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.3-4
5c06d3
- Add license to javadoc subpackage
5c06d3
5c06d3
* Thu May 27 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.3-3
5c06d3
- Add tomcat5 to BR
5c06d3
5c06d3
* Tue May 25 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.3-2
5c06d3
- Fix ownership of some directories
5c06d3
5c06d3
* Tue May 25 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.3-1
5c06d3
- Rename package (jakarta-commons-jxpath->apache-commons-jxpath)
5c06d3
- Cleanup spec file
5c06d3
- Build using maven, drop old pom file from sources
5c06d3
- Update to upstream version
5c06d3
5c06d3
* Thu Aug 20 2009 Alexander Kurtakov <akurtako@redhat.com> 0:1.2-9
5c06d3
- Fix random spaces.
5c06d3
5c06d3
* Wed Aug 19 2009 Alexander Kurtakov <akurtako@redhat.com> 0:1.2-8
5c06d3
- BuildRequires java-devel >= 1.6.0.
5c06d3
5c06d3
* Wed Aug 19 2009 Alexander Kurtakov <akurtako@redhat.com> 0:1.2-7
5c06d3
- Initial package for Fedora.
5c06d3
5c06d3
* Sun May 17 2009 Fernando Nasser <fnasser@redhat.com> - 0:1.2-6
5c06d3
- Fix License
5c06d3
- Provide intructions for obtaining source and refresh source tar ball
5c06d3
5c06d3
* Wed Mar 18 2009 Yong Yang <yyang@redhat.com> - 0:1.2-5
5c06d3
- rebuild with new maven2 2.0.8 built in bootstrap mode
5c06d3
5c06d3
* Thu Feb 05 2009 Yong Yang <yyang@redhat.com> - 0:1.2-4
5c06d3
- Fix release tag
5c06d3
5c06d3
* Thu Jan 08 2009 Yong Yang <yyang@redhat.com> - 0:1.2-3jpp.1
5c06d3
- Import from dbhole's maven 2.0.8 packages, initial building
5c06d3
5c06d3
* Wed Apr 09 2008 Deepak Bhole <dbhole@redhat.com> - 0:1.2-2jpp.1
5c06d3
- Import from JPackage
5c06d3
- Added pom file
5c06d3
5c06d3
* Wed Jun 07 2006 Fernando Nasser <fnasser@redhat.com> - 0:1.2-2jpp
5c06d3
- First JPP 1.7 build
5c06d3
5c06d3
* Sat Sep 18 2004 Ralph Apel <r.apel at r-apel.de> - 0:1.2-1jpp
5c06d3
- Upgrade to 1.2
5c06d3
- Use jdom-1.0-0.rc1.1jpp
5c06d3
- Relax some versioned dependencies
5c06d3
5c06d3
* Sun Aug 23 2004 Randy Watler <rwatler at finali.com> - 0:1.1-3jpp
5c06d3
- Rebuild with ant-1.6.2
5c06d3
5c06d3
* Tue Jun 01 2004 Randy Watler <rwatler at finali.com> - 0:1.1-2jpp
5c06d3
- Upgrade to Ant 1.6.X
5c06d3
5c06d3
* Mon Jan 19 2004 Ralph Apel <r.apel at r-apel.de> - 0:1.1-1jpp
5c06d3
- First JPackage release