[os-maven-plugin] Initial pagkaging

Mikolaj Izdebski mizdebsk at fedoraproject.org
Wed Jul 9 07:02:55 UTC 2014


commit ff291994ca843cb2bf1091da1d9e0a1a84d8a376
Author: Mikolaj Izdebski <mizdebsk at redhat.com>
Date:   Wed Jul 9 09:00:04 2014 +0200

    Initial pagkaging

 .gitignore           |    1 +
 os-maven-plugin.spec |   57 ++++++++++++++++++++++++++++++++++++++++++++++++++
 sources              |    1 +
 3 files changed, 59 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..972280e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/os-maven-plugin-1.2.3.Final.tar.gz
diff --git a/os-maven-plugin.spec b/os-maven-plugin.spec
new file mode 100644
index 0000000..b90ceb0
--- /dev/null
+++ b/os-maven-plugin.spec
@@ -0,0 +1,57 @@
+%global vertag Final
+
+Name:           os-maven-plugin
+Version:        1.2.3
+Release:        1%{?dist}
+Summary:        Maven plugin for generating platform-dependent properties
+License:        ASL 2.0
+URL:            https://github.com/trustin/os-maven-plugin/
+BuildArch:      noarch
+
+Source0:        https://github.com/trustin/%{name}/archive/%{name}-%{version}.Final.tar.gz
+
+BuildRequires:  maven-local
+BuildRequires:  maven-shared
+BuildRequires:  plexus-containers-component-metadata
+
+%description
+os-maven-plugin is a Maven extension/plugin that generates various
+useful platform-dependent project properties normalized from
+${os.name} and ${os.arch}.
+
+${os.name} and ${os.arch} are often subtly different between JVM and
+operating system versions or they sometimes contain machine-unfriendly
+characters such as whitespaces. This plugin tries to remove such
+fragmentation so that you can determine the current operating system
+and architecture reliably.
+
+%package javadoc
+Summary:        API documentation for %{name}
+    
+%description javadoc
+This package provides %{summary}.
+
+%prep
+%setup -q -n %{name}-%{name}-%{version}.%{vertag}
+
+# Remove Eclipse plugin (not needed in Fedora)
+%pom_remove_dep org.eclipse:ui
+find -name EclipseStartup.java -delete
+find -name plugin.xml -delete
+
+%build
+%mvn_build
+
+%install
+%mvn_install
+
+%files -f .mfiles
+%dir %{_javadir}/%{name}
+%doc LICENSE.txt
+
+%files javadoc -f .mfiles-javadoc
+%doc LICENSE.txt
+
+%changelog
+* Tue Jul  8 2014 Mikolaj Izdebski <mizdebsk at redhat.com> - 1.2.3-1
+- Initial pagkaging
diff --git a/sources b/sources
index e69de29..80f005f 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+d826c1884ea740e9e3931ee3edb23e08  os-maven-plugin-1.2.3.Final.tar.gz


More information about the scm-commits mailing list