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:
Dominique Leuenberger 2019-04-08 08:39:55 +00:00 committed by Git OBS Bridge
commit 99167cd6c8
6 changed files with 33 additions and 18 deletions

14
_service Normal file
View 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
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f38b66047deaf0f79004f41b68be1dbbe2061d8e94a42401b93f9c911484f14f
size 46560

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e2a400ceeade6f10cfcd857b638b8466821a9e86ba4ee1fd6885b586b22afda3
size 46600

View File

@ -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>

View File

@ -25,10 +25,9 @@ License: Apache-2.0
Group: Development/Libraries/Java
URL: http://seamframework.org/Weld
# sh create-tarball.sh %%{version}
Source0: %{name}-%{version}.tar.xz
Source0: cdi-%{version}.tar.xz
Source1: %{name}-build.xml
Source2: http://www.apache.org/licenses/LICENSE-2.0.txt
Source3: create-tarball.sh
BuildRequires: ant
BuildRequires: atinject
BuildRequires: fdupes
@ -51,7 +50,8 @@ Group: Documentation/HTML
This package contains the API documentation for %{name}.
%prep
%setup -q
%setup -qn cdi-%{version}
pushd api/
cp %{SOURCE1} build.xml
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_remove_parent
popd
%build
pushd api/
mkdir -p lib
build-jar-repository -s lib glassfish-el-api jboss-interceptors-1.2-api javax.inject
%{ant} \
@ -68,8 +70,10 @@ build-jar-repository -s lib glassfish-el-api jboss-interceptors-1.2-api javax.in
-Dtest.skip=true \
%endif
jar javadoc
popd
%install
pushd api/
# jar
install -dm 0755 %{buildroot}%{_javadir}/%{name}
install -dm 0755 %{buildroot}%{_javadir}/javax.enterprise.inject
@ -82,14 +86,14 @@ install -pm 0644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{name}.pom
# javadoc
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}
cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/
popd
%fdupes -s %{buildroot}%{_javadocdir}
%files -f .mfiles
%license LICENSE
%files -f api/.mfiles
%license api/LICENSE
%{_javadir}/javax.enterprise.inject
%files javadoc
%license LICENSE
%{_javadocdir}/%{name}
%changelog

View File

@ -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