commit 1a2350ab55e1e5f50790bc339cf595a5891c4518b6549ca609e193922a8c1862 Author: Fridrich Strba Date: Mon Feb 11 07:59:28 2019 +0000 OBS-URL: https://build.opensuse.org/package/show/Java:packages/osgi-annotation?expand=0&rev=1 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-annotation-build.xml b/osgi-annotation-build.xml new file mode 100644 index 0000000..7afd7e2 --- /dev/null +++ b/osgi-annotation-build.xml @@ -0,0 +1,118 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/osgi-annotation.spec b/osgi-annotation.spec new file mode 100644 index 0000000..501177a --- /dev/null +++ b/osgi-annotation.spec @@ -0,0 +1,78 @@ +# +# spec file for package osgi-annotation +# +# 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-annotation +Version: 6.0.0 +Release: 0 +Summary: Annotations for use in compiling OSGi bundles +License: Apache-2.0 +Group: Development/Libraries/Java +URL: http://www.osgi.org/ +# Upstream project is behind an account registration system with no anonymous +# read access, so we download the source from maven central instead +Source0: http://repo1.maven.org/maven2/org/osgi/osgi.annotation/%{version}/osgi.annotation-%{version}-sources.jar +Source1: http://repo1.maven.org/maven2/org/osgi/osgi.annotation/%{version}/osgi.annotation-%{version}.pom +Source2: %{name}-build.xml +BuildRequires: ant +BuildRequires: fdupes +BuildRequires: javapackages-local +BuildRequires: unzip +BuildArch: noarch + +%description +Annotations for use in compiling OSGi bundles. This package is not normally +needed at run-time. + +%package javadoc +Summary: API documentation for %{name} + +%description javadoc +This package contains the API documentation for %{name}. + +%prep +%setup -q -c + +mkdir -p src/main/resources && mv about.html src/main/resources +mkdir -p src/main/java && mv org src/main/java +cp -p %{SOURCE1} pom.xml +cp -p %{SOURCE2} build.xml + +%build +ant jar javadoc + +%install +# jar +install -dm 0755 %{buildroot}%{_javadir}/%{name} +install -pm 0644 target/osgi.annotation-%{version}.jar %{buildroot}%{_javadir}/%{name}/osgi.annotation.jar +# pom +install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name} +install -pm 0644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}/osgi.annotation.pom +%add_maven_depmap %{name}/osgi.annotation.pom %{name}/osgi.annotation.jar -a org.osgi:org.osgi.annotation +# javadoc +install -dm 0744 %{buildroot}%{_javadocdir}/%{name} +cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/ +%fdupes -s %{buildroot}%{_javadocdir} + +%files -f .mfiles +%license LICENSE + +%files javadoc +%license LICENSE +%{_javadocdir}/%{name} + +%changelog diff --git a/osgi.annotation-6.0.0-sources.jar b/osgi.annotation-6.0.0-sources.jar new file mode 100644 index 0000000..7022cfe --- /dev/null +++ b/osgi.annotation-6.0.0-sources.jar @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f0490148ecfb840bec25df0b8b01392bd7022fbc67a176b6c1ce8fdb28468804 +size 9887 diff --git a/osgi.annotation-6.0.0.pom b/osgi.annotation-6.0.0.pom new file mode 100644 index 0000000..0c4f3e4 --- /dev/null +++ b/osgi.annotation-6.0.0.pom @@ -0,0 +1,34 @@ + + + 4.0.0 + org.osgi + osgi.annotation + 6.0.0 + OSGi Annotation Release 6, Annotations for use in compiling bundles. + org.osgi:osgi.annotation + 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 + + +