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