48 lines
1.2 KiB
RPMSpec
48 lines
1.2 KiB
RPMSpec
Name: jsr-311
|
|
Version: 1.1.1
|
|
Release: 18
|
|
Summary: JAX-RS:Java API for RESTful Web Services
|
|
License: CDDL-1.0
|
|
URL: http://jsr311.java.net
|
|
Source0: https://github.com/javaee/jsr311/archive/jsr311-api-1.1.1.tar.gz
|
|
|
|
BuildRequires: maven-local mvn(junit:junit) mvn(org.apache.felix:maven-bundle-plugin)
|
|
|
|
Provides: javax.ws.rs
|
|
BuildArch: noarch
|
|
|
|
%description
|
|
JAX-RS: Java API for RESTful Web Services
|
|
|
|
%package help
|
|
Provides: %{name}-javadoc = %{version}-%{release}
|
|
Obsoletes: %{name}-javadoc < %{version}-%{release}
|
|
Summary: Javadoc for jsr-311
|
|
|
|
%description help
|
|
This package contains a java manual for introducing jsr-311.
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%pom_remove_plugin :buildnumber-maven-plugin
|
|
%pom_remove_plugin :maven-javadoc-plugin
|
|
%pom_remove_plugin :maven-source-plugin
|
|
%pom_xpath_remove "///pom:extensions/pom:extension[pom:artifactId='wagon-svn']"
|
|
|
|
%build
|
|
%mvn_file :jsr311-api %{name} javax.ws.rs/%{name}
|
|
%mvn_build -- -Dproject.build.sourceEncoding=UTF-8
|
|
|
|
%install
|
|
%mvn_install
|
|
|
|
%files -f .mfiles
|
|
%dir %{_javadir}/javax.ws.rs/
|
|
|
|
%files help -f .mfiles-javadoc
|
|
|
|
%changelog
|
|
* Fri Dec 20 2019 yangjian<yangjian79@huawei.com> - 1.1.1-18
|
|
- Package init
|