6
0

Compare commits

...

11 Commits

Author SHA256 Message Date
30d2bd7675 Accepting request 1202690 from Java:packages
Use SOURCE_DATE_EPOCH for reproducible builds

OBS-URL: https://build.opensuse.org/request/show/1202690
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/jcip-annotations?expand=0&rev=15
2024-09-24 15:32:34 +00:00
7eaba98f78 OBS-URL: https://build.opensuse.org/package/show/Java:packages/jcip-annotations?expand=0&rev=28 2024-09-23 14:41:11 +00:00
8bb2b59faa OBS-URL: https://build.opensuse.org/package/show/Java:packages/jcip-annotations?expand=0&rev=27 2024-09-23 13:16:25 +00:00
41de68cad2 OBS-URL: https://build.opensuse.org/package/show/Java:packages/jcip-annotations?expand=0&rev=26 2024-09-23 13:15:10 +00:00
12f5f65b60 OBS-URL: https://build.opensuse.org/package/show/Java:packages/jcip-annotations?expand=0&rev=25 2024-09-23 13:12:52 +00:00
16d7a26f7b Accepting request 964417 from Java:packages
Build with source and target levels 8

OBS-URL: https://build.opensuse.org/request/show/964417
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/jcip-annotations?expand=0&rev=14
2022-03-24 21:57:56 +00:00
3395f214aa Accepting request 527147 from Java:packages
Fix build with jdk9

OBS-URL: https://build.opensuse.org/request/show/527147
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/jcip-annotations?expand=0&rev=13
2017-09-20 15:09:52 +00:00
21b8187166 Accepting request 496634 from Java:packages
- Fix build with new javapackages-tools

OBS-URL: https://build.opensuse.org/request/show/496634
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/jcip-annotations?expand=0&rev=12
2017-05-22 08:47:18 +00:00
92bc9b28e2 Accepting request 292625 from Java:packages
javapackages-tools update

OBS-URL: https://build.opensuse.org/request/show/292625
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/jcip-annotations?expand=0&rev=11
2015-04-02 13:57:04 +00:00
Stephan Kulow
6d45182570 Accepting request 198286 from Java:packages
Submit of succeeding java packages for factory

OBS-URL: https://build.opensuse.org/request/show/198286
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/jcip-annotations?expand=0&rev=8
2013-09-11 11:38:41 +00:00
Stephan Kulow
a8b1bce150 Accepting request 107182 from Java:packages
license update: CC-BY-2.5
Most of the pattern matches in the package are for CC-BY-2.5, not CC-BY-3.0 (forwarded request 107179 from babelworx)

OBS-URL: https://build.opensuse.org/request/show/107182
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/jcip-annotations?expand=0&rev=5
2012-03-01 16:20:29 +00:00
4 changed files with 41 additions and 30 deletions

View File

@@ -1,6 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?><project>
<modelVersion>4.0.0</modelVersion> <project xmlns="http://maven.apache.org/POM/4.0.0"
<groupId>net.jcip</groupId> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
<artifactId>jcip-annotations</artifactId> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
<version>1.0</version> >
<modelVersion>4.0.0</modelVersion>
<groupId>net.jcip</groupId>
<artifactId>jcip-annotations</artifactId>
<packaging>jar</packaging>
<version>1.0</version>
<name>"Java Concurrency in Practice" book annotations</name>
<url>http://jcip.net/</url>
</project> </project>

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1 version https://git-lfs.github.com/spec/v1
oid sha256:e3ad6ae439e3cf8a25372de838efaa1a95f8ef9b5053d5d94fafe89c8c09814e oid sha256:221f5cbe0b00a4c5f3c8870639de3573223fb9aa2636c631f901302fd4339efc
size 5002 size 4998

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Sep 23 13:15:04 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Use SOURCE_DATE_EPOCH for reproducible builds
- Clean the spec file, fix download urls and redownload the sources
------------------------------------------------------------------- -------------------------------------------------------------------
Sun Mar 20 07:01:18 UTC 2022 - Fridrich Strba <fstrba@suse.com> Sun Mar 20 07:01:18 UTC 2022 - Fridrich Strba <fstrba@suse.com>

