forked from pool/jcip-annotations
Compare commits
16 Commits
72697c72cf
...
14a22c10ca
Author | SHA256 | Date | |
---|---|---|---|
14a22c10ca | |||
8b26b8c656 | |||
414844fc2a | |||
7526e9dcb6 | |||
84f7aaaed8 | |||
ba6d89197d | |||
bf717f677e | |||
d57254f06c | |||
ce59aeb33e | |||
361f8fd50a | |||
16d7a26f7b | |||
3395f214aa | |||
21b8187166 | |||
92bc9b28e2 | |||
|
6d45182570 | ||
|
a8b1bce150 |
16
_service
Normal file
16
_service
Normal file
@@ -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>
|
3
jcip-annotations-1.0.1.tar.xz
Normal file
3
jcip-annotations-1.0.1.tar.xz
Normal file
@@ -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>
|
94
jcip-annotations-build.xml
Normal file
94
jcip-annotations-build.xml
Normal file
@@ -0,0 +1,94 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<project name="jcip-annotations" default="package" basedir=".">
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Build environment properties -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<property name="build.finalName" value="jcip-annotations"/>
|
||||
<property name="build.dir" value="target"/>
|
||||
<property name="build.outputDir" value="${build.dir}/classes"/>
|
||||
<property name="build.srcDir" value="src/main/java"/>
|
||||
<property name="build.resourceDir" value="src/main/resources"/>
|
||||
|
||||
<property name="reporting.outputDirectory" value="${build.dir}/site"/>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Cleaning up target -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="clean" description="Clean the output directory">
|
||||
<delete dir="${build.dir}"/>
|
||||
</target>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Compilation target -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="compile" description="Compile the code">
|
||||
<mkdir dir="${build.outputDir}"/>
|
||||
<javac destdir="${build.outputDir}"
|
||||
nowarn="false"
|
||||
debug="true"
|
||||
optimize="false"
|
||||
deprecation="true"
|
||||
encoding="utf-8"
|
||||
release="8"
|
||||
target="1.8"
|
||||
verbose="false"
|
||||
fork="false"
|
||||
source="1.8">
|
||||
<src>
|
||||
<pathelement location="${build.srcDir}"/>
|
||||
</src>
|
||||
</javac>
|
||||
</target>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Javadoc target -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="javadoc" description="Generates the Javadoc of the application">
|
||||
<javadoc sourcepath="${build.srcDir}"
|
||||
packagenames="*"
|
||||
destdir="${reporting.outputDirectory}/apidocs"
|
||||
access="protected"
|
||||
source="1.8"
|
||||
encoding="utf-8"
|
||||
verbose="false"
|
||||
version="true"
|
||||
use="true"
|
||||
author="true"
|
||||
splitindex="false"
|
||||
nodeprecated="false"
|
||||
nodeprecatedlist="false"
|
||||
notree="false"
|
||||
noindex="false"
|
||||
nohelp="false"
|
||||
nonavbar="false"
|
||||
serialwarn="false"
|
||||
charset="ISO-8859-1"
|
||||
linksource="false"
|
||||
breakiterator="false"/>
|
||||
</target>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Package target -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="package" depends="compile" description="Package the application">
|
||||
<jar jarfile="${build.dir}/${build.finalName}.jar"
|
||||
compress="true"
|
||||
index="false"
|
||||
basedir="${build.outputDir}"
|
||||
excludes="**/package.html"/>
|
||||
</target>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- A dummy target for the package named after the type it creates -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="jar" depends="package" description="Builds the jar for the application"/>
|
||||
|
||||
</project>
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:221f5cbe0b00a4c5f3c8870639de3573223fb9aa2636c631f901302fd4339efc
|
||||
size 4998
|
@@ -1,3 +1,26 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 19 02:46:22 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Use ant to build
|
||||
|
||||
-------------------------------------------------------------------
|
||||
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>
|
||||
|
||||
- The pom file is simple, so it does not need to be installed
|
||||
using the %%mvn_install_pom macro
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 4 11:15:53 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Add alias to the other implementation out there
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 23 13:15:04 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
|
@@ -17,61 +17,56 @@
|
||||
|
||||
|
||||
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
|
||||
Source1: %{name}-build.xml
|
||||
BuildRequires: ant
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: java-devel >= 1.8
|
||||
BuildRequires: javapackages-local >= 6
|
||||
BuildRequires: unzip
|
||||
BuildRequires: javapackages-local
|
||||
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
|
||||
cp %{SOURCE1} build.xml
|
||||
|
||||
# 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
|
||||
pushd target/classes
|
||||
jar \
|
||||
--date="$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ)" \
|
||||
--create --manifest=../../META-INF/MANIFEST.MF --file=../%{name}-%{version}.jar *
|
||||
popd
|
||||
ant jar javadoc
|
||||
|
||||
%install
|
||||
# jars
|
||||
install -dm 0755 %{buildroot}%{_javadir}
|
||||
install -pm 0644 target/%{name}-%{version}.jar \
|
||||
%{buildroot}%{_javadir}/%{name}.jar
|
||||
install -pm 0644 target/%{name}.jar %{buildroot}%{_javadir}/%{name}.jar
|
||||
|
||||
# pom
|
||||
install -dm 0755 %{buildroot}%{_mavenpomdir}
|
||||
%{mvn_install_pom} %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
||||
%add_maven_depmap JPP-%{name}.pom %{name}.jar
|
||||
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}
|
||||
@@ -79,8 +74,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
|
||||
|
Reference in New Issue
Block a user