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