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