Add OSGi manifest
Related: rhbz#1247265
This commit is contained in:
parent
ad4f92e659
commit
c449da3214
10
jakarta-regexp-attach-osgi-manifest.patch
Normal file
10
jakarta-regexp-attach-osgi-manifest.patch
Normal file
@ -0,0 +1,10 @@
|
||||
--- build.xml~ 2007-03-18 23:41:02.000000000 +0100
|
||||
+++ build.xml 2016-01-28 17:57:22.631161037 +0100
|
||||
@@ -102,6 +102,7 @@
|
||||
<!-- =================================================================== -->
|
||||
<target name="jar" depends="compile">
|
||||
<jar jarfile="${build.dir}/${final.name}.jar"
|
||||
+ manifest="MANIFEST.MF"
|
||||
basedir="${build.dest}"
|
||||
excludes="**/package.html">
|
||||
<metainf dir="." includes="LICENSE,NOTICE"/>
|
4
jakarta-regexp-osgi-manifest.MF
Normal file
4
jakarta-regexp-osgi-manifest.MF
Normal file
@ -0,0 +1,4 @@
|
||||
Bundle-ManifestVersion: 2
|
||||
Bundle-SymbolicName: org.apache.regexp
|
||||
Bundle-Version: 1.5.0
|
||||
Export-Package: org.apache.regexp;version="1.5.0"
|
@ -1,13 +1,15 @@
|
||||
Name: regexp
|
||||
Epoch: 1
|
||||
Version: 1.5
|
||||
Release: 20%{?dist}
|
||||
Release: 21%{?dist}
|
||||
Summary: Simple regular expressions API
|
||||
License: ASL 2.0
|
||||
URL: http://jakarta.apache.org/%{name}/
|
||||
BuildArch: noarch
|
||||
|
||||
Source0: http://archive.apache.org/dist/jakarta/%{name}/jakarta-%{name}-%{version}.tar.gz
|
||||
Source2: jakarta-%{name}-osgi-manifest.MF
|
||||
Patch0: jakarta-%{name}-attach-osgi-manifest.patch
|
||||
|
||||
BuildRequires: ant
|
||||
BuildRequires: javapackages-local
|
||||
@ -30,6 +32,8 @@ Javadoc for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n jakarta-%{name}-%{version}
|
||||
%patch0
|
||||
cp -p %{SOURCE2} MANIFEST.MF
|
||||
# remove all binary libs
|
||||
find . -name "*.jar" -exec rm -f {} \;
|
||||
|
||||
@ -65,6 +69,9 @@ dummy = posix.readlink(dir) and os.remove(dir)
|
||||
%{_javadocdir}/%{name}
|
||||
|
||||
%changelog
|
||||
* Thu Jan 28 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:1.5-21
|
||||
- Add OSGi manifest
|
||||
|
||||
* Tue Jul 14 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:1.5-20
|
||||
- Add build-requires on javapackages-local
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user