atinject/atinject.spec

103 lines
2.7 KiB
RPMSpec
Raw Normal View History

2010-09-30 07:33:33 +00:00
%global artifactId javax.inject
Name: atinject
Version: 1
Release: 3.20100611svn86%{?dist}
2010-09-30 07:33:33 +00:00
Summary: Dependency injection specification for Java (JSR-330)
Group: Development/Libraries
License: ASL 2.0
URL: http://code.google.com/p/atinject/
# latest release doesn't generate javadocs and there is no source
# tarball with pom.xml or ant build file
#
# svn export -r86 http://atinject.googlecode.com/svn/trunk atinject-1
# tar caf atinject-1.tar.xz atinject-1
Source0: %{name}-%{version}.tar.xz
BuildArch: noarch
BuildRequires: maven
2010-09-30 07:33:33 +00:00
BuildRequires: maven-install-plugin
BuildRequires: maven-jar-plugin
BuildRequires: maven-surefire-provider-junit4
BuildRequires: maven-surefire-plugin
BuildRequires: maven-javadoc-plugin
BuildRequires: maven-resources-plugin
BuildRequires: maven-release-plugin
BuildRequires: maven-compiler-plugin
Requires: jpackage-utils
Requires(post): jpackage-utils
Requires(postun): jpackage-utils
%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
Summary: API documentation for %{name}
Group: Documentation
Requires: jpackage-utils
%description javadoc
%{summary}.
%prep
%setup -q
rm -rf lib/
%build
mvn-rpmbuild install javadoc:aggregate
2010-09-30 07:33:33 +00:00
%install
install -d -m 755 %{buildroot}%{_javadir}
install -d -m 755 %{buildroot}%{_mavenpomdir}
%add_to_maven_depmap %{artifactId} %{artifactId} %{version} JPP %{name}
# poms
install -d -m 755 %{buildroot}%{_mavenpomdir}
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
2010-09-30 07:33:33 +00:00
# jar files
install -pm 644 target/%{artifactId}-*.jar %{buildroot}%{_javadir}/%{name}.jar
2010-09-30 07:33:33 +00:00
# javadoc
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
2010-09-30 07:33:33 +00:00
%post
%update_maven_depmap
%postun
%update_maven_depmap
%files
%{_mavenpomdir}/*
%{_mavendepmapfragdir}/*
%{_javadir}/*.jar
%files javadoc
%doc %{_javadocdir}/%{name}
2010-09-30 07:33:33 +00:00
%changelog
* Fri Jun 10 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1-3.20100611svn86
- Use maven3 to build
- Versionless jars & javadocs
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1-2.20100611svn86
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2010-09-30 07:33:33 +00:00
* Tue Sep 21 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1-1.20100611svn86
- Initial version of the package