2010-09-30 07:33:33 +00:00
|
|
|
Name: atinject
|
|
|
|
Version: 1
|
2015-03-12 19:37:32 +00:00
|
|
|
Release: 19.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/
|
2013-06-14 15:36:25 +00:00
|
|
|
BuildArch: noarch
|
2014-06-09 06:24:09 +00:00
|
|
|
|
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
|
2013-06-14 15:36:25 +00:00
|
|
|
# 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
|
2015-02-18 18:05:31 +00:00
|
|
|
|
|
|
|
# These manifests based on the ones shipped by eclipse.org
|
2012-02-24 10:50:13 +00:00
|
|
|
Source1: MANIFEST.MF
|
2015-02-18 18:05:31 +00:00
|
|
|
Source2: MANIFEST-TCK.MF
|
|
|
|
|
|
|
|
Source3: http://www.apache.org/licenses/LICENSE-2.0.txt
|
2010-09-30 07:33:33 +00:00
|
|
|
|
2014-06-09 06:24:09 +00:00
|
|
|
# Compile with source/target 1.5
|
|
|
|
Patch0: %{name}-target-1.5.patch
|
|
|
|
|
2015-02-18 18:05:31 +00:00
|
|
|
BuildRequires: javapackages-local
|
2015-02-18 18:14:22 +00:00
|
|
|
BuildRequires: java-devel
|
2013-06-14 15:36:25 +00:00
|
|
|
BuildRequires: junit
|
2010-09-30 07:33:33 +00:00
|
|
|
|
2013-08-12 13:20:06 +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}.
|
|
|
|
|
2012-02-13 16:01:11 +00:00
|
|
|
%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
|
2015-02-18 18:05:31 +00:00
|
|
|
cp %{SOURCE3} LICENSE
|
2013-06-14 15:36:25 +00:00
|
|
|
ln -s %{_javadir} lib
|
2010-09-30 07:33:33 +00:00
|
|
|
|
2014-06-09 11:19:25 +00:00
|
|
|
%patch0 -p1
|
|
|
|
|
2015-02-18 18:05:31 +00:00
|
|
|
# Fix dep in TCK pom
|
|
|
|
sed -i -e 's/pom\.groupId/project.groupId/' tck-pom.xml
|
|
|
|
|
|
|
|
# J2EE API symlinks
|
|
|
|
%mvn_file :javax.inject atinject javax.inject/atinject
|
|
|
|
|
|
|
|
# TCK sub-package
|
|
|
|
%mvn_file :javax.inject-tck atinject-tck
|
|
|
|
%mvn_package :javax.inject-tck tck
|
|
|
|
|
2010-09-30 07:33:33 +00:00
|
|
|
%build
|
2013-06-14 15:36:25 +00:00
|
|
|
set -e
|
|
|
|
alias rm=:
|
|
|
|
alias xargs=:
|
|
|
|
. ./build.sh
|
2012-02-24 10:50:13 +00:00
|
|
|
|
2015-02-18 18:05:31 +00:00
|
|
|
# Inject OSGi manifests required by Eclipse.
|
|
|
|
jar umf %{SOURCE1} build/dist/javax.inject.jar
|
|
|
|
jar umf %{SOURCE2} build/tck/dist/javax.inject-tck.jar
|
2010-09-30 07:33:33 +00:00
|
|
|
|
2015-02-18 18:05:31 +00:00
|
|
|
%mvn_artifact pom.xml build/dist/javax.inject.jar
|
|
|
|
%mvn_artifact tck-pom.xml build/tck/dist/javax.inject-tck.jar
|
2010-09-30 07:33:33 +00:00
|
|
|
|
2015-02-18 18:05:31 +00:00
|
|
|
%install
|
|
|
|
%mvn_install
|
2010-09-30 07:33:33 +00:00
|
|
|
|
2013-06-14 15:36:25 +00:00
|
|
|
# Javadocs
|
|
|
|
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}/tck
|
2012-02-13 16:01:11 +00:00
|
|
|
cp -pr build/javadoc/* %{buildroot}%{_javadocdir}/%{name}
|
2013-06-14 15:36:25 +00:00
|
|
|
cp -pr build/tck/javadoc/* %{buildroot}%{_javadocdir}/%{name}/tck
|
2010-09-30 07:33:33 +00:00
|
|
|
|
2013-06-14 15:36:25 +00:00
|
|
|
%files -f .mfiles
|
|
|
|
%doc LICENSE
|
2015-02-18 18:05:31 +00:00
|
|
|
%dir %{_javadir}/javax.inject
|
|
|
|
%dir %{_mavenpomdir}/javax.inject
|
2012-02-13 16:01:11 +00:00
|
|
|
|
2013-06-14 15:36:25 +00:00
|
|
|
%files tck -f .mfiles-tck
|
2010-09-30 07:33:33 +00:00
|
|
|
|
|
|
|
%files javadoc
|
2013-06-14 15:36:25 +00:00
|
|
|
%doc LICENSE
|
2015-02-18 18:05:31 +00:00
|
|
|
%{_javadocdir}/atinject
|
2010-09-30 07:33:33 +00:00
|
|
|
|
|
|
|
%changelog
|
2015-03-12 19:37:32 +00:00
|
|
|
* Thu Mar 12 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 1-19.20100611svn86
|
|
|
|
- Add javapackages Maven coordinates to manifests
|
|
|
|
|
2015-02-18 18:05:31 +00:00
|
|
|
* Wed Feb 18 2015 Mat Booth <mat.booth@redhat.com> - 1-18.20100611svn86
|
|
|
|
- Add OSGi manifest to tck jar
|
|
|
|
- Install with mvn_install
|
|
|
|
|
2014-06-09 11:19:25 +00:00
|
|
|
* Mon Jun 09 2014 Michal Srb <msrb@redhat.com> - 1-17.20100611svn86
|
|
|
|
- Apply the "source/target 1.5" patch
|
|
|
|
|
2014-06-09 06:24:09 +00:00
|
|
|
* Mon Jun 9 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1-16.20100611svn86
|
|
|
|
- Compile with source/target 1.5
|
|
|
|
|
2014-06-07 01:57:32 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1-15.20100611svn86
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-03-04 08:05:09 +00:00
|
|
|
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1-14.20100611svn86
|
|
|
|
- Use Requires: java-headless rebuild (#1067528)
|
|
|
|
|
2013-08-12 13:20:06 +00:00
|
|
|
* Mon Aug 12 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1-13.20100611svn86
|
|
|
|
- Add javax.inject provides and directory
|
|
|
|
|
2013-08-03 02:27:50 +00:00
|
|
|
* 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
|
|
|
|
|
2013-06-14 15:36:25 +00:00
|
|
|
* Fri Jun 14 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1-11.20100611svn86
|
|
|
|
- Remove unneeded BRs
|
|
|
|
- Install missing LICENSE file
|
|
|
|
- Update to current packaging guidelines
|
|
|
|
|
2013-02-13 17:19:40 +00:00
|
|
|
* 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
|
|
|
|
|
2013-02-06 18:36:52 +00:00
|
|
|
* 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
|
|
|
|
|
2012-07-18 17:03:38 +00:00
|
|
|
* 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.
|
|
|
|
|
2012-02-13 16:01:11 +00:00
|
|
|
* Mon Feb 13 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1-5.20100611svn86
|
|
|
|
- Add tck subpackage
|
|
|
|
- Use upstream build method
|
|
|
|
|
2012-01-12 22:00:33 +00:00
|
|
|
* 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
|
|
|
|
|
2011-06-10 08:45:46 +00:00
|
|
|
* Fri Jun 10 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1-3.20100611svn86
|
|
|
|
- Use maven3 to build
|
|
|
|
- Versionless jars & javadocs
|
|
|
|
|
2011-02-08 03:00:07 +00:00
|
|
|
* 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
|