From 0212d9f8a6bd2ceeb3e8914203d5f94d978faebf34856374f0d4424371d3cf0c Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Wed, 6 Mar 2019 17:11:41 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/plexus-component-api?expand=0&rev=1 --- .gitattributes | 23 ++++++ plexus-component-api-1.0-alpha-15.tar.xz | 3 + plexus-component-api-build.xml | 23 ++++++ plexus-component-api.changes | 6 ++ plexus-component-api.spec | 97 ++++++++++++++++++++++++ 5 files changed, 152 insertions(+) create mode 100644 .gitattributes create mode 100644 plexus-component-api-1.0-alpha-15.tar.xz create mode 100644 plexus-component-api-build.xml create mode 100644 plexus-component-api.changes create mode 100644 plexus-component-api.spec 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/plexus-component-api-1.0-alpha-15.tar.xz b/plexus-component-api-1.0-alpha-15.tar.xz new file mode 100644 index 0000000..099ded6 --- /dev/null +++ b/plexus-component-api-1.0-alpha-15.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6877b483719444e2f38392e844624541c6f95e31e50b5107b2dd833246ecc801 +size 8584 diff --git a/plexus-component-api-build.xml b/plexus-component-api-build.xml new file mode 100644 index 0000000..3205eec --- /dev/null +++ b/plexus-component-api-build.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + + + + + + + + + + diff --git a/plexus-component-api.changes b/plexus-component-api.changes new file mode 100644 index 0000000..dc00ba9 --- /dev/null +++ b/plexus-component-api.changes @@ -0,0 +1,6 @@ +------------------------------------------------------------------- +Wed Mar 6 17:10:12 UTC 2019 - Fridrich Strba + +- Initial packaging of plexus-component-api 1.0-alpha-15 +- Generate and customize ant build.xml file to be able to build + without maven diff --git a/plexus-component-api.spec b/plexus-component-api.spec new file mode 100644 index 0000000..0b0fca6 --- /dev/null +++ b/plexus-component-api.spec @@ -0,0 +1,97 @@ +# +# spec file for package plexus-component-api +# +# 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/ +# + + +# spec file for package plexus-component-api +# +# 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/ +# +%define base_ver 1.0 +%define alpha_ver 15 +%define project_version %{base_ver}-alpha-%{alpha_ver} +Name: plexus-component-api +Version: %{base_ver}~alpha%{alpha_ver} +Release: 0 +Summary: Plexus Component API +License: Apache-2.0 +Group: Development/Libraries/Java +URL: http://svn.codehaus.org/plexus/plexus-containers/tags/plexus-containers-%{project_version}/%{name}/ +#svn export http://svn.codehaus.org/plexus/plexus-containers/tags/plexus-containers-%{project_version}/%{name}/ %{name}-%{project_version} +#tar cJf %{name}-%{project_version}.tar.xz %{name}-%{project_version}/ +Source0: %{name}-%{project_version}.tar.gz +Source1: %{name}-build.xml +BuildRequires: ant +BuildRequires: fdupes +BuildRequires: java-devel >= 1.6 +BuildRequires: javapackages-local +BuildRequires: plexus-classworlds +Requires: mvn(org.codehaus.plexus:plexus-classworlds) +BuildArch: noarch +$# + +%description +Plexus Component API + +%package javadoc +Summary: Javadoc for %{name} +Group: Documentation/HTML + +%description javadoc +API documentation for %{name}. + +%prep +%setup -q -n %{name}-%{project_version} +cp %{SOURCE1} build.xml + +%pom_remove_parent + +%pom_xpath_inject "pom:project" "org.codehaus.plexus" + +%build +mkdir -p lib +build-jar-repository -s lib plexus/classworlds +%{ant} jar javadoc + +%install +# jar +install -dm 0755 %{buildroot}%{_javadir}/%{name} +install -pm 0644 target/%{name}-%{project_version}.jar %{buildroot}%{_javadir}/%{name}/%{name}.jar +# pom +install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name} +install -pm 0644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{name}.pom +%add_maven_depmap %{name}/%{name}.pom %{name}/%{name}.jar +# javadoc +install -dm 0755 %{buildroot}%{_javadocdir}/%{name} +cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/ +%fdupes -s %{buildroot}%{_javadocdir} + +%files -f .mfiles + +%files javadoc +%{_javadocdir}/%{name} + +%changelog