Initial packaging
authorAlexander Kanevskiy <alexander.kanevskiy@intel.com>
Thu, 15 Aug 2013 11:26:22 +0000 (14:26 +0300)
committerAlexander Kanevskiy <alexander.kanevskiy@intel.com>
Thu, 15 Aug 2013 11:26:22 +0000 (14:26 +0300)
packaging/python-gerritrest.changes [new file with mode: 0644]
packaging/python-gerritrest.spec [new file with mode: 0644]

diff --git a/packaging/python-gerritrest.changes b/packaging/python-gerritrest.changes
new file mode 100644 (file)
index 0000000..615f324
--- /dev/null
@@ -0,0 +1,5 @@
+-------------------------------------------------------------------
+Thu Aug 15 11:06:41 UTC 2013 - alexander.kanevskiy@intel.com
+
+- Initial packaging
+
diff --git a/packaging/python-gerritrest.spec b/packaging/python-gerritrest.spec
new file mode 100644 (file)
index 0000000..4ce11a9
--- /dev/null
@@ -0,0 +1,41 @@
+Name:           python-gerritrest
+Version:        0.1.0
+%if 0%{?opensuse_bs}
+Release:        0.dev.<CI_CNT>.<B_CNT>
+%else
+Release:        0
+%endif
+Summary:        Python library to access Gerrit via REST API
+License:        GPL-2
+Group:          Development/Languages/Python
+Url:            http://download.tizen.org/tools
+Source:         gerritrest-%{version}.tar.gz
+BuildRequires:  python-devel
+BuildRequires:  python-setuptools
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
+%if 0%{?suse_version}
+%py_requires
+%endif
+BuildArch:      noarch
+%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
+
+%description
+Very simple Python library to access various Gerrit objects via REST APIs
+
+%prep
+%setup -q -n gerritrest-%{version}
+
+%build
+python setup.py build
+
+%install
+python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+
+%files
+%defattr(-,root,root,-)
+%doc README.rst
+#{_bindir}/*
+%{python_sitelib}/*
+
+%changelog
+