diff --git a/jsr-311.spec b/jsr-311.spec new file mode 100644 index 0000000..52ae15c --- /dev/null +++ b/jsr-311.spec @@ -0,0 +1,47 @@ +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 - 1.1.1-18 +- Package init diff --git a/jsr311-api-1.1.1.tar.gz b/jsr311-api-1.1.1.tar.gz new file mode 100644 index 0000000..65ce489 Binary files /dev/null and b/jsr311-api-1.1.1.tar.gz differ