Add OSGi metadata for hamcrest-library.

This commit is contained in:
Alexander Kurtakov 2012-07-31 13:35:20 +03:00
parent 9ad5119b70
commit 2702706b94
2 changed files with 26 additions and 8 deletions

View File

@ -0,0 +1,15 @@
Manifest-Version: 1.0
Bundle-Vendor: %providerName
Bundle-ActivationPolicy: lazy
Bundle-Localization: plugin
Bundle-RequiredExecutionEnvironment: J2SE-1.5
Bundle-Name: %pluginName
Bundle-SymbolicName: org.hamcrest.library
Require-Bundle: org.hamcrest.core;bundle-version="1.1.0"
Bundle-Version: 1.1.0.v20090501071000
Export-Package: org.hamcrest;version="1.1.0";library=split;mandatory:=
library,org.hamcrest.beans;version="1.1.0",org.hamcrest.collection;ve
rsion="1.1.0",org.hamcrest.number;version="1.1.0",org.hamcrest.object
;version="1.1.0",org.hamcrest.text;version="1.1.0",org.hamcrest.xml;v
ersion="1.1.0"
Bundle-ManifestVersion: 2

View File

@ -50,7 +50,7 @@
Name: hamcrest Name: hamcrest
Version: 1.1 Version: 1.1
Release: 13%{?dist} Release: 14%{?dist}
Epoch: 0 Epoch: 0
Summary: Library of matchers for building test expressions Summary: Library of matchers for building test expressions
License: BSD License: BSD
@ -65,6 +65,7 @@ Source5: http://repo1.maven.org/maven2/org/hamcrest/hamcrest-core/1.1/ham
Source6: http://repo1.maven.org/maven2/org/hamcrest/hamcrest-all/1.1/hamcrest-all-1.1.pom Source6: http://repo1.maven.org/maven2/org/hamcrest/hamcrest-all/1.1/hamcrest-all-1.1.pom
Source7: hamcrest-text-1.1.pom Source7: hamcrest-text-1.1.pom
Source8: hamcrest-core-MANIFEST.MF Source8: hamcrest-core-MANIFEST.MF
Source9: hamcrest-library-MANIFEST.MF
Patch0: hamcrest-1.1-build.patch Patch0: hamcrest-1.1-build.patch
Patch1: hamcrest-1.1-no-jarjar.patch Patch1: hamcrest-1.1-no-jarjar.patch
Patch2: hamcrest-1.1-no-integration.patch Patch2: hamcrest-1.1-no-integration.patch
@ -89,7 +90,6 @@ BuildRequires: jarjar
BuildRequires: jmock BuildRequires: jmock
%endif %endif
BuildRequires: junit BuildRequires: junit
BuildRequires: junit4
BuildRequires: qdox BuildRequires: qdox
%if %with tests %if %with tests
BuildRequires: testng BuildRequires: testng
@ -97,9 +97,6 @@ BuildRequires: testng
BuildArch: noarch BuildArch: noarch
Requires(post): jpackage-utils >= 0:1.7.4
Requires(postun): jpackage-utils >= 0:1.7.4
%description %description
Provides a library of matcher objects (also known as constraints or predicates) Provides a library of matcher objects (also known as constraints or predicates)
allowing 'match' rules to be defined declaratively, to be used in other allowing 'match' rules to be defined declaratively, to be used in other
@ -119,7 +116,6 @@ Group: Development/Libraries
Summary: Demos for %{name} Summary: Demos for %{name}
Requires: %{name} = %{epoch}:%{version}-%{release} Requires: %{name} = %{epoch}:%{version}-%{release}
Requires: junit Requires: junit
Requires: junit4
%if %with tests %if %with tests
Requires: testng Requires: testng
%endif %endif
@ -146,8 +142,6 @@ ln -sf $(build-classpath jmock) lib/integration/
%endif %endif
# BUILD/hamcrest-1.1/lib/integration/junit-3.8.1.jar.no # BUILD/hamcrest-1.1/lib/integration/junit-3.8.1.jar.no
ln -sf $(build-classpath junit) lib/integration/ ln -sf $(build-classpath junit) lib/integration/
# BUILD/hamcrest-1.1/lib/integration/junit-4.0.jar.no
ln -sf $(build-classpath junit4) lib/integration/
# BUILD/hamcrest-1.1/lib/integration/testng-4.6-jdk15.jar.no # BUILD/hamcrest-1.1/lib/integration/testng-4.6-jdk15.jar.no
%if %with tests %if %with tests
ln -sf $(build-classpath testng-jdk15) lib/integration/ ln -sf $(build-classpath testng-jdk15) lib/integration/
@ -177,6 +171,12 @@ cp -p %{SOURCE8} META-INF/MANIFEST.MF
touch META-INF/MANIFEST.MF touch META-INF/MANIFEST.MF
zip -u build/%{name}-core-%{version}.jar META-INF/MANIFEST.MF zip -u build/%{name}-core-%{version}.jar META-INF/MANIFEST.MF
rm -fr META-INF
mkdir -p META-INF
cp -p %{SOURCE9} META-INF/MANIFEST.MF
touch META-INF/MANIFEST.MF
zip -u build/%{name}-library-%{version}.jar META-INF/MANIFEST.MF
%install %install
# jars # jars
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}/%{name} install -d -m 755 $RPM_BUILD_ROOT%{_javadir}/%{name}
@ -249,6 +249,9 @@ cp -pr %{name}-examples $RPM_BUILD_ROOT%{_datadir}/%{name}/
%{_datadir}/%{name} %{_datadir}/%{name}
%changelog %changelog
* Tue Jul 31 2012 Alexander Kurtakov <akurtako@redhat.com> 0:1.1-14
- Add OSGi metadata for hamcrest-library.
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.1-13 * Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.1-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild