package init
This commit is contained in:
parent
bfe2cef8b2
commit
99aa31a460
22
jsonp.spec
22
jsonp.spec
@ -6,7 +6,7 @@ Release: 1
|
|||||||
Summary: JSR 353 (JSON Processing) RI
|
Summary: JSR 353 (JSON Processing) RI
|
||||||
License: CDDL or GPLv2 with exceptions
|
License: CDDL or GPLv2 with exceptions
|
||||||
URL: http://java.net/projects/jsonp/
|
URL: http://java.net/projects/jsonp/
|
||||||
Source0: https://github.com/javaee/jsonp/archive/jsonp-1.0.4.tar.gz
|
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
|
Source1: https://github.com/javaee/spec-version-maven-plugin/raw/master/LICENSE
|
||||||
BuildRequires: jvnet-parent glassfish-jax-rs-api >= 2.0-2 junit
|
BuildRequires: jvnet-parent glassfish-jax-rs-api >= 2.0-2 junit
|
||||||
BuildRequires: maven-local maven-plugin-bundle spec-version-maven-plugin
|
BuildRequires: maven-local maven-plugin-bundle spec-version-maven-plugin
|
||||||
@ -14,10 +14,12 @@ BuildArch: noarch
|
|||||||
%description
|
%description
|
||||||
JSR 353: Java API for Processing JSON RI.
|
JSR 353: Java API for Processing JSON RI.
|
||||||
|
|
||||||
%package javadoc
|
%package help
|
||||||
Summary: Javadoc for %{name}
|
Summary: Javadoc for jsonp
|
||||||
%description javadoc
|
Provides: jsonp-javadoc = %{version}-%{release}
|
||||||
This package contains javadoc for %{name}.
|
Obsoletes: jsonp-javadoc < %{version}-%{release}
|
||||||
|
%description help
|
||||||
|
This package contains javadoc for jsonp.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n jsonp-jsonp-1.0.4
|
%setup -q -n jsonp-jsonp-1.0.4
|
||||||
@ -44,9 +46,9 @@ cp -p %{SOURCE1} LICENSE.txt
|
|||||||
sed -i 's/\r//' 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} api
|
||||||
%pom_xpath_set "pom:parent/pom:version" %{namedversion} jaxrs
|
%pom_xpath_set "pom:parent/pom:version" %{namedversion} jaxrs
|
||||||
%mvn_file :javax.json-api %{name}/%{name}-api
|
%mvn_file :javax.json-api jsonp/jsonp-api
|
||||||
%mvn_file :javax.json %{name}/%{name}
|
%mvn_file :javax.json jsonp/jsonp
|
||||||
%mvn_file :%{name}-jaxrs %{name}/%{name}-jaxrs
|
%mvn_file :jsonp-jaxrs jsonp/jsonp-jaxrs
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%mvn_build
|
%mvn_build
|
||||||
@ -57,9 +59,9 @@ sed -i 's/\r//' LICENSE.txt
|
|||||||
%files -f .mfiles
|
%files -f .mfiles
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
|
|
||||||
%files javadoc -f .mfiles-javadoc
|
%files help -f .mfiles-javadoc
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Wed Jul 22 2020 yaokai <yaokai13@huawei.com> - 1.0.4-1
|
* Mon Aug 24 2020 yaokai <yaokai13@huawei.com> - 1.0.4-1
|
||||||
- package init
|
- package init
|
||||||
|
|||||||
67
jsonp.spec~
Normal file
67
jsonp.spec~
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
%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