2010-09-30 07:33:33 +00:00
|
|
|
%global artifactId javax.inject
|
|
|
|
|
|
|
|
Name: atinject
|
|
|
|
Version: 1
|
2013-02-06 18:36:52 +00:00
|
|
|
Release: 9.20100611svn86%{?dist}
|
2010-09-30 07:33:33 +00:00
|
|
|
Summary: Dependency injection specification for Java (JSR-330)
|
|
|
|
|
|
|
|
Group: Development/Libraries
|
|
|
|
License: ASL 2.0
|
|
|
|
URL: http://code.google.com/p/atinject/
|
|
|
|
# latest release doesn't generate javadocs and there is no source
|
|
|
|
# tarball with pom.xml or ant build file
|
|
|
|
#
|
|
|
|
# svn export -r86 http://atinject.googlecode.com/svn/trunk atinject-1
|
|
|
|
# tar caf atinject-1.tar.xz atinject-1
|
|
|
|
Source0: %{name}-%{version}.tar.xz
|
2012-02-24 10:50:13 +00:00
|
|
|
Source1: MANIFEST.MF
|
2010-09-30 07:33:33 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2013-02-06 18:36:52 +00:00
|
|
|
BuildRequires: maven-local
|
2010-09-30 07:33:33 +00:00
|
|
|
BuildRequires: maven-install-plugin
|
|
|
|
BuildRequires: maven-jar-plugin
|
|
|
|
BuildRequires: maven-surefire-provider-junit4
|
|
|
|
BuildRequires: maven-surefire-plugin
|
|
|
|
BuildRequires: maven-javadoc-plugin
|
|
|
|
BuildRequires: maven-resources-plugin
|
|
|
|
BuildRequires: maven-release-plugin
|
|
|
|
BuildRequires: maven-compiler-plugin
|
2012-07-23 14:34:52 +00:00
|
|
|
BuildRequires: zip
|
2010-09-30 07:33:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
Requires: jpackage-utils
|
|
|
|
|
|
|
|
%description
|
|
|
|
This package specifies a means for obtaining objects in such a way as
|
|
|
|
to maximize reusability, testability and maintainability compared to
|
|
|
|
traditional approaches such as constructors, factories, and service
|
|
|
|
locators (e.g., JNDI). This process, known as dependency injection, is
|
|
|
|
beneficial to most nontrivial applications.
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: API documentation for %{name}
|
|
|
|
Group: Documentation
|
|
|
|
Requires: jpackage-utils
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
%{summary}.
|
|
|
|
|
2012-02-13 16:01:11 +00:00
|
|
|
%package tck
|
|
|
|
Summary: TCK for testing %{name} compatibility with JSR-330
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: jpackage-utils
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
Requires: junit
|
|
|
|
|
|
|
|
%description tck
|
|
|
|
%{summary}.
|
|
|
|
|
2010-09-30 07:33:33 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
2012-02-13 16:01:11 +00:00
|
|
|
rm -rf lib/* javadoc/
|
|
|
|
|
|
|
|
ln -sf `build-classpath junit` lib/junit.jar
|
2010-09-30 07:33:33 +00:00
|
|
|
|
|
|
|
%build
|
2012-02-13 16:01:11 +00:00
|
|
|
./build.sh
|
|
|
|
pushd build
|
|
|
|
for i in *.zip; do
|
|
|
|
unzip $i
|
|
|
|
done
|
2012-02-24 10:50:13 +00:00
|
|
|
|
|
|
|
#Add OSGi manifest for Eclipse
|
|
|
|
mkdir -p META-INF/
|
|
|
|
cp %{SOURCE1} META-INF/MANIFEST.MF
|
|
|
|
zip -u javax.inject.jar META-INF/MANIFEST.MF
|
|
|
|
|
2012-02-13 16:01:11 +00:00
|
|
|
popd
|
2010-09-30 07:33:33 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
install -d -m 755 %{buildroot}%{_javadir}
|
|
|
|
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
|
|
|
|
|
|
|
# poms
|
|
|
|
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
2011-06-10 08:45:46 +00:00
|
|
|
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
2012-02-13 16:01:11 +00:00
|
|
|
install -pm 644 tck-pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}-tck.pom
|
2010-09-30 07:33:33 +00:00
|
|
|
|
|
|
|
# jar files
|
2012-02-13 16:01:11 +00:00
|
|
|
install -pm 644 build/%{artifactId}.jar %{buildroot}%{_javadir}/%{name}.jar
|
|
|
|
install -pm 644 build/%{artifactId}-tck.jar %{buildroot}%{_javadir}/%{name}-tck.jar
|
2010-09-30 07:33:33 +00:00
|
|
|
|
2012-02-13 16:01:11 +00:00
|
|
|
%add_maven_depmap JPP-%{name}.pom %{name}.jar
|
|
|
|
%add_maven_depmap JPP-%{name}-tck.pom %{name}-tck.jar -f tck
|
2010-09-30 07:33:33 +00:00
|
|
|
|
|
|
|
# javadoc
|
2011-06-10 08:45:46 +00:00
|
|
|
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
|
2012-02-13 16:01:11 +00:00
|
|
|
cp -pr build/javadoc/* %{buildroot}%{_javadocdir}/%{name}
|
2010-09-30 07:33:33 +00:00
|
|
|
|
2012-02-13 16:01:11 +00:00
|
|
|
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}-tck
|
|
|
|
cp -pr build/tck/javadoc/* %{buildroot}%{_javadocdir}/%{name}-tck
|
2010-09-30 07:33:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
%files
|
2012-02-13 16:01:11 +00:00
|
|
|
%{_mavenpomdir}/JPP-%{name}.pom
|
|
|
|
%{_mavendepmapfragdir}/%{name}
|
|
|
|
%{_javadir}/%{name}.jar
|
|
|
|
|
|
|
|
%files tck
|
|
|
|
%{_mavendepmapfragdir}/%{name}-tck
|
|
|
|
%{_javadir}/%{name}-tck.jar
|
|
|
|
%{_mavenpomdir}/JPP-%{name}-tck.pom
|
2010-09-30 07:33:33 +00:00
|
|
|
|
|
|
|
%files javadoc
|
2011-06-10 08:45:46 +00:00
|
|
|
%doc %{_javadocdir}/%{name}
|
2012-02-13 16:01:11 +00:00
|
|
|
%doc %{_javadocdir}/%{name}-tck
|
2010-09-30 07:33:33 +00:00
|
|
|
|
|
|
|
%changelog
|
2013-02-06 18:36:52 +00:00
|
|
|
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1-9.20100611svn86
|
|
|
|
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
|
|
|
|
- Replace maven BuildRequires with maven-local
|
|
|
|
|
2012-07-23 14:34:52 +00:00
|
|
|
* Mon Jul 23 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1-8.20100611svn86
|
|
|
|
- Add zip BR
|
|
|
|
|
2012-07-18 17:03:38 +00:00
|
|
|
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1-7.20100611svn86
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-02-24 10:50:13 +00:00
|
|
|
* Fri Feb 24 2012 Krzysztof Daniel <kdaniel@redhat.com> - 1-6.20100611svn86
|
|
|
|
- Added OSGi manifest.
|
|
|
|
|
2012-02-13 16:01:11 +00:00
|
|
|
* Mon Feb 13 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1-5.20100611svn86
|
|
|
|
- Add tck subpackage
|
|
|
|
- Use upstream build method
|
|
|
|
|
2012-01-12 22:00:33 +00:00
|
|
|
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1-4.20100611svn86
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-06-10 08:45:46 +00:00
|
|
|
* Fri Jun 10 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1-3.20100611svn86
|
|
|
|
- Use maven3 to build
|
|
|
|
- Versionless jars & javadocs
|
|
|
|
|
2011-02-08 03:00:07 +00:00
|
|
|
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1-2.20100611svn86
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-09-30 07:33:33 +00:00
|
|
|
* Tue Sep 21 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1-1.20100611svn86
|
|
|
|
- Initial version of the package
|