forked from pool/concurrent
84 lines
2.7 KiB
RPMSpec
84 lines
2.7 KiB
RPMSpec
#
|
|
# spec file for package concurrent
|
|
#
|
|
# 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.
|
|
|
|
# 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
|
|
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
|
|
Patch1: concurrent-jdk17.patch
|
|
BuildRequires: ant
|
|
BuildRequires: java-devel >= 1.8
|
|
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.
|
|
|
|
%package javadoc
|
|
Summary: API documentation for %{name}
|
|
Group: Documentation/HTML
|
|
|
|
%description javadoc
|
|
API documentation for %{name}.
|
|
|
|
%prep
|
|
%setup -q -c
|
|
%patch -P 0
|
|
%patch -P 1
|
|
mkdir -p src/EDU/oswego/cs/dl/util
|
|
mv concurrent src/EDU/oswego/cs/dl/util
|
|
cp %{SOURCE2} build.xml
|
|
|
|
%build
|
|
ant \
|
|
-Dversion=%{version} \
|
|
-Dj2se.apiurl=%{_javadocdir}/java \
|
|
jar javadoc
|
|
|
|
%install
|
|
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
|
|
|
|
%files javadoc
|
|
%{_javadocdir}/%{name}
|
|
|
|
%changelog
|