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