a30da3
Name:           atinject
a30da3
Version:        1
a30da3
Release:        28.20100611svn86%{?dist}
a30da3
Summary:        Dependency injection specification for Java (JSR-330)
a30da3
License:        ASL 2.0
a30da3
URL:            http://code.google.com/p/atinject/
a30da3
BuildArch:      noarch
a30da3
a30da3
# latest release doesn't generate javadocs and there is no source
a30da3
# tarball with pom.xml or ant build file
a30da3
#
a30da3
# svn export -r86 http://atinject.googlecode.com/svn/trunk atinject-1
a30da3
# rm -rf atinject-1/{lib,javadoc}/
a30da3
# tar caf atinject-1.tar.xz atinject-1
a30da3
Source0:        %{name}-%{version}.tar.xz
a30da3
# These manifests based on the ones shipped by eclipse.org
a30da3
Source1:        MANIFEST.MF
a30da3
Source2:        MANIFEST-TCK.MF
a30da3
Source3:        http://www.apache.org/licenses/LICENSE-2.0.txt
a30da3
a30da3
# Compile with source/target 1.5
a30da3
Patch0:         %{name}-target-1.5.patch
a30da3
a30da3
BuildRequires:  javapackages-local
a30da3
BuildRequires:  java-devel
a30da3
BuildRequires:  junit
a30da3
a30da3
%description
a30da3
This package specifies a means for obtaining objects in such a way as
a30da3
to maximize reusability, testability and maintainability compared to
a30da3
traditional approaches such as constructors, factories, and service
a30da3
locators (e.g., JNDI). This process, known as dependency injection, is
a30da3
beneficial to most nontrivial applications.
a30da3
a30da3
%package        tck
a30da3
Summary:        TCK for testing %{name} compatibility with JSR-330
a30da3
Requires:       %{name} = %{version}-%{release}
a30da3
Requires:       junit
a30da3
a30da3
%description    tck
a30da3
%{summary}.
a30da3
a30da3
%{?javadoc_package}
a30da3
a30da3
%prep
a30da3
%setup -q
a30da3
cp %{SOURCE3} LICENSE
a30da3
mkdir lib
a30da3
build-jar-repository -p lib junit
a30da3
a30da3
%patch0 -p1
a30da3
a30da3
# Fix dep in TCK pom
a30da3
sed -i -e 's/pom\.groupId/project.groupId/' tck-pom.xml
a30da3
a30da3
# J2EE API symlinks
a30da3
%mvn_file :javax.inject atinject javax.inject/atinject
a30da3
a30da3
# TCK sub-package
a30da3
%mvn_file :javax.inject-tck atinject-tck
a30da3
%mvn_package :javax.inject-tck tck
a30da3
a30da3
%build
a30da3
set -e
a30da3
alias rm=:
a30da3
alias xargs=:
a30da3
alias javadoc='javadoc -Xdoclint:none'
a30da3
. ./build.sh
a30da3
a30da3
# Inject OSGi manifests required by Eclipse.
a30da3
jar umf %{SOURCE1} build/dist/javax.inject.jar
a30da3
jar umf %{SOURCE2} build/tck/dist/javax.inject-tck.jar
a30da3
a30da3
%mvn_artifact pom.xml build/dist/javax.inject.jar
a30da3
%mvn_artifact tck-pom.xml build/tck/dist/javax.inject-tck.jar
a30da3
a30da3
mv build/tck/javadoc build/javadoc/tck
a30da3
a30da3
%install
a30da3
%mvn_install -J build/javadoc
a30da3
a30da3
%files -f .mfiles
a30da3
%license LICENSE
a30da3
a30da3
%files tck -f .mfiles-tck
a30da3
a30da3
%changelog
a30da3
* Wed Apr 18 2018 Mikolaj Izdebski <mizdebsk@redhat.com> - 1-28.20100611svn86
a30da3
- Remove javax.inject Provides
a30da3
a30da3
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1-27.20100611svn86
a30da3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
a30da3
a30da3
* Mon Jan 29 2018 Mikolaj Izdebski <mizdebsk@redhat.com> - 1-26.20100611svn86
a30da3
- Cleanup spec file
a30da3
a30da3
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1-25.20100611svn86
a30da3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
a30da3
a30da3
* Thu Feb 23 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 1-24.20100611svn86
a30da3
- Use build-classpath to symlink junit JAR
a30da3
a30da3
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1-23.20100611svn86
a30da3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
a30da3
a30da3
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1-22.20100611svn86
a30da3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
a30da3
a30da3
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1-21.20100611svn86
a30da3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
a30da3
a30da3
* Wed May 13 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 1-20.20100611svn86
a30da3
- Disable javadoc doclint
a30da3
a30da3
* Thu Mar 12 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 1-19.20100611svn86
a30da3
- Add javapackages Maven coordinates to manifests
a30da3
a30da3
* Wed Feb 18 2015 Mat Booth <mat.booth@redhat.com> - 1-18.20100611svn86
a30da3
- Add OSGi manifest to tck jar
a30da3
- Install with mvn_install
a30da3
a30da3
* Mon Jun 09 2014 Michal Srb <msrb@redhat.com> - 1-17.20100611svn86
a30da3
- Apply the "source/target 1.5" patch
a30da3
a30da3
* Mon Jun  9 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1-16.20100611svn86
a30da3
- Compile with source/target 1.5
a30da3
a30da3
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1-15.20100611svn86
a30da3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
a30da3
a30da3
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1-14.20100611svn86
a30da3
- Use Requires: java-headless rebuild (#1067528)
a30da3
a30da3
* Mon Aug 12 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1-13.20100611svn86
a30da3
- Add javax.inject provides and directory
a30da3
a30da3
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1-12.20100611svn86
a30da3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
a30da3
a30da3
* Fri Jun 14 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1-11.20100611svn86
a30da3
- Remove unneeded BRs
a30da3
- Install missing LICENSE file
a30da3
- Update to current packaging guidelines
a30da3
a30da3
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1-10.20100611svn86
a30da3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
a30da3
a30da3
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1-9.20100611svn86
a30da3
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
a30da3
- Replace maven BuildRequires with maven-local
a30da3
a30da3
* Mon Jul 23 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1-8.20100611svn86
a30da3
- Add zip BR
a30da3
a30da3
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1-7.20100611svn86
a30da3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
a30da3
a30da3
* Fri Feb 24 2012 Krzysztof Daniel <kdaniel@redhat.com> - 1-6.20100611svn86
a30da3
- Added OSGi manifest.
a30da3
a30da3
* Mon Feb 13 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1-5.20100611svn86
a30da3
- Add tck subpackage
a30da3
- Use upstream build method
a30da3
a30da3
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1-4.20100611svn86
a30da3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
a30da3
a30da3
* Fri Jun 10 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1-3.20100611svn86
a30da3
- Use maven3 to build
a30da3
- Versionless jars & javadocs
a30da3
a30da3
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1-2.20100611svn86
a30da3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
a30da3
a30da3
* Tue Sep 21 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1-1.20100611svn86
a30da3
- Initial version of the package