diff --git a/.gitignore b/.gitignore index e69de29..70b56d8 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,4 @@ +/atinject-1.tar.xz +/LICENSE-2.0.txt +/noarch +/*.src.rpm diff --git a/MANIFEST-TCK.MF b/MANIFEST-TCK.MF new file mode 100644 index 0000000..1b41118 --- /dev/null +++ b/MANIFEST-TCK.MF @@ -0,0 +1,15 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: Tck +Bundle-SymbolicName: com.google.code.atinject.tck +Bundle-Version: 1.0.0 +Bundle-Vendor: GOOGLE +Bundle-RequiredExecutionEnvironment: J2SE-1.5 +Require-Bundle: org.junit;bundle-version="3.8.2" +Export-Package: org.atinject.tck, + org.atinject.tck.auto;x-internal:=true, + org.atinject.tck.auto.accessories;x-internal:=true +Import-Package: javax.inject;version="1.0.0" +JavaPackages-GroupId: javax.inject +JavaPackages-ArtifactId: javax.inject-tck +JavaPackages-Version: 1.1.SNAPSHOT diff --git a/MANIFEST.MF b/MANIFEST.MF new file mode 100644 index 0000000..a187cb1 --- /dev/null +++ b/MANIFEST.MF @@ -0,0 +1,14 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: Atinject Dependency Injection Annotations +Bundle-SymbolicName: javax.inject +Bundle-Version: 1.0.0.v20091030 +Bundle-ClassPath: . +Bundle-Vendor: Eclipse.org +Bundle-Localization: plugin +Export-Package: javax.inject;version="1.0.0" +Bundle-RequiredExecutionEnvironment: J2SE-1.5 +JavaPackages-GroupId: javax.inject +JavaPackages-ArtifactId: javax.inject +JavaPackages-Version: 1 + diff --git a/atinject.spec b/atinject.spec new file mode 100644 index 0000000..c2d229b --- /dev/null +++ b/atinject.spec @@ -0,0 +1,193 @@ +Name: atinject +Version: 1 +Release: 35.20100611svn86%{?dist} +Summary: Dependency injection specification for Java (JSR-330) +License: ASL 2.0 +URL: http://code.google.com/p/atinject/ +BuildArch: noarch + +# 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 +# rm -rf atinject-1/{lib,javadoc}/ +# tar caf atinject-1.tar.xz atinject-1 +Source0: %{name}-%{version}.tar.xz +# These manifests based on the ones shipped by eclipse.org +Source1: MANIFEST.MF +Source2: MANIFEST-TCK.MF +Source3: http://www.apache.org/licenses/LICENSE-2.0.txt + +BuildRequires: javapackages-local +BuildRequires: java-devel +BuildRequires: junit + +%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 tck +Summary: TCK for testing %{name} compatibility with JSR-330 +Requires: %{name} = %{version}-%{release} +Requires: junit + +%description tck +%{summary}. + +%{?javadoc_package} + +%prep +%setup -q +cp %{SOURCE3} LICENSE +mkdir lib +build-jar-repository -p lib junit + +# Fix dep in TCK pom +sed -i -e 's/pom\.groupId/project.groupId/' tck-pom.xml + +# J2EE API symlinks +%mvn_file :javax.inject atinject javax.inject/atinject + +# TCK sub-package +%mvn_file :javax.inject-tck atinject-tck +%mvn_package :javax.inject-tck tck + +%build +set -e +alias rm=: +alias xargs=: +alias javac="javac -source 1.8 -target 1.8" +alias javadoc="javadoc -source 1.8 -Xdoclint:none" +. ./build.sh + +# Inject OSGi manifests required by Eclipse. +jar umf %{SOURCE1} build/dist/javax.inject.jar +jar umf %{SOURCE2} build/tck/dist/javax.inject-tck.jar + +%mvn_artifact pom.xml build/dist/javax.inject.jar +%mvn_artifact tck-pom.xml build/tck/dist/javax.inject-tck.jar + +mv build/tck/javadoc build/javadoc/tck + +%install +%mvn_install -J build/javadoc + +%files -f .mfiles +%license LICENSE + +%files tck -f .mfiles-tck + +%changelog +* Mon Jul 27 2020 Fedora Release Engineering - 1-35.20100611svn86 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Fri Jul 10 2020 Jiri Vanek - 1-34.20100611svn86 +- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11 + +* Sat Jun 20 2020 Mat Booth - 1-33.20100611svn86 +- Allow building against Java 11 + +* Tue Jan 28 2020 Fedora Release Engineering - 1-32.20100611svn86 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Wed Jul 24 2019 Fedora Release Engineering - 1-31.20100611svn86 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Jan 31 2019 Fedora Release Engineering - 1-30.20100611svn86 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Thu Jul 12 2018 Fedora Release Engineering - 1-29.20100611svn86 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Apr 18 2018 Mikolaj Izdebski - 1-28.20100611svn86 +- Remove javax.inject Provides + +* Wed Feb 07 2018 Fedora Release Engineering - 1-27.20100611svn86 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Mon Jan 29 2018 Mikolaj Izdebski - 1-26.20100611svn86 +- Cleanup spec file + +* Wed Jul 26 2017 Fedora Release Engineering - 1-25.20100611svn86 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Thu Feb 23 2017 Mikolaj Izdebski - 1-24.20100611svn86 +- Use build-classpath to symlink junit JAR + +* Fri Feb 10 2017 Fedora Release Engineering - 1-23.20100611svn86 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Wed Feb 03 2016 Fedora Release Engineering - 1-22.20100611svn86 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Jun 17 2015 Fedora Release Engineering - 1-21.20100611svn86 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Wed May 13 2015 Mikolaj Izdebski - 1-20.20100611svn86 +- Disable javadoc doclint + +* Thu Mar 12 2015 Mikolaj Izdebski - 1-19.20100611svn86 +- Add javapackages Maven coordinates to manifests + +* Wed Feb 18 2015 Mat Booth - 1-18.20100611svn86 +- Add OSGi manifest to tck jar +- Install with mvn_install + +* Mon Jun 09 2014 Michal Srb - 1-17.20100611svn86 +- Apply the "source/target 1.5" patch + +* Mon Jun 9 2014 Mikolaj Izdebski - 1-16.20100611svn86 +- Compile with source/target 1.5 + +* Sat Jun 07 2014 Fedora Release Engineering - 1-15.20100611svn86 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Tue Mar 04 2014 Stanislav Ochotnicky - 1-14.20100611svn86 +- Use Requires: java-headless rebuild (#1067528) + +* Mon Aug 12 2013 Stanislav Ochotnicky - 1-13.20100611svn86 +- Add javax.inject provides and directory + +* Sat Aug 03 2013 Fedora Release Engineering - 1-12.20100611svn86 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Fri Jun 14 2013 Mikolaj Izdebski - 1-11.20100611svn86 +- Remove unneeded BRs +- Install missing LICENSE file +- Update to current packaging guidelines + +* Wed Feb 13 2013 Fedora Release Engineering - 1-10.20100611svn86 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Wed Feb 06 2013 Java SIG - 1-9.20100611svn86 +- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild +- Replace maven BuildRequires with maven-local + +* Mon Jul 23 2012 Stanislav Ochotnicky - 1-8.20100611svn86 +- Add zip BR + +* Wed Jul 18 2012 Fedora Release Engineering - 1-7.20100611svn86 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Fri Feb 24 2012 Krzysztof Daniel - 1-6.20100611svn86 +- Added OSGi manifest. + +* Mon Feb 13 2012 Stanislav Ochotnicky - 1-5.20100611svn86 +- Add tck subpackage +- Use upstream build method + +* Thu Jan 12 2012 Fedora Release Engineering - 1-4.20100611svn86 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Fri Jun 10 2011 Stanislav Ochotnicky - 1-3.20100611svn86 +- Use maven3 to build +- Versionless jars & javadocs + +* Mon Feb 07 2011 Fedora Release Engineering - 1-2.20100611svn86 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Tue Sep 21 2010 Stanislav Ochotnicky - 1-1.20100611svn86 +- Initial version of the package diff --git a/sources b/sources new file mode 100644 index 0000000..a62285a --- /dev/null +++ b/sources @@ -0,0 +1,2 @@ +5ed77767af2fa4ba8ef66c3e966bd2b2 atinject-1.tar.xz +3b83ef96387f14655fc854ddc3c6bd57 LICENSE-2.0.txt