From 4202adcfdf6f5b85208ab5f050ab6f96ab8adeb34b06a08870de99e19ae58c09 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Mon, 11 Feb 2019 09:58:24 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/osgi-compendium?expand=0&rev=1 --- .gitattributes | 23 +++++++ .gitignore | 1 + osgi-compendium-build.xml | 135 ++++++++++++++++++++++++++++++++++++++ osgi-compendium.spec | 116 ++++++++++++++++++++++++++++++++ osgi.cmpn-6.0.0.jar | 3 + 5 files changed, 278 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 osgi-compendium-build.xml create mode 100644 osgi-compendium.spec create mode 100644 osgi.cmpn-6.0.0.jar diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/osgi-compendium-build.xml b/osgi-compendium-build.xml new file mode 100644 index 0000000..3af3073 --- /dev/null +++ b/osgi-compendium-build.xml @@ -0,0 +1,135 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/osgi-compendium.spec b/osgi-compendium.spec new file mode 100644 index 0000000..be7f191 --- /dev/null +++ b/osgi-compendium.spec @@ -0,0 +1,116 @@ +# +# spec file for package osgi-compendium +# +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: osgi-compendium +Version: 6.0.0 +Release: 0 +Summary: Interfaces and Classes for use in compiling OSGi bundles +License: Apache-2.0 +Group: Development/Libraries/Java +URL: http://www.osgi.org +Source0: https://osgi.org/download/r6/osgi.cmpn-%{version}.jar +Source1: %{name}-build.xml +BuildRequires: ant +BuildRequires: fdupes +BuildRequires: geronimo-jpa-3_0-api +BuildRequires: glassfish-servlet-api +BuildRequires: javapackages-local +BuildRequires: osgi-annotation +BuildRequires: osgi-core +BuildRequires: unzip +BuildArch: noarch + +%description +OSGi Compendium, Interfaces and Classes for use in compiling bundles. + +%package javadoc +Summary: API documentation for %{name} + +%description javadoc +This package provides %{summary}. + +%prep +%setup -q -c +cp %{SOURCE1} build.xml + +rm -r org +find -name '*.class' -delete + +mkdir -p src/main/{java,resources} +mv OSGI-OPT/src/org src/main/java/ +mv xmlns src/main/resources + +# J2ME stuff +rm -r src/main/java/org/osgi/service/io + +mv META-INF/maven/org.osgi/osgi.cmpn/pom.xml . + +%pom_xpath_inject pom:project ' +bundle + + UTF-8 + + + + + org.apache.felix + maven-bundle-plugin + true + + + ${project.artifactId} + ${project.artifactId} + + + + +' + +%pom_add_dep org.osgi:osgi.annotation::provided +%pom_add_dep org.osgi:osgi.core::provided +%pom_add_dep javax.servlet:javax.servlet-api::provided +%pom_add_dep javax.persistence:persistence-api::provided + +mkdir -p lib +build-jar-repository -s lib jpa_api glassfish-servlet-api osgi-annotation osgi-core + +%build +ant jar javadoc + +%install +# jar +install -dm 0755 %{buildroot}%{_javadir}/%{name} +install -pm 0644 target/osgi.cmpn-%{version}.jar %{buildroot}%{_javadir}/%{name}/osgi.cmpn.jar +# pom +install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name} +install -pm 0644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}/osgi.cmpn.pom +%add_maven_depmap %{name}/osgi.cmpn.pom %{name}/osgi.cmpn.jar +# javadoc +install -dm 0755 %{buildroot}%{_javadocdir}/%{name} +cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/ +%fdupes -s %{buildroot}%{_javadocdir} + +%files -f .mfiles +%license LICENSE +%doc about.html + +%files javadoc +%license LICENSE +%{_javadocdir}/%{name} + +%changelog diff --git a/osgi.cmpn-6.0.0.jar b/osgi.cmpn-6.0.0.jar new file mode 100644 index 0000000..77cea15 --- /dev/null +++ b/osgi.cmpn-6.0.0.jar @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:dbe06105a0e3e46bc88425b3d7c682a2d8b6bd055341913b6c37e998c00c9176 +size 958829