Accepting request 692110 from Java:packages
OBS-URL: https://build.opensuse.org/request/show/692110 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cdi-api?expand=0&rev=3
This commit is contained in:
commit
99167cd6c8
14
_service
Normal file
14
_service
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<services>
|
||||||
|
<service name="tar_scm" mode="disabled">
|
||||||
|
<param name="scm">git</param>
|
||||||
|
<param name="url">git://github.com/cdi-spec/cdi</param>
|
||||||
|
<param name="revision">1.2</param>
|
||||||
|
<param name="versionformat">1.2</param>
|
||||||
|
<param name="include">api</param>
|
||||||
|
</service>
|
||||||
|
<service name="recompress" mode="disabled">
|
||||||
|
<param name="file">*.tar</param>
|
||||||
|
<param name="compression">xz</param>
|
||||||
|
</service>
|
||||||
|
<service name="set_version" mode="disabled"/>
|
||||||
|
</services>
|
3
cdi-1.2.tar.xz
Normal file
3
cdi-1.2.tar.xz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:f38b66047deaf0f79004f41b68be1dbbe2061d8e94a42401b93f9c911484f14f
|
||||||
|
size 46560
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:e2a400ceeade6f10cfcd857b638b8466821a9e86ba4ee1fd6885b586b22afda3
|
|
||||||
size 46600
|
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Apr 6 22:29:10 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
|
||||||
|
|
||||||
|
- Use _service instead of custom create-tarball.sh.
|
||||||
|
- Avoid double-shipping license file.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Apr 3 10:59:32 UTC 2019 - Fridrich Strba <fstrba@suse.com>
|
Wed Apr 3 10:59:32 UTC 2019 - Fridrich Strba <fstrba@suse.com>
|
||||||
|
|
||||||
|
16
cdi-api.spec
16
cdi-api.spec
@ -25,10 +25,9 @@ License: Apache-2.0
|
|||||||
Group: Development/Libraries/Java
|
Group: Development/Libraries/Java
|
||||||
URL: http://seamframework.org/Weld
|
URL: http://seamframework.org/Weld
|
||||||
# sh create-tarball.sh %%{version}
|
# sh create-tarball.sh %%{version}
|
||||||
Source0: %{name}-%{version}.tar.xz
|
Source0: cdi-%{version}.tar.xz
|
||||||
Source1: %{name}-build.xml
|
Source1: %{name}-build.xml
|
||||||
Source2: http://www.apache.org/licenses/LICENSE-2.0.txt
|
Source2: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||||
Source3: create-tarball.sh
|
|
||||||
BuildRequires: ant
|
BuildRequires: ant
|
||||||
BuildRequires: atinject
|
BuildRequires: atinject
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
@ -51,7 +50,8 @@ Group: Documentation/HTML
|
|||||||
This package contains the API documentation for %{name}.
|
This package contains the API documentation for %{name}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -qn cdi-%{version}
|
||||||
|
pushd api/
|
||||||
cp %{SOURCE1} build.xml
|
cp %{SOURCE1} build.xml
|
||||||
cp %{SOURCE2} LICENSE
|
cp %{SOURCE2} LICENSE
|
||||||
|
|
||||||
@ -59,8 +59,10 @@ cp %{SOURCE2} LICENSE
|
|||||||
%pom_change_dep "javax.interceptor:javax.interceptor-api" "org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.2_spec"
|
%pom_change_dep "javax.interceptor:javax.interceptor-api" "org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.2_spec"
|
||||||
|
|
||||||
%pom_remove_parent
|
%pom_remove_parent
|
||||||
|
popd
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
pushd api/
|
||||||
mkdir -p lib
|
mkdir -p lib
|
||||||
build-jar-repository -s lib glassfish-el-api jboss-interceptors-1.2-api javax.inject
|
build-jar-repository -s lib glassfish-el-api jboss-interceptors-1.2-api javax.inject
|
||||||
%{ant} \
|
%{ant} \
|
||||||
@ -68,8 +70,10 @@ build-jar-repository -s lib glassfish-el-api jboss-interceptors-1.2-api javax.in
|
|||||||
-Dtest.skip=true \
|
-Dtest.skip=true \
|
||||||
%endif
|
%endif
|
||||||
jar javadoc
|
jar javadoc
|
||||||
|
popd
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
pushd api/
|
||||||
# jar
|
# jar
|
||||||
install -dm 0755 %{buildroot}%{_javadir}/%{name}
|
install -dm 0755 %{buildroot}%{_javadir}/%{name}
|
||||||
install -dm 0755 %{buildroot}%{_javadir}/javax.enterprise.inject
|
install -dm 0755 %{buildroot}%{_javadir}/javax.enterprise.inject
|
||||||
@ -82,14 +86,14 @@ install -pm 0644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{name}.pom
|
|||||||
# javadoc
|
# javadoc
|
||||||
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}
|
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}
|
||||||
cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/
|
cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/
|
||||||
|
popd
|
||||||
%fdupes -s %{buildroot}%{_javadocdir}
|
%fdupes -s %{buildroot}%{_javadocdir}
|
||||||
|
|
||||||
%files -f .mfiles
|
%files -f api/.mfiles
|
||||||
%license LICENSE
|
%license api/LICENSE
|
||||||
%{_javadir}/javax.enterprise.inject
|
%{_javadir}/javax.enterprise.inject
|
||||||
|
|
||||||
%files javadoc
|
%files javadoc
|
||||||
%license LICENSE
|
|
||||||
%{_javadocdir}/%{name}
|
%{_javadocdir}/%{name}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
set -e -x
|
|
||||||
test $# -eq 1
|
|
||||||
test ! -d cdi
|
|
||||||
git clone git://github.com/cdi-spec/cdi.git
|
|
||||||
cd ./cdi
|
|
||||||
git checkout -b tag-${1} ${1}
|
|
||||||
git archive --format=tar --prefix=cdi-api-${1}/ HEAD:api \
|
|
||||||
| xz >../cdi-api-${1}.tar.xz
|
|
Loading…
Reference in New Issue
Block a user