2024-05-03 11:10:21 +02:00
|
|
|
#
|
|
|
|
# spec file for package atinject
|
|
|
|
#
|
2024-05-31 14:31:46 +02:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2024-05-03 11:10:21 +02: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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: atinject
|
2024-05-31 14:31:46 +02:00
|
|
|
Version: 1.0.5
|
2024-05-03 11:10:21 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Dependency injection specification for Java (JSR-330)
|
|
|
|
License: Apache-2.0
|
2024-05-31 14:31:46 +02:00
|
|
|
URL: https://github.com/jakartaee/inject/
|
|
|
|
Source0: https://github.com/jakartaee/inject/archive/%{version}.tar.gz
|
|
|
|
Source1: %{name}-build.xml
|
|
|
|
BuildRequires: ant
|
2024-05-03 11:10:21 +02:00
|
|
|
BuildRequires: fdupes
|
2024-05-31 14:31:46 +02:00
|
|
|
BuildRequires: java-devel >= 1.8
|
|
|
|
BuildRequires: javapackages-local >= 6
|
|
|
|
Obsoletes: %{name}-tck
|
2024-05-03 11:10:21 +02:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
This package specifies a means for obtaining objects in such a way as
|
|
|
|
to maximize reusability, testability and maintainability compared to
|
|
|
|
traditional approaches such as constructors, factories, and service
|
|
|
|
locators (e.g., JNDI). This process, known as dependency injection, is
|
|
|
|
beneficial to most nontrivial applications.
|
|
|
|
|
|
|
|
%package javadoc
|
2024-05-31 14:31:46 +02:00
|
|
|
Summary: Javadoc for %{name}
|
2024-05-03 11:10:21 +02:00
|
|
|
Group: Documentation/HTML
|
|
|
|
|
|
|
|
%description javadoc
|
2024-05-31 14:31:46 +02:00
|
|
|
This package contains the API documentation for %{name}.
|
2024-05-03 11:10:21 +02:00
|
|
|
|
|
|
|
%prep
|
2024-05-31 14:31:46 +02:00
|
|
|
%setup -q -n inject-%{version}
|
|
|
|
cp %{SOURCE1} build.xml
|
2024-05-03 11:10:21 +02:00
|
|
|
|
|
|
|
%build
|
2024-05-31 14:31:46 +02:00
|
|
|
%{ant} package javadoc
|
2024-05-03 11:10:21 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
# jars
|
|
|
|
install -dm 755 %{buildroot}%{_javadir}/javax.inject
|
2024-05-31 14:31:46 +02:00
|
|
|
install -m 0644 target/jakarta.inject-api-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
2024-05-03 11:10:21 +02:00
|
|
|
(cd %{buildroot}%{_javadir}/javax.inject && ln -s ../%{name}.jar .)
|
|
|
|
|
2024-05-31 14:31:46 +02:00
|
|
|
# pom
|
2024-05-03 11:10:21 +02:00
|
|
|
install -dm 755 %{buildroot}%{_mavenpomdir}
|
2024-05-31 14:31:46 +02:00
|
|
|
%{mvn_install_pom} pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom
|
|
|
|
%add_maven_depmap %{name}.pom %{name}.jar -a javax.inject:javax.inject
|
2024-05-03 11:10:21 +02:00
|
|
|
|
|
|
|
# javadoc
|
|
|
|
install -dm 755 %{buildroot}%{_javadocdir}/%{name}
|
2024-05-31 14:31:46 +02:00
|
|
|
cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/
|
|
|
|
%fdupes -s %{buildroot}%{_javadocdir}/%{name}
|
2024-05-03 11:10:21 +02:00
|
|
|
|
|
|
|
%files -f .mfiles
|
2024-05-31 14:31:46 +02:00
|
|
|
%license LICENSE.txt NOTICE.md
|
2024-05-03 11:10:21 +02:00
|
|
|
%{_javadir}/javax.inject
|
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
%{_javadocdir}/%{name}
|
|
|
|
|
|
|
|
%changelog
|