From 48d1723656b836899b0d59c21e189933aa04b08736dfd450a1ebe30f7be40931 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Tue, 26 Mar 2019 12:37:22 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/maven-file-management?expand=0&rev=1 --- .gitattributes | 23 ++ .gitignore | 1 + file-management-3.0.0-source-release.zip | 3 + maven-file-management-build.xml | 281 +++++++++++++++++++++++ maven-file-management.changes | 5 + maven-file-management.spec | 88 +++++++ 6 files changed, 401 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 file-management-3.0.0-source-release.zip create mode 100644 maven-file-management-build.xml create mode 100644 maven-file-management.changes create mode 100644 maven-file-management.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/file-management-3.0.0-source-release.zip b/file-management-3.0.0-source-release.zip new file mode 100644 index 0000000..8668da4 --- /dev/null +++ b/file-management-3.0.0-source-release.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:aaa1026f9aa46ba2941a1271f7e79f070ea0d3aae528d437cf5d1d53b5f93a72 +size 55722 diff --git a/maven-file-management-build.xml b/maven-file-management-build.xml new file mode 100644 index 0000000..fb877c6 --- /dev/null +++ b/maven-file-management-build.xml @@ -0,0 +1,281 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + =================================== WARNING =================================== + JUnit is not present in the test classpath or your $ANT_HOME/lib directory. Tests not executed. + =============================================================================== + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/maven-file-management.changes b/maven-file-management.changes new file mode 100644 index 0000000..a92c352 --- /dev/null +++ b/maven-file-management.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Tue Mar 26 12:36:05 UTC 2019 - Fridrich Strba + +- Initial packaging of maven-file-management 3.0.0 +- Generate and customize ant build.xml file diff --git a/maven-file-management.spec b/maven-file-management.spec new file mode 100644 index 0000000..fdea814 --- /dev/null +++ b/maven-file-management.spec @@ -0,0 +1,88 @@ +# +# spec file for package maven-file-management +# +# 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: maven-file-management +Version: 3.0.0 +Release: 0 +Summary: Maven File Management API +License: Apache-2.0 +Group: Development/Libraries/Java +URL: http://maven.apache.org/shared/file-management +Source0: http://repo1.maven.org/maven2/org/apache/maven/shared/file-management/%{version}/file-management-%{version}-source-release.zip +Source1: %{name}-build.xml +BuildRequires: ant +BuildRequires: fdupes +BuildRequires: javapackages-local +BuildRequires: maven-lib +BuildRequires: maven-shared-io +BuildRequires: maven-shared-utils +BuildRequires: modello +BuildRequires: plexus-containers-container-default +BuildRequires: plexus-utils +BuildRequires: unzip +BuildRequires: xmvn-install +BuildRequires: xmvn-resolve +BuildRequires: mvn(org.apache.maven.shared:maven-shared-components:pom:) +BuildArch: noarch +%if %{with tests} +BuildRequires: ant-junit +%endif + +%description +Provides a component for plugins to easily resolve project dependencies. + +%package javadoc +Summary: Javadoc for %{name} +Group: Documentation/HTML + +%description javadoc +API documentation for %{name}. + +%prep +%setup -q -n file-management-%{version} +cp %{SOURCE1} build.xml + +%build +mkdir -p lib +build-jar-repository -s lib \ + maven/maven-plugin-api \ + maven-shared-io/maven-shared-io \ + maven-shared-utils/maven-shared-utils \ + plexus-containers/plexus-container-default \ + plexus/utils + +%{ant} \ +%if %{without tests} + -Dtest.skip=true \ +%endif + jar javadoc + +%{mvn_artifact} pom.xml target/file-management-%{version}.jar + +%install +%mvn_install +%fdupes -s %{buildroot}%{_javadocdir} + +%files -f .mfiles +%license LICENSE NOTICE + +%files javadoc -f .mfiles-javadoc +%license LICENSE NOTICE + +%changelog