From: Alexander Kanevskiy Date: Thu, 15 Aug 2013 12:05:55 +0000 (+0300) Subject: Initial packaging X-Git-Tag: submit/devel/20190730.075356~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=442509dd815155cb23beace07fc557cea47253ac;p=services%2Fgerrithooks.git Initial packaging --- diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 0000000..bfe705d --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1 @@ +include *.conf diff --git a/packaging/gerrithooks.changes b/packaging/gerrithooks.changes new file mode 100644 index 0000000..615f324 --- /dev/null +++ b/packaging/gerrithooks.changes @@ -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 index 0000000..fa02beb --- /dev/null +++ b/packaging/gerrithooks.spec @@ -0,0 +1,43 @@ +Name: gerrithooks +Version: 0.1.0 +%if 0%{?opensuse_bs} +Release: 0.dev.. +%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 +