From 39fde03aaae7c39943122fe4cd8e41adb33ce175 Mon Sep 17 00:00:00 2001 From: Andrew Overholt Date: Thu, 31 Jul 2008 16:04:46 +0000 Subject: [PATCH] - Add OSGi manifest information --- jdom-1.0-OSGiManifest.patch | 20 ++++++++++++++++++++ jdom.spec | 7 ++++++- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 jdom-1.0-OSGiManifest.patch diff --git a/jdom-1.0-OSGiManifest.patch b/jdom-1.0-OSGiManifest.patch new file mode 100644 index 0000000..afcd720 --- /dev/null +++ b/jdom-1.0-OSGiManifest.patch @@ -0,0 +1,20 @@ +diff -up ./package/META-INF/MANIFEST.MF.osgimanifest ./package/META-INF/MANIFEST.MF +--- ./package/META-INF/MANIFEST.MF.osgimanifest 2008-07-21 16:00:59.000000000 -0400 ++++ ./package/META-INF/MANIFEST.MF 2008-07-21 16:02:20.000000000 -0400 +@@ -1,4 +1,16 @@ + Manifest-Version: 1.0 ++Bundle-RequiredExecutionEnvironment: J2SE-1.4 ++Bundle-SymbolicName: org.jdom ++Bundle-ManifestVersion: 2 ++Bundle-Name: %Bundle-Name.0 ++Bundle-Localization: plugin ++Bundle-Version: 1.0.0.v200806100616 ++Bundle-Vendor: %Bundle-Vendor.0 ++Export-Package: org.jdom;version="1.0.0",org.jdom.adapters;version="1. ++ 0.0",org.jdom.filter;version="1.0.0",org.jdom.input;version="1.0.0",o ++ rg.jdom.output;version="1.0.0",org.jdom.transform;version="1.0.0",org ++ .jdom.xpath;version="1.0.0" ++Require-Bundle: org.apache.xerces;resolution:=optional + + Name: org/jdom/ + Specification-Title: JDOM Classes diff --git a/jdom.spec b/jdom.spec index 6e63fda..bbca2a1 100644 --- a/jdom.spec +++ b/jdom.spec @@ -36,7 +36,7 @@ Name: jdom Version: 1.0 -Release: 5.4%{?dist} +Release: 5.5%{?dist} Epoch: 0 Summary: Java alternative to DOM and SAX License: BSD @@ -45,6 +45,7 @@ Group: Development/Libraries/Java #http://www.jdom.org/dist/source/jdom-1.0.tar.gz Source0: jdom-1.0-RHCLEAN.tar.bz2 Patch0: %{name}-crosslink.patch +Patch1: %{name}-%{version}-OSGiManifest.patch Requires: xalan-j2 >= 0:2.2.0 BuildRequires: ant >= 0:1.6 BuildRequires: xalan-j2 >= 0:2.2.0 @@ -91,6 +92,7 @@ Demonstrations and samples for %{name}. %prep %setup -q -n %{name}-%{version} %patch0 -p0 +%patch1 -p0 # remove all binary libs find . -name "*.jar" -exec rm -f {} \; find . -name "*.class" -exec rm -f {} \; @@ -173,6 +175,9 @@ fi %changelog +* Mon Jul 21 2008 Andrew Overholt 1.0-5.5 +- Add OSGi manifest information + * Wed Jul 9 2008 Tom "spot" Callaway - 0:1.0-5.4 - drop repotag