Sync from SUSE:SLFO:Main atinject revision b53259572c7c81b26436cda8e48da03b

This commit is contained in:
Adrian Schröter 2024-07-22 16:58:36 +02:00
parent 29d3f8a64d
commit 705ddbb634
5 changed files with 29 additions and 8 deletions

BIN
1.0.5.tar.gz (Stored with Git LFS)

Binary file not shown.

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">https://github.com/jakartaee/inject.git</param>
<param name="revision">1.0.5</param>
<param name="versionformat">1+%cdgit%h</param>
<param name="filename">atinject</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>

BIN
atinject-1+20211017gitd06ce18.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Jul 9 08:20:48 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Revert to versioning 1+<date>git<git short hash> to avoid upgrade
problems in SLE
-------------------------------------------------------------------
Fri Jun 7 12:10:33 UTC 2024 - Fridrich Strba <fstrba@suse.com>

View File

@ -16,13 +16,14 @@
#
%global artifactversion 1.0.5
Name: atinject
Version: 1.0.5
Version: 1+20211017gitd06ce18
Release: 0
Summary: Dependency injection specification for Java (JSR-330)
License: Apache-2.0
URL: https://github.com/jakartaee/inject/
Source0: https://github.com/jakartaee/inject/archive/%{version}.tar.gz
Source0: %{name}-%{version}.tar.xz
Source1: %{name}-build.xml
BuildRequires: ant
BuildRequires: fdupes
@ -46,7 +47,7 @@ Group: Documentation/HTML
This package contains the API documentation for %{name}.
%prep
%setup -q -n inject-%{version}
%setup -q
cp %{SOURCE1} build.xml
%build
@ -55,9 +56,9 @@ cp %{SOURCE1} build.xml
%install
# jars
install -dm 755 %{buildroot}%{_javadir}/javax.inject
install -m 0644 target/javax.inject-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
install -m 0644 target/javax.inject-%{artifactversion}.jar %{buildroot}%{_javadir}/%{name}.jar
(cd %{buildroot}%{_javadir}/javax.inject && ln -s ../%{name}.jar .)
%add_maven_depmap javax.inject:javax.inject:%{version} %{name}.jar
%add_maven_depmap javax.inject:javax.inject:%{artifactversion} %{name}.jar
# javadoc
install -dm 755 %{buildroot}%{_javadocdir}/%{name}