From 80bd81adceb307bb011a0213d8a1f58455c033c082d35ef79fa30c9fc3996102 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Mon, 11 Feb 2019 08:39:05 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/osgi-core?expand=0&rev=1 --- .gitattributes | 23 +++++++ .gitignore | 1 + osgi-core-build.xml | 129 ++++++++++++++++++++++++++++++++++++ osgi-core.spec | 102 ++++++++++++++++++++++++++++ osgi.core-6.0.0-sources.jar | 3 + osgi.core-6.0.0.pom | 34 ++++++++++ 6 files changed, 292 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 osgi-core-build.xml create mode 100644 osgi-core.spec create mode 100644 osgi.core-6.0.0-sources.jar create mode 100644 osgi.core-6.0.0.pom 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-core-build.xml b/osgi-core-build.xml new file mode 100644 index 0000000..08be4b6 --- /dev/null +++ b/osgi-core-build.xml @@ -0,0 +1,129 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/osgi-core.spec b/osgi-core.spec new file mode 100644 index 0000000..2cb0846 --- /dev/null +++ b/osgi-core.spec @@ -0,0 +1,102 @@ +# +# spec file for package osgi-core +# +# 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-core +Version: 6.0.0 +Release: 0 +Summary: OSGi Core API +License: Apache-2.0 +Group: Development/Libraries/Java +URL: https://www.osgi.org +Source0: https://repo1.maven.org/maven2/org/osgi/osgi.core/%{version}/osgi.core-%{version}-sources.jar +Source1: https://repo1.maven.org/maven2/org/osgi/osgi.core/%{version}/osgi.core-%{version}.pom +Source2: %{name}-build.xml +BuildRequires: ant +BuildRequires: fdupes +BuildRequires: javapackages-local +BuildRequires: osgi-annotation +BuildRequires: unzip +BuildArch: noarch + +%description +OSGi Core Release 6, 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 +mkdir -p lib +build-jar-repository -s lib osgi-annotation + +cp -p %{SOURCE1} pom.xml +cp -p %{SOURCE2} build.xml +mkdir -p src/main/java +mv org src/main/java/ + +%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 + +%build +ant jar javadoc + +%install +# jar +install -dm 0755 %{buildroot}%{_javadir}/%{name} +install -pm 0644 target/osgi.core-%{version}.jar %{buildroot}%{_javadir}/%{name}/osgi.core.jar +# pom +install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name} +install -pm 0644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}/osgi.core.pom +%add_maven_depmap %{name}/osgi.core.pom %{name}/osgi.core.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.core-6.0.0-sources.jar b/osgi.core-6.0.0-sources.jar new file mode 100644 index 0000000..6a2bb40 --- /dev/null +++ b/osgi.core-6.0.0-sources.jar @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:894b665361a7ac82975161394f611c7d82a1ca0bf48e1d2185f790d1bfd5d9ed +size 293959 diff --git a/osgi.core-6.0.0.pom b/osgi.core-6.0.0.pom new file mode 100644 index 0000000..4e24ed5 --- /dev/null +++ b/osgi.core-6.0.0.pom @@ -0,0 +1,34 @@ + + + 4.0.0 + org.osgi + osgi.core + 6.0.0 + OSGi Core Release 6, Interfaces and Classes for use in compiling bundles. + org.osgi:osgi.core + http://www.osgi.org/ + + OSGi Alliance + http://www.osgi.org/ + + + + Apache License, Version 2.0 + http://opensource.org/licenses/apache2.0.php + repo + + + + https://www.osgi.org/members/git/build.git + scm:git:https://www.osgi.org/members/git/build.git + scm:git:https://www.osgi.org/members/git/build.git + + + + osgi + info@osgi.org + OSGi Alliance + OSGi Alliance + + +