diff options
| author | Scott Bahling <sbahling@suse.de> | 2015-04-08 15:20:36 +0200 |
|---|---|---|
| committer | Scott Bahling <sbahling@suse.de> | 2015-04-08 15:20:36 +0200 |
| commit | a1c54d89aec78c9b797710723797a974ba0cd2b0 (patch) | |
| tree | c2f3f19dac8310e98ca0076cea6c03cfb386d298 /spec/python-obsapi.spec.tmpl | |
| parent | d4bdc1c110eaa0f0bd5702c01613a43de326757e (diff) | |
| download | obsapi-a1c54d89aec78c9b797710723797a974ba0cd2b0.tar.gz obsapi-a1c54d89aec78c9b797710723797a974ba0cd2b0.tar.xz obsapi-a1c54d89aec78c9b797710723797a974ba0cd2b0.zip | |
Setup packageobsapi-0.0.2
Diffstat (limited to 'spec/python-obsapi.spec.tmpl')
| -rw-r--r-- | spec/python-obsapi.spec.tmpl | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/spec/python-obsapi.spec.tmpl b/spec/python-obsapi.spec.tmpl new file mode 100644 index 0000000..58aeb6f --- /dev/null +++ b/spec/python-obsapi.spec.tmpl @@ -0,0 +1,58 @@ +# +# spec file for package python-obsapi (version __version__) +# +# Copyright (c) 2015 SUSE Linux GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +%define version __version__ +%define gitversion __gitversion__ + +Name: python-obsapi +Version: %{version} +Release: 0 +Summary: python library abstracting the OBS api +License: GPL-2.0 +Group: Development/Languages/Python +BuildRequires: python +BuildRequires: python-setuptools +BuildRoot: %{_tmppath}/%{name}-%{version}-build +Source: obsapi-%{gitversion}.tar.bz2 + +%if 0%{?suse_version} > 1110 +BuildArch: noarch +%endif + +%{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} + +%description +The obsapi library is meant to provide a simple set of abstractions to the +Open Build Service api for use in python scripting. + +%prep +%setup -q -n obsapi-%{gitversion} + +%build +python setup.py build + +%install +python setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES + +%clean +rm -rf %{buildroot} + +%files -f INSTALLED_FILES +%defattr(-,root,root) +%doc README.rst AUTHORS COPYING ChangeLog + +%changelog |
