Initial RPM packaging
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Thu, 4 Apr 2013 12:06:15 +0000 (15:06 +0300)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Fri, 5 Apr 2013 08:44:06 +0000 (11:44 +0300)
Change-Id: Iac1320f4629c80cb7fbed400ceb3442de40f1971
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
.gbp.conf [new file with mode: 0644]
packaging/obs-service-gbs.changes [new file with mode: 0644]
packaging/obs-service-gbs.spec [new file with mode: 0644]

diff --git a/.gbp.conf b/.gbp.conf
new file mode 100644 (file)
index 0000000..2666337
--- /dev/null
+++ b/.gbp.conf
@@ -0,0 +1,5 @@
+[DEFAULT]
+# Vendor/Distro name
+vendor=Tizen
+# Subdir for RPM packaging data
+packaging-dir=packaging
diff --git a/packaging/obs-service-gbs.changes b/packaging/obs-service-gbs.changes
new file mode 100644 (file)
index 0000000..33eca5e
--- /dev/null
@@ -0,0 +1,3 @@
+* Thu Apr 04 2013 Markus Lehtonen <markus.lehtonen@linux.intel.com> 0.0
+- Initial version
+
diff --git a/packaging/obs-service-gbs.spec b/packaging/obs-service-gbs.spec
new file mode 100644 (file)
index 0000000..3e2f129
--- /dev/null
@@ -0,0 +1,54 @@
+%define do_unittests 0
+
+Name:           obs-service-gbs
+License:        GPL-2.0+
+Group:          Development/Tools/Building
+Summary:        Get sources from a repository managed with GBS
+Version:        0.0
+Release:        0
+URL:            http://www.tizen.org
+Source:         %{name}-%{version}.tar.bz2
+Requires:       gbs
+Requires:       obs-service-git-buildpackage >= 0.1
+BuildRequires:  python
+BuildRequires:  python-setuptools
+%if 0%{?do_unittests}
+BuildRequires:  python-coverage
+BuildRequires:  python-nose
+BuildRequires:  obs-service-git-buildpackage >= 0.1
+%endif
+BuildArch:      noarch
+
+%description
+This is a source service for openSUSE Build Service.
+
+This source service supports getting packaging files from a git repository that
+is being maintained with the GBS tool.
+
+
+%prep
+%setup
+
+
+%build
+%{__python} setup.py build
+
+
+%if 0%{?do_unittests}
+%check
+%{__python} setup.py nosetests
+%endif
+
+
+%install
+%{__python} setup.py install --skip-build --root=%{buildroot} --prefix=%{_prefix}
+rm -rf %{buildroot}%{python_sitelib}/*info
+
+
+%files
+%defattr(-,root,root,-)
+%doc COPYING
+%dir /usr/lib/obs
+%dir /usr/lib/obs/service
+/usr/lib/obs/service/*
+%{python_sitelib}/obs_service_gbs