[ovirt-engine-sdk-java] Initial packaging

Juan Hernandez jhernand at fedoraproject.org
Wed Oct 9 14:38:49 UTC 2013


commit bb91f9e73ed5ba6e47b4b65b3e02bd88c014f2ed
Author: Juan Hernandez <juan.hernandez at redhat.com>
Date:   Wed Oct 9 16:23:48 2013 +0200

    Initial packaging

 .gitignore                 |    1 +
 ovirt-engine-sdk-java.spec |   78 ++++++++++++++++++++++++++++++++++++++++++++
 sources                    |    1 +
 3 files changed, 80 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..64e35a2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/ovirt-engine-sdk-java-1.0.0.18.tar.xz
diff --git a/ovirt-engine-sdk-java.spec b/ovirt-engine-sdk-java.spec
new file mode 100644
index 0000000..ba553f1
--- /dev/null
+++ b/ovirt-engine-sdk-java.spec
@@ -0,0 +1,78 @@
+Name: ovirt-engine-sdk-java
+Version: 1.0.0.18
+Release: 1%{?dist}
+Summary: oVirt Engine Software Development Kit (Java)
+Group: Development/Libraries
+License: ASL 2.0
+URL: http://ovirt.org
+
+# git clone git://gerrit.ovirt.org/ovirt-engine-sdk-java
+# cd ovirt-engine-sdk-java
+# git archive --prefix ovirt-engine-sdk-java-1.0.0.18/ 1.0.0.18 | xz > ovirt-engine-sdk-java-1.0.0.18.tar.xz
+Source: %{name}-%{version}.tar.xz
+
+BuildArch: noarch
+
+BuildRequires: apache-commons-compress
+BuildRequires: apache-commons-logging
+BuildRequires: httpcomponents-client
+BuildRequires: junit
+BuildRequires: maven-compiler-plugin
+BuildRequires: maven-install-plugin
+BuildRequires: maven-jar-plugin
+BuildRequires: maven-javadoc-plugin
+BuildRequires: maven-source-plugin
+BuildRequires: maven-local
+
+
+%description
+This package contains The oVirt-Engine Java Software Development Kit.
+With this package, custom java software can be built for oVirt-Engine.
+
+
+%package javadoc
+Summary: API documentation for %{name}
+Group: Documentation
+
+
+%description javadoc
+This package provides %{name}.
+
+
+%prep
+
+# Extract the source:
+%setup -q
+
+# In the tree provided by the upstream project the relevant source for this
+# package is inside a subdirectory, but our build tools expect the POM files in
+# the current directory, so in order to simplify things we move everything to
+# the top level before starting the build:
+mv ovirt-engine-sdk-java/* .
+
+
+%build
+%mvn_build
+
+
+%install
+%mvn_install
+
+
+%files -f .mfiles
+%dir %{_javadir}/%{name}
+%doc AUTHORS
+%doc README
+%doc LICENSE
+
+
+%files javadoc -f .mfiles-javadoc
+%doc AUTHORS
+%doc README
+%doc LICENSE
+
+
+%changelog
+* Wed Oct 09 2013 Juan Hernandez <juan.hernandez at redhat.com> - 1.0.0.18-1
+- Initial packaging
+
diff --git a/sources b/sources
index e69de29..009b9b6 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+b0e51dc3e6a9fdafa267dc3fb7ac2ae1  ovirt-engine-sdk-java-1.0.0.18.tar.xz


More information about the scm-commits mailing list