View File

@@ -1,7 +1,7 @@
# #
# spec file for package jcip-annotations # spec file for package jcip-annotations
# #
# Copyright (c) 2022 SUSE LLC # Copyright (c) 2024 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -24,11 +24,10 @@ License: CC-BY-2.5
Group: Development/Libraries/Java Group: Development/Libraries/Java
URL: http://www.jcip.net/ URL: http://www.jcip.net/
Source0: http://www.jcip.net/jcip-annotations-src.jar Source0: http://www.jcip.net/jcip-annotations-src.jar
Source1: http://repo1.maven.org/maven/livetribe/maven/m2/net/jcip/jcip-annotations/1.0/jcip-annotations-1.0.pom Source1: https://repo1.maven.org/maven2/net/jcip/jcip-annotations/1.0/jcip-annotations-1.0.pom
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: java-devel >= 1.8 BuildRequires: java-devel >= 1.8
BuildRequires: javapackages-local BuildRequires: javapackages-local >= 6
BuildRequires: javapackages-tools
BuildRequires: unzip BuildRequires: unzip
BuildArch: noarch BuildArch: noarch
@@ -52,40 +51,38 @@ mkdir -p src/main/java/
mv net src/main/java mv net src/main/java
%build %build
export JAVA_HOME=%{_jvmdir}/java javac -source 1.8 -target 1.8 -d target/classes $(find src/main/java -name "*.java")
$JAVA_HOME/bin/javac -source 1.8 -target 1.8 -d target/classes $(find src/main/java -name "*.java") javadoc -source 1.8 -notimestamp -d target/site/apidocs -sourcepath src/main/java net.jcip.annotations
$JAVA_HOME/bin/javadoc -source 1.8 -d target/site/apidocs -sourcepath src/main/java net.jcip.annotations
for f in $(find aQute/ -type f -not -name "*.class"); do for f in $(find aQute/ -type f -not -name "*.class"); do
cp $f target/classes/$f cp $f target/classes/$f
done done
pushd target/classes pushd target/classes
$JAVA_HOME/bin/jar cmf ../../META-INF/MANIFEST.MF ../%{name}-%{version}.jar * jar \
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 17}%{!?pkg_vcmp:0}
--date="$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ)" \
%endif
--create --manifest=../../META-INF/MANIFEST.MF --file=../%{name}-%{version}.jar *
popd popd
%install %install
# jars # jars
install -d -m 755 %{buildroot}%{_javadir} install -dm 0755 %{buildroot}%{_javadir}
install -m 644 target/%{name}-%{version}.jar \ install -pm 0644 target/%{name}-%{version}.jar \
%{buildroot}%{_javadir}/%{name}.jar %{buildroot}%{_javadir}/%{name}.jar
# pom # pom
install -d -m 755 %{buildroot}%{_mavenpomdir} install -dm 0755 %{buildroot}%{_mavenpomdir}
install -m 644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom %{mvn_install_pom} %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
%add_maven_depmap %add_maven_depmap JPP-%{name}.pom %{name}.jar
# javadoc # javadoc
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}-%{version} install -dm 0755 %{buildroot}%{_javadocdir}/%{name}
cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}-%{version} cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
%fdupes -s %{buildroot}%{_javadocdir}/%{name}-%{version} %fdupes -s %{buildroot}%{_javadocdir}/%{name}
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name} # ghost symlink
%files %files -f .mfiles
%{_javadir}/*
%{_mavenpomdir}/*
%{_datadir}/maven-metadata/%{name}.xml
%files javadoc %files javadoc
%doc %{_javadocdir}/%{name}-%{version} %{_javadocdir}/%{name}
%doc %{_javadocdir}/%{name}
%changelog %changelog