From f87ab11dad93ff58686b9fc37dc0b60abed4e7b75cfe4458884bafe8c19726c8 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Fri, 1 Feb 2019 09:43:41 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/apiguardian?expand=0&rev=1 --- .gitattributes | 23 ++++++++ .gitignore | 1 + apiguardian-api-1.0.0.pom | 29 ++++++++++ apiguardian-build.xml | 116 ++++++++++++++++++++++++++++++++++++++ apiguardian.changes | 5 ++ apiguardian.spec | 77 +++++++++++++++++++++++++ r1.0.0.tar.gz | 3 + 7 files changed, 254 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 apiguardian-api-1.0.0.pom create mode 100644 apiguardian-build.xml create mode 100644 apiguardian.changes create mode 100644 apiguardian.spec create mode 100644 r1.0.0.tar.gz 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/apiguardian-api-1.0.0.pom b/apiguardian-api-1.0.0.pom new file mode 100644 index 0000000..218ea27 --- /dev/null +++ b/apiguardian-api-1.0.0.pom @@ -0,0 +1,29 @@ + + + 4.0.0 + org.apiguardian + apiguardian-api + 1.0.0 + org.apiguardian:apiguardian-api + @API Guardian + https://github.com/apiguardian-team/apiguardian + + + The Apache License, Version 2.0 + http://www.apache.org/licenses/LICENSE-2.0.txt + + + + + apiguardian + @API Guardian Team + team@apiguardian.org + + + + scm:git:git://github.com/apiguardian-team/apiguardian.git + scm:git:git://github.com/apiguardian-team/apiguardian.git + https://github.com/apiguardian-team/apiguardian + + diff --git a/apiguardian-build.xml b/apiguardian-build.xml new file mode 100644 index 0000000..0e65703 --- /dev/null +++ b/apiguardian-build.xml @@ -0,0 +1,116 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/apiguardian.changes b/apiguardian.changes new file mode 100644 index 0000000..9832051 --- /dev/null +++ b/apiguardian.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Fri Feb 1 09:41:56 UTC 2019 - Fridrich Strba + +- Initial package of apiguardian 1.0.0 +- Add apiguardian-build.xml file to be able to build with ant diff --git a/apiguardian.spec b/apiguardian.spec new file mode 100644 index 0000000..22739a3 --- /dev/null +++ b/apiguardian.spec @@ -0,0 +1,77 @@ +# +# spec file for package apiguardian +# +# 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: apiguardian +Version: 1.0.0 +Release: 0 +Summary: API Guardian Java annotation +License: Apache-2.0 +Group: Development/Libraries/Java +URL: https://github.com/apiguardian-team/apiguardian +Source0: https://github.com/apiguardian-team/apiguardian/archive/r%{version}.tar.gz +Source1: %{name}-build.xml +Source100: https://repo1.maven.org/maven2/org/apiguardian/apiguardian-api/%{version}/apiguardian-api-%{version}.pom +BuildRequires: ant +BuildRequires: fdupes +BuildRequires: java-devel >= 1.6 +BuildRequires: javapackages-local +BuildArch: noarch + +%description +API Guardian indicates the status of an API element and therefore its +level of stability as well. It is used to annotate public types, +methods, constructors, and fields within a framework or application in +order to publish their API status and level of stability and to +indicate how they are intended to be used by consumers of the API. + +%package javadoc +Summary: Javadoc for %{name} +Group: Documentation/HTML + +%description javadoc +API documentation for %{name}. + +%prep +%setup -q -n %{name}-r%{version} +find -name \*.jar -delete +cp -p %{SOURCE1} . + +%build +%{ant} -f %{name}-build.xml jar javadoc + +%install +# jar +install -dm 0755 %{buildroot}%{_javadir}/%{name} +install -pm 0644 target/apiguardian-api-%{version}.jar %{buildroot}%{_javadir}/%{name}/apiguardian-api.jar +# pom +install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name} +install -pm 0644 %{SOURCE100} %{buildroot}%{_mavenpomdir}/%{name}/apiguardian-api.pom +%add_maven_depmap %{name}/apiguardian-api.pom %{name}/apiguardian-api.jar +# javadoc +install -dm 0755 %{buildroot}%{_javadocdir} +install -pdm 0755 target/site/apidocs %{buildroot}%{_javadocdir}/%{name} +%fdupes -s %{buildroot}%{_javadocdir} + +%files -f .mfiles +%license LICENSE + +%files javadoc +%{_javadocdir}/%{name} +%license LICENSE + +%changelog diff --git a/r1.0.0.tar.gz b/r1.0.0.tar.gz new file mode 100644 index 0000000..d8327f4 --- /dev/null +++ b/r1.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f89bff4471bd353bd19462df08190e49f87444f899554981af25812694292bd4 +size 61405