Stanislav Ochotnicky cd9238
Name:           atinject
Stanislav Ochotnicky cd9238
Version:        1
Mikolaj Izdebski a7edf5
Release:        16.20100611svn86%{?dist}
Stanislav Ochotnicky cd9238
Summary:        Dependency injection specification for Java (JSR-330)
Stanislav Ochotnicky cd9238
License:        ASL 2.0
Stanislav Ochotnicky cd9238
URL:            http://code.google.com/p/atinject/
Mikolaj Izdebski d61fff
BuildArch:      noarch
Mikolaj Izdebski a7edf5
Stanislav Ochotnicky cd9238
# latest release doesn't generate javadocs and there is no source
Stanislav Ochotnicky cd9238
# tarball with pom.xml or ant build file
Stanislav Ochotnicky cd9238
#
Stanislav Ochotnicky cd9238
# svn export -r86 http://atinject.googlecode.com/svn/trunk atinject-1
Mikolaj Izdebski d61fff
# rm -rf atinject-1/{lib,javadoc}/
Stanislav Ochotnicky cd9238
# tar caf atinject-1.tar.xz atinject-1
Stanislav Ochotnicky cd9238
Source0:        %{name}-%{version}.tar.xz
Krzysztof Daniel 7f4536
Source1:        MANIFEST.MF
Mikolaj Izdebski d61fff
Source2:        http://www.apache.org/licenses/LICENSE-2.0.txt
Stanislav Ochotnicky cd9238
Mikolaj Izdebski a7edf5
# Compile with source/target 1.5
Mikolaj Izdebski a7edf5
Patch0:         %{name}-target-1.5.patch
Mikolaj Izdebski a7edf5
Mikolaj Izdebski d61fff
BuildRequires:  java-devel
Mikolaj Izdebski d61fff
BuildRequires:  junit
Stanislav Ochotnicky 7f3937
Requires:       java-headless
Stanislav Ochotnicky cd9238
Stanislav Ochotnicky 9a2f99
Provides:       javax.inject
Stanislav Ochotnicky 9a2f99
Stanislav Ochotnicky cd9238
%description
Stanislav Ochotnicky cd9238
This package specifies a means for obtaining objects in such a way as
Stanislav Ochotnicky cd9238
to maximize reusability, testability and maintainability compared to
Stanislav Ochotnicky cd9238
traditional approaches such as constructors, factories, and service
Stanislav Ochotnicky cd9238
locators (e.g., JNDI). This process, known as dependency injection, is
Stanislav Ochotnicky cd9238
beneficial to most nontrivial applications.
Stanislav Ochotnicky cd9238
Stanislav Ochotnicky cd9238
%package        javadoc
Stanislav Ochotnicky cd9238
Summary:        API documentation for %{name}
Stanislav Ochotnicky cd9238
Stanislav Ochotnicky cd9238
%description    javadoc
Stanislav Ochotnicky cd9238
%{summary}.
Stanislav Ochotnicky cd9238
Stanislav Ochotnicky 4a9aea
%package        tck
Stanislav Ochotnicky 4a9aea
Summary:        TCK for testing %{name} compatibility with JSR-330
Stanislav Ochotnicky 4a9aea
Requires:       %{name} = %{version}-%{release}
Stanislav Ochotnicky 4a9aea
Requires:       junit
Stanislav Ochotnicky 4a9aea
Stanislav Ochotnicky 4a9aea
%description    tck
Stanislav Ochotnicky 4a9aea
%{summary}.
Stanislav Ochotnicky 4a9aea
Stanislav Ochotnicky cd9238
%prep
Stanislav Ochotnicky cd9238
%setup -q
Mikolaj Izdebski d61fff
cp %{SOURCE2} LICENSE
Mikolaj Izdebski d61fff
ln -s %{_javadir} lib
Stanislav Ochotnicky cd9238
Stanislav Ochotnicky cd9238
%build
Mikolaj Izdebski d61fff
set -e
Mikolaj Izdebski d61fff
alias rm=:
Mikolaj Izdebski d61fff
alias xargs=:
Mikolaj Izdebski d61fff
. ./build.sh
Krzysztof Daniel 7f4536
Mikolaj Izdebski d61fff
# Inject OSGi manifest required by Eclipse.
Mikolaj Izdebski d61fff
jar umf %{SOURCE1} build/dist/*.jar
Stanislav Ochotnicky cd9238
Stanislav Ochotnicky cd9238
%install
Mikolaj Izdebski d61fff
# Maven POMs
Stanislav Ochotnicky cd9238
install -d -m 755 %{buildroot}%{_mavenpomdir}
Mikolaj Izdebski d61fff
install -p -m 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
Mikolaj Izdebski d61fff
install -p -m 644 tck-pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}-tck.pom
Stanislav Ochotnicky cd9238
Mikolaj Izdebski d61fff
# JARs
Mikolaj Izdebski d61fff
install -d -m 755 %{buildroot}%{_javadir}
Mikolaj Izdebski d61fff
install -p -m 644 build/dist/*.jar %{buildroot}%{_javadir}/%{name}.jar
Mikolaj Izdebski d61fff
install -p -m 644 build/tck/dist/*.jar %{buildroot}%{_javadir}/%{name}-tck.jar
Stanislav Ochotnicky cd9238
Mikolaj Izdebski d61fff
# XMvn metadata
Mikolaj Izdebski d61fff
%add_maven_depmap
Stanislav Ochotnicky 4a9aea
%add_maven_depmap JPP-%{name}-tck.pom %{name}-tck.jar -f tck
Stanislav Ochotnicky cd9238
Mikolaj Izdebski d61fff
# Javadocs
Mikolaj Izdebski d61fff
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}/tck
Stanislav Ochotnicky 4a9aea
cp -pr build/javadoc/* %{buildroot}%{_javadocdir}/%{name}
Mikolaj Izdebski d61fff
cp -pr build/tck/javadoc/* %{buildroot}%{_javadocdir}/%{name}/tck
Stanislav Ochotnicky cd9238
Stanislav Ochotnicky 9a2f99
# J2EE API symlinks
Stanislav Ochotnicky 9a2f99
install -d -m 755 %{buildroot}%{_javadir}/javax.inject/
Stanislav Ochotnicky 9a2f99
ln -sf ../%{name}.jar %{buildroot}%{_javadir}/javax.inject/
Stanislav Ochotnicky cd9238
Mikolaj Izdebski d61fff
%files -f .mfiles
Mikolaj Izdebski d61fff
%doc LICENSE
Stanislav Ochotnicky 9a2f99
%{_javadir}/javax.inject
Stanislav Ochotnicky 4a9aea
Mikolaj Izdebski d61fff
%files tck -f .mfiles-tck
Stanislav Ochotnicky cd9238
Stanislav Ochotnicky cd9238
%files javadoc
Mikolaj Izdebski d61fff
%doc LICENSE
Stanislav Ochotnicky b4a97b
%doc %{_javadocdir}/%{name}
Stanislav Ochotnicky cd9238
Stanislav Ochotnicky cd9238
%changelog
Mikolaj Izdebski a7edf5
* Mon Jun  9 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1-16.20100611svn86
Mikolaj Izdebski a7edf5
- Compile with source/target 1.5
Mikolaj Izdebski a7edf5
Dennis Gilmore 2a7916
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1-15.20100611svn86
Dennis Gilmore 2a7916
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
Dennis Gilmore 2a7916
Stanislav Ochotnicky 7f3937
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1-14.20100611svn86
Stanislav Ochotnicky 7f3937
- Use Requires: java-headless rebuild (#1067528)
Stanislav Ochotnicky 7f3937
Stanislav Ochotnicky 9a2f99
* Mon Aug 12 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1-13.20100611svn86
Stanislav Ochotnicky 9a2f99
- Add javax.inject provides and directory
Stanislav Ochotnicky 9a2f99
Dennis Gilmore 3ec645
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1-12.20100611svn86
Dennis Gilmore 3ec645
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
Dennis Gilmore 3ec645
Mikolaj Izdebski d61fff
* Fri Jun 14 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1-11.20100611svn86
Mikolaj Izdebski d61fff
- Remove unneeded BRs
Mikolaj Izdebski d61fff
- Install missing LICENSE file
Mikolaj Izdebski d61fff
- Update to current packaging guidelines
Mikolaj Izdebski d61fff
Dennis Gilmore e99d98
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1-10.20100611svn86
Dennis Gilmore e99d98
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
Dennis Gilmore e99d98
Stanislav Ochotnicky a629f4
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1-9.20100611svn86
Stanislav Ochotnicky a629f4
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
Stanislav Ochotnicky a629f4
- Replace maven BuildRequires with maven-local
Stanislav Ochotnicky a629f4
Stanislav Ochotnicky e8e1c1
* Mon Jul 23 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1-8.20100611svn86
Stanislav Ochotnicky e8e1c1
- Add zip BR
Stanislav Ochotnicky e8e1c1
Dennis Gilmore 7c775d
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1-7.20100611svn86
Dennis Gilmore 7c775d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
Dennis Gilmore 7c775d
Krzysztof Daniel 7f4536
* Fri Feb 24 2012 Krzysztof Daniel <kdaniel@redhat.com> - 1-6.20100611svn86
Krzysztof Daniel 7f4536
- Added OSGi manifest.
Krzysztof Daniel 7f4536
Stanislav Ochotnicky 4a9aea
* Mon Feb 13 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1-5.20100611svn86
Stanislav Ochotnicky 4a9aea
- Add tck subpackage
Stanislav Ochotnicky 4a9aea
- Use upstream build method
Stanislav Ochotnicky 4a9aea
Dennis Gilmore cf950b
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1-4.20100611svn86
Dennis Gilmore cf950b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
Dennis Gilmore cf950b
Stanislav Ochotnicky b4a97b
* Fri Jun 10 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1-3.20100611svn86
Stanislav Ochotnicky b4a97b
- Use maven3 to build
Stanislav Ochotnicky b4a97b
- Versionless jars & javadocs
Stanislav Ochotnicky b4a97b
Dennis Gilmore b06842
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1-2.20100611svn86
Dennis Gilmore b06842
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
Dennis Gilmore b06842
Stanislav Ochotnicky cd9238
* Tue Sep 21 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1-1.20100611svn86
Stanislav Ochotnicky cd9238
- Initial version of the package