2010-12-08 11:27:37 +00:00
|
|
|
#
|
2012-01-13 16:11:57 +00:00
|
|
|
# spec file for package jcip-annotations
|
2010-12-08 11:27:37 +00:00
|
|
|
#
|
2024-09-23 13:12:52 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2010-12-08 11:27:37 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2022-03-20 07:01:35 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2010-12-08 11:27:37 +00:00
|
|
|
#
|
|
|
|
|
2013-09-09 11:56:55 +00:00
|
|
|
|
2009-06-03 13:13:04 +00:00
|
|
|
Name: jcip-annotations
|
2024-12-18 16:12:49 +00:00
|
|
|
Version: 1.0.1
|
2012-01-13 16:11:57 +00:00
|
|
|
Release: 0
|
2024-12-18 16:12:49 +00:00
|
|
|
Summary: A clean room implementation of the JCIP Annotations
|
|
|
|
License: Apache-2.0
|
2010-12-07 12:51:05 +00:00
|
|
|
Group: Development/Libraries/Java
|
2024-12-18 16:12:49 +00:00
|
|
|
URL: https://github.com/stephenc/jcip-annotations
|
|
|
|
Source0: %{name}-%{version}.tar.xz
|
2024-12-19 02:47:23 +00:00
|
|
|
Source1: %{name}-build.xml
|
|
|
|
BuildRequires: ant
|
2017-09-18 22:14:29 +00:00
|
|
|
BuildRequires: fdupes
|
2022-03-20 07:01:35 +00:00
|
|
|
BuildRequires: java-devel >= 1.8
|
2024-12-08 20:15:22 +00:00
|
|
|
BuildRequires: javapackages-local
|
2017-05-19 11:31:47 +00:00
|
|
|
BuildArch: noarch
|
2009-06-03 13:13:04 +00:00
|
|
|
|
|
|
|
%description
|
2024-12-18 16:12:49 +00:00
|
|
|
A clean room implementation of the JCIP Annotations based entirely on the
|
|
|
|
specification provided by the javadocs.
|
2009-06-03 13:13:04 +00:00
|
|
|
|
2017-09-18 22:14:29 +00:00
|
|
|
%package javadoc
|
2024-12-18 16:12:49 +00:00
|
|
|
Summary: API documentation for %{name}
|
2017-09-18 22:16:03 +00:00
|
|
|
Group: Development/Libraries/Java
|
2017-09-18 22:14:29 +00:00
|
|
|
|
|
|
|
%description javadoc
|
2024-12-18 16:12:49 +00:00
|
|
|
A clean room implementation of the JCIP Annotations based entirely on the
|
|
|
|
specification provided by the javadocs.
|
|
|
|
|
|
|
|
This package contains the API documentation.
|
2017-09-18 22:14:29 +00:00
|
|
|
|
2009-06-03 13:13:04 +00:00
|
|
|
%prep
|
2024-12-18 16:12:49 +00:00
|
|
|
%setup -q
|
2024-12-19 02:47:23 +00:00
|
|
|
cp %{SOURCE1} build.xml
|
2024-12-18 16:12:49 +00:00
|
|
|
|
|
|
|
# Remove unnecessary dependency on parent POM
|
|
|
|
%pom_remove_parent
|
|
|
|
|
|
|
|
# Remove unnecessary dependency on JUnit
|
|
|
|
%pom_remove_dep junit:junit
|
2009-06-03 13:13:04 +00:00
|
|
|
|
|
|
|
%build
|
2024-12-19 02:47:23 +00:00
|
|
|
ant jar javadoc
|
2009-06-03 13:13:04 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
# jars
|
2024-09-23 13:12:52 +00:00
|
|
|
install -dm 0755 %{buildroot}%{_javadir}
|
2024-12-19 02:47:23 +00:00
|
|
|
install -pm 0644 target/%{name}.jar %{buildroot}%{_javadir}/%{name}.jar
|
2009-06-03 13:13:04 +00:00
|
|
|
|
|
|
|
# pom
|
2024-09-23 13:12:52 +00:00
|
|
|
install -dm 0755 %{buildroot}%{_mavenpomdir}
|
2024-12-18 16:12:49 +00:00
|
|
|
install -pm 0644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
|
|
|
%add_maven_depmap JPP-%{name}.pom %{name}.jar -a "net.jcip:%{name}"
|
2009-06-03 13:13:04 +00:00
|
|
|
|
2017-09-18 22:14:29 +00:00
|
|
|
# javadoc
|
2024-09-23 13:12:52 +00:00
|
|
|
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
%fdupes -s %{buildroot}%{_javadocdir}/%{name}
|
2017-09-18 22:14:29 +00:00
|
|
|
|
2024-09-23 13:12:52 +00:00
|
|
|
%files -f .mfiles
|
2024-12-18 16:12:49 +00:00
|
|
|
%license LICENSE.txt
|
|
|
|
%doc README.md
|
2009-06-03 13:13:04 +00:00
|
|
|
|
2017-09-18 22:14:29 +00:00
|
|
|
%files javadoc
|
2024-09-23 13:12:52 +00:00
|
|
|
%{_javadocdir}/%{name}
|
2024-12-18 16:12:49 +00:00
|
|
|
%license LICENSE.txt
|
2017-09-18 22:14:29 +00:00
|
|
|
|
2009-06-03 13:13:04 +00:00
|
|
|
%changelog
|