Initial packaging
authorAlexander Kanevskiy <alexander.kanevskiy@intel.com>
Thu, 15 Aug 2013 12:05:55 +0000 (15:05 +0300)
committerAlexander Kanevskiy <alexander.kanevskiy@intel.com>
Thu, 15 Aug 2013 12:05:55 +0000 (15:05 +0300)
MANIFEST.in [new file with mode: 0644]
packaging/gerrithooks.changes [new file with mode: 0644]
packaging/gerrithooks.spec [new file with mode: 0644]

diff --git a/MANIFEST.in b/MANIFEST.in
new file mode 100644 (file)
index 0000000..bfe705d
--- /dev/null
@@ -0,0 +1 @@
+include *.conf
diff --git a/packaging/gerrithooks.changes b/packaging/gerrithooks.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/gerrithooks.spec b/packaging/gerrithooks.spec
new file mode 100644 (file)
index 0000000..fa02beb
--- /dev/null
@@ -0,0 +1,43 @@
+Name:           gerrithooks
+Version:        0.1.0
+%if 0%{?opensuse_bs}
+Release:        0.dev.<CI_CNT>.<B_CNT>
+%else
+Release:        0
+%endif
+Summary:        Expandable Gerrit hooks framework
+License:        GPL-2
+Group:          Development/Languages/Python
+Url:            http://download.tizen.org/tools
+Source:         gerrithooks-%{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
+Framework to plug several extentions into Gerrit Hooks
+
+%prep
+%setup -q -n %{name}-%{version}
+
+%build
+python setup.py build
+
+%install
+python setup.py install --prefix=%{_prefix} --root=%{buildroot}
+
+%files
+%defattr(-,root,root,-)
+%doc README.rst
+%dir %{_sysconfdir}/%{name}
+%config(noreplace) %{_sysconfdir}/%{name}/*.conf
+%{_bindir}/*
+%{python_sitelib}/*
+
+%changelog
+