6
0
forked from pool/concurrent
Files
concurrent/concurrent.spec

84 lines
2.7 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package concurrent
#
2025-08-18 14:55:49 +02:00
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
2025-08-18 14:55:49 +02:00
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: concurrent
Version: 1.3.4
Release: 0
Summary: Utility Classes for Concurrent Java Programming
License: SUSE-Public-Domain
Group: Development/Libraries/Java
2025-08-18 14:55:49 +02:00
URL: https://gee.cs.oswego.edu/dl/classes/EDU/oswego/cs/dl/util/concurrent/intro.html
Source0: https://gee.cs.oswego.edu/dl/classes/EDU/oswego/cs/dl/current/%{name}.tar.gz
Source1: https://repo1.maven.org/maven2/%{name}/%{name}/%{version}/%{name}-%{version}.pom
Source2: %{name}-%{version}.build.xml
Patch0: concurrent-jdk8.patch
2025-08-18 14:55:49 +02:00
Patch1: concurrent-jdk17.patch
BuildRequires: ant
BuildRequires: java-devel >= 1.8
2025-08-18 14:55:49 +02:00
BuildRequires: java-javadoc >= 1.8
BuildRequires: javapackages-local >= 6
BuildArch: noarch
%description
This package provides standardized, efficient versions of utility
classes commonly encountered in concurrent Java programming. This code
consists of implementations of ideas that have been around for ages and
is merely intended to save you the trouble of coding them. Discussions
of the rationale and application of several of these classes can be
found in the second edition of Concurrent Programming in Java.
2025-08-18 14:55:49 +02:00
%package javadoc
Summary: API documentation for %{name}
Group: Documentation/HTML
%description javadoc
API documentation for %{name}.
%prep
%setup -q -c
2025-08-18 14:55:49 +02:00
%patch -P 0
%patch -P 1
mkdir -p src/EDU/oswego/cs/dl/util
mv concurrent src/EDU/oswego/cs/dl/util
2025-08-18 14:55:49 +02:00
cp %{SOURCE2} build.xml
%build
ant \
-Dversion=%{version} \
-Dj2se.apiurl=%{_javadocdir}/java \
2025-08-18 14:55:49 +02:00
jar javadoc
%install
2025-08-18 14:55:49 +02:00
install -dm0755 %{buildroot}%{_javadir}
install -m0644 %{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
install -dm0755 %{buildroot}%{_mavenpomdir}
%{mvn_install_pom} %{SOURCE1} %{buildroot}/%{_mavenpomdir}/%{name}.pom
install -dm0755 %{buildroot}%{_javadocdir}/%{name}
cp -rf docs/* %{buildroot}%{_javadocdir}/%{name}/
%add_maven_depmap %{name}.pom %{name}.jar
%files -f .mfiles
2025-08-18 14:55:49 +02:00
%files javadoc
%{_javadocdir}/%{name}
%changelog