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