[shogun-data/el5] Initial import (#1048730)

Björn Esser besser82 at fedoraproject.org
Mon Jan 6 15:42:19 UTC 2014


commit bd667629a38d7d0d3f281c9be315718d11746adc
Author: Björn Esser <bjoern.esser at gmail.com>
Date:   Mon Jan 6 16:41:09 2014 +0100

    Initial import (#1048730)

 .gitignore       |    4 +++
 shogun-data.spec |   67 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources          |    1 +
 3 files changed, 72 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..4a406bf 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*~
+*.rpm
+*.tar*
+results_*/
diff --git a/shogun-data.spec b/shogun-data.spec
new file mode 100644
index 0000000..1757db3
--- /dev/null
+++ b/shogun-data.spec
@@ -0,0 +1,67 @@
+# Conditional for release and snapshot builds. Uncomment for release-builds.
+%global rel_build 1
+
+# Settings used for build from snapshots.
+%{!?rel_build:%global commit		0bbb04f354a29ed3ab43ce002388b79bb274e886}
+%{!?rel_build:%global commit_date	20131222}
+%{!?rel_build:%global shortcommit	%(c=%{commit};echo ${c:0:7})}
+%{!?rel_build:%global gitver		git%{commit_date}-%{shortcommit}}
+%{!?rel_build:%global gitrel		.git%{commit_date}.%{shortcommit}}
+%{!?rel_build:%global gittar		%{name}-%{version}-%{gitver}.tar.gz}
+
+# This is needed, because we are building just the data-pkg from it's tarball.
+# The main-prg is shipped in a different tarball.  This pkg is need for as a
+# BuildRequires for the main-prg, mostly.
+%global mainprg shogun
+
+Name:			%{mainprg}-data
+Version:		0.7
+Release:		1%{?gitrel}%{?dist}
+Summary:		Data-files for the SHOGUN machine learning toolbox
+%{?el5:Group:		Documentation}
+
+License:		GPLv3
+URL:			http://%{mainprg}-toolbox.org
+# Sources for release-builds.
+%{?rel_build:Source0:	%{url}/archives/%{mainprg}/data/%{name}-%{version}.tar.bz2}
+# Sources for snapshot-builds.
+%{!?rel_build:Source0:	https://github.com/%{mainprg}-toolbox/%{name}/archive/%{commit}.tar.gz#/%{gittar}}
+
+BuildArch:		noarch
+%{?el5:BuildRoot:	%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)}
+
+%description
+This package contains data-files needed for running the testsuite and
+examples of the SHOGUN machine learning toolbox.
+
+
+%prep
+%setup -q%{!?rel_build:n %{name}-%{commit}}
+
+# Move some documentation to toplevel.
+mv easysvm/README README.easysvm
+mv faces/README LICENSE
+
+
+%build
+# noop
+
+
+%install
+%{?el5:rm -rf %{buildroot}}
+mkdir -p %{buildroot}/%{_datadir}/%{mainprg}/data
+cp -a */ %{buildroot}/%{_datadir}/%{mainprg}/data
+
+
+%{?el5:%clean}
+%{?el5:rm -rf %{buildroot}}
+
+
+%files
+%doc LICENSE README.*
+%{_datadir}/%{mainprg}
+
+
+%changelog
+* Mon Jan 06 2014 Björn Esser <bjoern.esser at gmail.com> - 0.7-1
+- Initial rpm release (#1048730)
diff --git a/sources b/sources
index e69de29..537d468 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+9c865f80f4f0c23dca201f6b4460a079  shogun-data-0.7.tar.bz2


More information about the ml mailing list