forked from pool/jcip-annotations
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 18 16:09:47 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Switch to clean room implementation, as original implementation
|
||||
uses CC-BY-2.5 licence. The clean room implementation is under
|
||||
Apache-2.0
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Dec 8 20:13:14 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
|
||||
+27
-25
@@ -17,51 +17,50 @@
|
||||
|
||||
|
||||
Name: jcip-annotations
|
||||
Version: 1.0
|
||||
Version: 1.0.1
|
||||
Release: 0
|
||||
Summary: Java Concurrency in Practice
|
||||
License: CC-BY-2.5
|
||||
Summary: A clean room implementation of the JCIP Annotations
|
||||
License: Apache-2.0
|
||||
Group: Development/Libraries/Java
|
||||
URL: http://www.jcip.net/
|
||||
Source0: http://www.jcip.net/jcip-annotations-src.jar
|
||||
Source1: https://repo1.maven.org/maven2/net/jcip/jcip-annotations/1.0/jcip-annotations-1.0.pom
|
||||
URL: https://github.com/stephenc/jcip-annotations
|
||||
Source0: %{name}-%{version}.tar.xz
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: java-devel >= 1.8
|
||||
BuildRequires: javapackages-local
|
||||
BuildRequires: unzip
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
Class, field, and method level annotations for describing thread-safety
|
||||
policies.
|
||||
A clean room implementation of the JCIP Annotations based entirely on the
|
||||
specification provided by the javadocs.
|
||||
|
||||
%package javadoc
|
||||
Summary: Javadoc for %{name}
|
||||
Summary: API documentation for %{name}
|
||||
Group: Development/Libraries/Java
|
||||
|
||||
%description javadoc
|
||||
Class, field, and method level annotations for describing thread-safety
|
||||
policies.
|
||||
A clean room implementation of the JCIP Annotations based entirely on the
|
||||
specification provided by the javadocs.
|
||||
|
||||
This package contains the API documentation.
|
||||
|
||||
%prep
|
||||
%setup -q -c
|
||||
mkdir -p target/site/apidocs/
|
||||
mkdir -p target/classes/
|
||||
mkdir -p src/main/java/
|
||||
mv net src/main/java
|
||||
%setup -q
|
||||
|
||||
# Remove unnecessary dependency on parent POM
|
||||
%pom_remove_parent
|
||||
|
||||
# Remove unnecessary dependency on JUnit
|
||||
%pom_remove_dep junit:junit
|
||||
|
||||
%build
|
||||
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
|
||||
for f in $(find aQute/ -type f -not -name "*.class"); do
|
||||
cp $f target/classes/$f
|
||||
done
|
||||
javac -source 1.8 -target 1.8 -encoding utf-8 -d target/classes $(find src/main/java -name "*.java")
|
||||
javadoc -source 1.8 -notimestamp -encoding utf-8 -d target/site/apidocs -sourcepath src/main/java net.jcip.annotations
|
||||
pushd target/classes
|
||||
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 *
|
||||
--create --file=../%{name}-%{version}.jar *
|
||||
popd
|
||||
|
||||
%install
|
||||
@@ -72,8 +71,8 @@ install -pm 0644 target/%{name}-%{version}.jar \
|
||||
|
||||
# pom
|
||||
install -dm 0755 %{buildroot}%{_mavenpomdir}
|
||||
install -pm 0644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
||||
%add_maven_depmap JPP-%{name}.pom %{name}.jar -a "com.github.stephenc.jcip:%{name}"
|
||||
install -pm 0644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
||||
%add_maven_depmap JPP-%{name}.pom %{name}.jar -a "net.jcip:%{name}"
|
||||
|
||||
# javadoc
|
||||
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}
|
||||
@@ -81,8 +80,11 @@ cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
|
||||
%fdupes -s %{buildroot}%{_javadocdir}/%{name}
|
||||
|
||||
%files -f .mfiles
|
||||
%license LICENSE.txt
|
||||
%doc README.md
|
||||
|
||||
%files javadoc
|
||||
%{_javadocdir}/%{name}
|
||||
%license LICENSE.txt
|
||||
|
||||
%changelog
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
<services>
|
||||
<service name="tar_scm" mode="disabled">
|
||||
<param name="scm">git</param>
|
||||
<param name="url">https://github.com/stephenc/jcip-annotations.git</param>
|
||||
<param name="revision">jcip-annotations-1.0-1</param>
|
||||
<param name="match-tag">jcip-annotations-*</param>
|
||||
<param name="versionformat">@PARENT_TAG@</param>
|
||||
<param name="versionrewrite-pattern">jcip-annotations-(\d+).(\d+)-(\d+)</param>
|
||||
<param name="versionrewrite-replacement">\1.\2.\3</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>
|
||||
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:076a4e9e75936d6400da791d6601c14bb31c3ee4d20ca66eb086bab89b7649cb
|
||||
size 6996
|
||||
@@ -1,14 +0,0 @@
|
||||
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
|
||||
>
|
||||
<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>
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:221f5cbe0b00a4c5f3c8870639de3573223fb9aa2636c631f901302fd4339efc
|
||||
size 4998
|
||||
Reference in New Issue
Block a user