Cleanup spec file

This commit is contained in:
Mikolaj Izdebski 2015-04-14 05:40:01 +02:00
parent 0649f11cec
commit a9058f2621

View File

@ -1,33 +1,25 @@
%global base_name jxpath Name: apache-commons-jxpath
%global short_name commons-%{base_name}
Name: apache-%{short_name}
Version: 1.3 Version: 1.3
Release: 21%{?dist} Release: 22%{?dist}
Summary: Simple XPath interpreter Summary: Simple XPath interpreter
Group: Development/Libraries
License: ASL 2.0 License: ASL 2.0
URL: http://commons.apache.org/%{base_name}/ URL: http://commons.apache.org/jxpath/
Source0: http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
Patch0: %{short_name}-mockrunner.patch
BuildArch: noarch BuildArch: noarch
BuildRequires: java-devel >= 1:1.6.0 Source0: http://www.apache.org/dist/commons/jxpath/source/commons-jxpath-%{version}-src.tar.gz
BuildRequires: jpackage-utils
Patch0: commons-jxpath-mockrunner.patch
BuildRequires: maven-local BuildRequires: maven-local
BuildRequires: maven-antrun-plugin BuildRequires: mvn(commons-beanutils:commons-beanutils)
BuildRequires: maven-assembly-plugin
BuildRequires: maven-compiler-plugin
BuildRequires: maven-install-plugin
BuildRequires: maven-jar-plugin
BuildRequires: maven-javadoc-plugin
BuildRequires: maven-plugin-bundle
BuildRequires: maven-resources-plugin
BuildRequires: maven-surefire-plugin
BuildRequires: servlet
BuildRequires: mvn(javax.servlet:jsp-api) BuildRequires: mvn(javax.servlet:jsp-api)
BuildRequires: el_api BuildRequires: mvn(javax.servlet:servlet-api)
BuildRequires: mvn(jdom:jdom)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.commons:commons-parent:pom:)
BuildRequires: mvn(org.apache.maven.plugins:maven-assembly-plugin)
BuildRequires: mvn(xerces:xercesImpl)
BuildRequires: mvn(xml-apis:xml-apis)
%description %description
Defines a simple interpreter of an expression language called XPath. Defines a simple interpreter of an expression language called XPath.
@ -36,32 +28,34 @@ JavaBeans, Maps, Servlet contexts, DOM etc, including mixtures thereof.
%package javadoc %package javadoc
Summary: API documentation for %{name} Summary: API documentation for %{name}
Group: Documentation
Requires: jpackage-utils
%description javadoc %description javadoc
This package contains the API documentation for %{name}. This package contains the API documentation for %{name}.
%prep %prep
%setup -q -n %{short_name}-%{version}-src %setup -q -n commons-jxpath-%{version}-src
%patch0 -p1 %patch0 -p1
%mvn_file ":{*}" %{name} @1
%mvn_alias : org.apache.commons:
%build %build
# we are skipping tests because we don't have com.mockrunner in repos yet # we are skipping tests because we don't have com.mockrunner in repos yet
%mvn_file : %{short_name} %{name}
%mvn_alias : org.apache.commons:%{short_name}
%mvn_build -f %mvn_build -f
%install %install
%mvn_install %mvn_install
%files -f .mfiles %files -f .mfiles
%doc LICENSE.txt NOTICE.txt %license LICENSE.txt NOTICE.txt
%files javadoc -f .mfiles-javadoc %files javadoc -f .mfiles-javadoc
%doc LICENSE.txt NOTICE.txt %license LICENSE.txt NOTICE.txt
%changelog %changelog
* Tue Apr 14 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.3-22
- Cleanup spec file
* Wed Feb 25 2015 Alexander Kurtakov <akurtako@redhat.com> 1.3-21 * Wed Feb 25 2015 Alexander Kurtakov <akurtako@redhat.com> 1.3-21
- Rebuild for jsp api. - Rebuild for jsp api.
- Drop old javadoc pre section. - Drop old javadoc pre section.