package init
This commit is contained in:
parent
99aa31a460
commit
b1e7052c90
67
jsonp.spec~
67
jsonp.spec~
@ -1,67 +0,0 @@
|
|||||||
%global namedreltag %{nil}
|
|
||||||
%global namedversion %{version}%{?namedreltag}
|
|
||||||
Name: jsonp
|
|
||||||
Version: 1.0.4
|
|
||||||
Release: 1
|
|
||||||
Summary: JSR 353 (JSON Processing) RI
|
|
||||||
License: CDDL or GPLv2 with exceptions
|
|
||||||
URL: http://java.net/projects/jsonp/
|
|
||||||
Source0: https://github.com/javaee/jsonp/archive/jsonp-1.0.4.tar.gz
|
|
||||||
Source1: https://github.com/javaee/spec-version-maven-plugin/raw/master/LICENSE
|
|
||||||
BuildRequires: jvnet-parent glassfish-jax-rs-api >= 2.0-2 junit
|
|
||||||
BuildRequires: maven-local maven-plugin-bundle spec-version-maven-plugin
|
|
||||||
BuildArch: noarch
|
|
||||||
%description
|
|
||||||
JSR 353: Java API for Processing JSON RI.
|
|
||||||
|
|
||||||
%package help
|
|
||||||
Summary: Javadoc for %{name}
|
|
||||||
Provides: %{name}-javadoc = %{version}-%{release}
|
|
||||||
Obsoletes: %{name}-javadoc < %{version}-%{release}
|
|
||||||
%description help
|
|
||||||
This package contains javadoc for %{name}.
|
|
||||||
|
|
||||||
%prep
|
|
||||||
%setup -q -n jsonp-jsonp-1.0.4
|
|
||||||
find . -name '*.jar' -delete
|
|
||||||
find . -name '*.class' -delete
|
|
||||||
%pom_disable_module bundles
|
|
||||||
%pom_disable_module demos
|
|
||||||
%pom_disable_module gf
|
|
||||||
%pom_disable_module tests
|
|
||||||
%pom_remove_dep javax:javaee-web-api
|
|
||||||
%pom_remove_plugin org.glassfish.copyright:glassfish-copyright-maven-plugin
|
|
||||||
%pom_remove_plugin org.codehaus.mojo:wagon-maven-plugin
|
|
||||||
%pom_remove_plugin org.apache.maven.plugins:maven-dependency-plugin impl
|
|
||||||
%pom_remove_plugin org.apache.maven.plugins:maven-source-plugin
|
|
||||||
%pom_remove_plugin :maven-source-plugin api
|
|
||||||
%pom_remove_plugin :maven-javadoc-plugin api
|
|
||||||
%pom_remove_plugin :maven-jar-plugin impl
|
|
||||||
%pom_remove_plugin :maven-javadoc-plugin impl
|
|
||||||
%pom_remove_plugin :maven-source-plugin impl
|
|
||||||
%pom_remove_plugin :maven-javadoc-plugin jaxrs
|
|
||||||
sed -i '/check-module/d' api/pom.xml impl/pom.xml
|
|
||||||
%pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId ='maven-bundle-plugin']/pom:configuration/pom:instructions/pom:Export-Package" impl
|
|
||||||
cp -p %{SOURCE1} LICENSE.txt
|
|
||||||
sed -i 's/\r//' LICENSE.txt
|
|
||||||
%pom_xpath_set "pom:parent/pom:version" %{namedversion} api
|
|
||||||
%pom_xpath_set "pom:parent/pom:version" %{namedversion} jaxrs
|
|
||||||
%mvn_file :javax.json-api %{name}/%{name}-api
|
|
||||||
%mvn_file :javax.json %{name}/%{name}
|
|
||||||
%mvn_file :%{name}-jaxrs %{name}/%{name}-jaxrs
|
|
||||||
|
|
||||||
%build
|
|
||||||
%mvn_build
|
|
||||||
|
|
||||||
%install
|
|
||||||
%mvn_install
|
|
||||||
|
|
||||||
%files -f .mfiles
|
|
||||||
%license LICENSE.txt
|
|
||||||
|
|
||||||
%files help -f .mfiles-javadoc
|
|
||||||
%license LICENSE.txt
|
|
||||||
|
|
||||||
%changelog
|
|
||||||
* Wed Jul 22 2020 yaokai <yaokai13@huawei.com> - 1.0.4-1
|
|
||||||
- package init
|
|
||||||
Loading…
x
Reference in New Issue
Block a user