Added OSGi Manifest for Eclipse.

This commit is contained in:
Krzysztof Daniel 2012-02-24 11:50:13 +01:00
parent 4a9aeae948
commit 7f4536cb66
2 changed files with 22 additions and 1 deletions

11
MANIFEST.MF Normal file
View File

@ -0,0 +1,11 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: %bundleName
Bundle-SymbolicName: javax.inject
Bundle-Version: 1.0.0.v20091030
Bundle-ClassPath: .
Bundle-Vendor: %bundleProvider
Bundle-Localization: plugin
Export-Package: javax.inject;version="1.0.0"
Bundle-RequiredExecutionEnvironment: J2SE-1.5

View File

@ -2,7 +2,7 @@
Name: atinject
Version: 1
Release: 5.20100611svn86%{?dist}
Release: 6.20100611svn86%{?dist}
Summary: Dependency injection specification for Java (JSR-330)
Group: Development/Libraries
@ -14,6 +14,7 @@ URL: http://code.google.com/p/atinject/
# svn export -r86 http://atinject.googlecode.com/svn/trunk atinject-1
# tar caf atinject-1.tar.xz atinject-1
Source0: %{name}-%{version}.tar.xz
Source1: MANIFEST.MF
BuildArch: noarch
BuildRequires: maven
@ -68,6 +69,12 @@ pushd build
for i in *.zip; do
unzip $i
done
#Add OSGi manifest for Eclipse
mkdir -p META-INF/
cp %{SOURCE1} META-INF/MANIFEST.MF
zip -u javax.inject.jar META-INF/MANIFEST.MF
popd
%install
@ -109,6 +116,9 @@ cp -pr build/tck/javadoc/* %{buildroot}%{_javadocdir}/%{name}-tck
%doc %{_javadocdir}/%{name}-tck
%changelog
* Fri Feb 24 2012 Krzysztof Daniel <kdaniel@redhat.com> - 1-6.20100611svn86
- Added OSGi manifest.
* Mon Feb 13 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1-5.20100611svn86
- Add tck subpackage
- Use upstream build method