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