Cleanup spec file

This commit is contained in:
Mikolaj Izdebski 2018-01-29 08:49:16 +01:00
parent d2a9217b07
commit b151fc15d0

View File

@ -1,6 +1,6 @@
Name: atinject Name: atinject
Version: 1 Version: 1
Release: 25.20100611svn86%{?dist} Release: 26.20100611svn86%{?dist}
Summary: Dependency injection specification for Java (JSR-330) Summary: Dependency injection specification for Java (JSR-330)
License: ASL 2.0 License: ASL 2.0
URL: http://code.google.com/p/atinject/ URL: http://code.google.com/p/atinject/
@ -13,11 +13,9 @@ BuildArch: noarch
# rm -rf atinject-1/{lib,javadoc}/ # rm -rf atinject-1/{lib,javadoc}/
# tar caf atinject-1.tar.xz atinject-1 # tar caf atinject-1.tar.xz atinject-1
Source0: %{name}-%{version}.tar.xz Source0: %{name}-%{version}.tar.xz
# These manifests based on the ones shipped by eclipse.org # These manifests based on the ones shipped by eclipse.org
Source1: MANIFEST.MF Source1: MANIFEST.MF
Source2: MANIFEST-TCK.MF Source2: MANIFEST-TCK.MF
Source3: http://www.apache.org/licenses/LICENSE-2.0.txt Source3: http://www.apache.org/licenses/LICENSE-2.0.txt
# Compile with source/target 1.5 # Compile with source/target 1.5
@ -36,12 +34,6 @@ traditional approaches such as constructors, factories, and service
locators (e.g., JNDI). This process, known as dependency injection, is locators (e.g., JNDI). This process, known as dependency injection, is
beneficial to most nontrivial applications. beneficial to most nontrivial applications.
%package javadoc
Summary: API documentation for %{name}
%description javadoc
%{summary}.
%package tck %package tck
Summary: TCK for testing %{name} compatibility with JSR-330 Summary: TCK for testing %{name} compatibility with JSR-330
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
@ -50,6 +42,8 @@ Requires: junit
%description tck %description tck
%{summary}. %{summary}.
%{?javadoc_package}
%prep %prep
%setup -q %setup -q
cp %{SOURCE3} LICENSE cp %{SOURCE3} LICENSE
@ -82,26 +76,20 @@ jar umf %{SOURCE2} build/tck/dist/javax.inject-tck.jar
%mvn_artifact pom.xml build/dist/javax.inject.jar %mvn_artifact pom.xml build/dist/javax.inject.jar
%mvn_artifact tck-pom.xml build/tck/dist/javax.inject-tck.jar %mvn_artifact tck-pom.xml build/tck/dist/javax.inject-tck.jar
%install mv build/tck/javadoc build/javadoc/tck
%mvn_install
# Javadocs %install
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}/tck %mvn_install -J build/javadoc
cp -pr build/javadoc/* %{buildroot}%{_javadocdir}/%{name}
cp -pr build/tck/javadoc/* %{buildroot}%{_javadocdir}/%{name}/tck
%files -f .mfiles %files -f .mfiles
%doc LICENSE %license LICENSE
%dir %{_javadir}/javax.inject
%dir %{_mavenpomdir}/javax.inject
%files tck -f .mfiles-tck %files tck -f .mfiles-tck
%files javadoc
%doc LICENSE
%{_javadocdir}/atinject
%changelog %changelog
* Mon Jan 29 2018 Mikolaj Izdebski <mizdebsk@redhat.com> - 1-26.20100611svn86
- Cleanup spec file
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1-25.20100611svn86 * Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1-25.20100611svn86
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild