atinject/atinject.spec

138 lines
4.4 KiB
RPMSpec
Raw Normal View History

2010-09-30 07:33:33 +00:00
Name: atinject
Version: 1
Release: 13.20100611svn86%{?dist}
2010-09-30 07:33:33 +00:00
Summary: Dependency injection specification for Java (JSR-330)
License: ASL 2.0
URL: http://code.google.com/p/atinject/
BuildArch: noarch
2010-09-30 07:33:33 +00:00
# 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
# rm -rf atinject-1/{lib,javadoc}/
2010-09-30 07:33:33 +00:00
# tar caf atinject-1.tar.xz atinject-1
Source0: %{name}-%{version}.tar.xz
2012-02-24 10:50:13 +00:00
Source1: MANIFEST.MF
Source2: http://www.apache.org/licenses/LICENSE-2.0.txt
2010-09-30 07:33:33 +00:00
BuildRequires: java-devel
BuildRequires: junit
Requires: java
2010-09-30 07:33:33 +00:00
Provides: javax.inject
2010-09-30 07:33:33 +00:00
%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}
%description javadoc
%{summary}.
%package tck
Summary: TCK for testing %{name} compatibility with JSR-330
Requires: %{name} = %{version}-%{release}
Requires: junit
%description tck
%{summary}.
2010-09-30 07:33:33 +00:00
%prep
%setup -q
cp %{SOURCE2} LICENSE
ln -s %{_javadir} lib
2010-09-30 07:33:33 +00:00
%build
set -e
alias rm=:
alias xargs=:
. ./build.sh
2012-02-24 10:50:13 +00:00
# Inject OSGi manifest required by Eclipse.
jar umf %{SOURCE1} build/dist/*.jar
2010-09-30 07:33:33 +00:00
%install
# Maven POMs
2010-09-30 07:33:33 +00:00
install -d -m 755 %{buildroot}%{_mavenpomdir}
install -p -m 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
install -p -m 644 tck-pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}-tck.pom
2010-09-30 07:33:33 +00:00
# JARs
install -d -m 755 %{buildroot}%{_javadir}
install -p -m 644 build/dist/*.jar %{buildroot}%{_javadir}/%{name}.jar
install -p -m 644 build/tck/dist/*.jar %{buildroot}%{_javadir}/%{name}-tck.jar
2010-09-30 07:33:33 +00:00
# XMvn metadata
%add_maven_depmap
%add_maven_depmap JPP-%{name}-tck.pom %{name}-tck.jar -f tck
2010-09-30 07:33:33 +00:00
# Javadocs
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}/tck
cp -pr build/javadoc/* %{buildroot}%{_javadocdir}/%{name}
cp -pr build/tck/javadoc/* %{buildroot}%{_javadocdir}/%{name}/tck
2010-09-30 07:33:33 +00:00
# J2EE API symlinks
install -d -m 755 %{buildroot}%{_javadir}/javax.inject/
ln -sf ../%{name}.jar %{buildroot}%{_javadir}/javax.inject/
2010-09-30 07:33:33 +00:00
%files -f .mfiles
%doc LICENSE
%{_javadir}/javax.inject
%files tck -f .mfiles-tck
2010-09-30 07:33:33 +00:00
%files javadoc
%doc LICENSE
%doc %{_javadocdir}/%{name}
2010-09-30 07:33:33 +00:00
%changelog
* Mon Aug 12 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1-13.20100611svn86
- Add javax.inject provides and directory
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1-12.20100611svn86
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
* Fri Jun 14 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1-11.20100611svn86
- Remove unneeded BRs
- Install missing LICENSE file
- Update to current packaging guidelines
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1-10.20100611svn86
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1-9.20100611svn86
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
- Replace maven BuildRequires with maven-local
2012-07-23 14:34:52 +00:00
* Mon Jul 23 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1-8.20100611svn86
- Add zip BR
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1-7.20100611svn86
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2012-02-24 10:50:13 +00:00
* Fri Feb 24 2012 Krzysztof Daniel <kdaniel@redhat.com> - 1-6.20100611svn86
- Added OSGi manifest.
* Mon Feb 13 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1-5.20100611svn86
- Add tck subpackage
- Use upstream build method
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1-4.20100611svn86
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* 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