From a3ea1e73468d249715b078b67f9651caa575019c0f0ed813ab7529b2f25572f6 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Wed, 6 Mar 2019 14:46:12 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/plexus-interpolation?expand=0&rev=1 --- .gitattributes | 23 ++++ .gitignore | 1 + plexus-interpolation-1.22.tar.gz | 3 + plexus-interpolation-build.xml | 210 +++++++++++++++++++++++++++++++ plexus-interpolation.spec | 84 +++++++++++++ 5 files changed, 321 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 plexus-interpolation-1.22.tar.gz create mode 100644 plexus-interpolation-build.xml create mode 100644 plexus-interpolation.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/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/plexus-interpolation-1.22.tar.gz b/plexus-interpolation-1.22.tar.gz new file mode 100644 index 0000000..d2e53b1 --- /dev/null +++ b/plexus-interpolation-1.22.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:543c0c5b3f06bfd00d3e01d7a55ade5cda819e50deacb50adec87e352515fe27 +size 57285 diff --git a/plexus-interpolation-build.xml b/plexus-interpolation-build.xml new file mode 100644 index 0000000..a7d7d42 --- /dev/null +++ b/plexus-interpolation-build.xml @@ -0,0 +1,210 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + =================================== WARNING =================================== + JUnit is not present in the test classpath or your $ANT_HOME/lib directory. Tests not executed. + =============================================================================== + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/plexus-interpolation.spec b/plexus-interpolation.spec new file mode 100644 index 0000000..e9c4006 --- /dev/null +++ b/plexus-interpolation.spec @@ -0,0 +1,84 @@ +# +# spec file for package plexus-interpolation +# +# 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/ +# + + +%bcond_with tests +Name: plexus-interpolation +Version: 1.22 +Release: 0 +Summary: Plexus Interpolation API +License: Apache-2.0 AND Apache-1.1 AND MIT +Group: Development/Libraries/Java +URL: https://github.com/codehaus-plexus/plexus-interpolation +Source0: https://github.com/sonatype/%{name}/archive/%{name}-%{version}.tar.gz#/%{name}-%{version}.tar.gz +Source1: %{name}-build.xml +BuildRequires: ant +BuildRequires: fdupes +BuildRequires: javapackages-local +BuildArch: noarch +%if %{with tests} +BuildRequires: ant-junit +%endif + +%description +Plexus interpolator is the outgrowth of multiple iterations of development +focused on providing a more modular, flexible interpolation framework for +the expression language style commonly seen in Maven, Plexus, and other +related projects. + +%package javadoc +Summary: Javadoc for %{name} +Group: Documentation/HTML + +%description javadoc +API documentation for %{name}. + +%prep +%setup -q -n %{name}-%{name}-%{version} +cp %{SOURCE1} build.xml +%pom_remove_plugin :maven-release-plugin + +%pom_remove_parent + +%pom_xpath_inject "pom:project" "org.codehaus.plexus" + +%build +%ant \ +%if %{without tests} + -Dtest.skip=true \ +%endif + jar javadoc + +%install +# jar +install -dm 0755 %{buildroot}%{_javadir}/plexus +install -pm 0644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/plexus/interpolation.jar +# pom +install -dm 0755 %{buildroot}%{_mavenpomdir}/plexus +install -pm 0644 pom.xml %{buildroot}%{_mavenpomdir}/plexus/interpolation.pom +%add_maven_depmap plexus/interpolation.pom plexus/interpolation.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