- Add OSGi metadata to Manifest.

This commit is contained in:
Jeff Johnston 2009-06-26 18:29:26 +00:00
parent 5c0765a80d
commit 9f6ee6026a
3 changed files with 51 additions and 1 deletions

13
MANIFEST.MF Normal file
View File

@ -0,0 +1,13 @@
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Jakarta Oro
Bundle-SymbolicName: org.apache.oro
Bundle-Version: 2.0.8
Bundle-Vendor: Apache Software Foundation
Bundle-Localization: plugin
Export-Package: org.apache.oro.io;version="2.0.8", org.apache.oro.text
;version="2.0.8", org.apache.oro.text.awk;version="2.0.8", org.apache
.oro.text.perl;version="2.0.8", org.apache.oro.text.regex;version="2.
0.8", org.apache.oro.util;version="2.0.8"
Bundle-RequiredExecutionEnvironment: J2SE-1.2

View File

@ -0,0 +1,29 @@
diff -up ./build.xml.fix ./build.xml
--- ./build.xml.fix 2009-06-23 13:51:46.000000000 -0400
+++ ./build.xml 2009-06-23 13:52:21.000000000 -0400
@@ -126,23 +126,8 @@ Run ant -projecthelp for complete list o
<jar jarfile="${top.dir}/${final.name}.jar"
basedir="${build.dest}"
includes="org/**,META-INF/**"
- excludes="**/package.html,**/overview.html">
- <manifest>
- <section name="org/apache/oro">
- <attribute name="Specification-Title"
- value="Jakarta ORO" />
- <attribute name="Specification-Version"
- value="${version}" />
- <attribute name="Specification-Vendor"
- value="Apache Software Foundation" />
- <attribute name="Implementation-Title"
- value="org.apache.oro" />
- <attribute name="Implementation-Version"
- value="${version} ${DATE}" />
- <attribute name="Implementation-Vendor"
- value="Apache Software Foundation" />
- </section>
- </manifest>
+ excludes="**/package.html,**/overview.html"
+ manifest="MANIFEST.MF">
</jar>
</target>

View File

@ -38,12 +38,14 @@
Name: jakarta-oro
Version: 2.0.8
Release: 5.2%{?dist}
Release: 5.3%{?dist}
Epoch: 0
Summary: Full regular expressions API
License: ASL 1.1
Group: Development/Java
Source0: %{name}-%{version}.tar.gz
Source1: MANIFEST.MF
Patch1: %{name}-build-xml.patch
URL: http://jakarta.apache.org/oro
BuildRequires: jpackage-utils > 1.6
BuildRequires: ant
@ -94,6 +96,9 @@ find . -name "*.jar" -exec rm -f {} \;
for dir in `find . -type d -name CVS`; do rm -rf $dir; done
for file in `find . -type f -name .cvsignore`; do rm -rf $file; done
%patch1
cp %{SOURCE1} .
%build
ant -Dfinal.name=%{base_name} jar javadocs
@ -158,6 +163,9 @@ fi
%ghost %doc %{_javadocdir}/%{name}
%changelog
* Tue Jun 23 2009 Jeff Johnston <jjohnstn@redhat.com> - 0:2.0.8-5.3
- Add OSGi metadata to Manifest.
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.0.8-5.2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild