commit 93a6be2eeaa60b1908962a1709508c97fa4dc7fec4df15afbc482fff7d7e96de Author: Michal Čihař Date: Fri May 15 13:24:10 2015 +0000 Accepting request 307336 from home:Nijel:branches:devel:languages:python Initial packaging OBS-URL: https://build.opensuse.org/request/show/307336 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-odorik?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/odorik-0.1.tar.bz2 b/odorik-0.1.tar.bz2 new file mode 100644 index 0000000..b017cb6 --- /dev/null +++ b/odorik-0.1.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a1b0eff867fcf2e92074cb667500b9781e690bc371717124b2e4563d840edc04 +size 24676 diff --git a/python-odorik.changes b/python-odorik.changes new file mode 100644 index 0000000..f02b1e2 --- /dev/null +++ b/python-odorik.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Fri May 15 13:15:32 UTC 2015 - mcihar@suse.cz + +- Initial packaging. + diff --git a/python-odorik.spec b/python-odorik.spec new file mode 100644 index 0000000..63ac289 --- /dev/null +++ b/python-odorik.spec @@ -0,0 +1,64 @@ +# +# spec file for package python-odorik +# +# Copyright (c) 2015 SUSE LINUX Products 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/ + + +Name: python-odorik +Version: 0.1 +Release: 0 +License: GPL-3.0+ +Summary: Python module for Odorik API +Url: https://github.com/nijel/odorik +Group: Development/Languages/Python +Source: https://pypi.python.org/packages/source/o/odorik/odorik-%{version}.tar.bz2 +BuildRequires: python-devel +BuildRequires: python-sphinx +BuildRequires: python-pytest +BuildRequires: python-httpretty +BuildRequires: python-xdg +Requires: python-xdg +BuildRoot: %{_tmppath}/%{name}-%{version}-build +%if 0%{?suse_version} && 0%{?suse_version} <= 1110 +%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} +%else +BuildArch: noarch +%endif + +%description +Python module to work with Odorik API. + +%prep +%setup -q -n odorik-%{version} + +%build +python setup.py build +make -C docs man + +%install +python setup.py install --prefix=%{_prefix} --root=%{buildroot} +install -d %{buildroot}%{_mandir}/man1 +install -m 644 docs/_build/man/odorik.1 %{buildroot}%{_mandir}/man1 + +%check +py.test odorik + +%files +%defattr(-,root,root,-) +%doc NEWS.rst LICENSE README.rst +%{python_sitelib}/* +%{_mandir}/man1/* +%{_bindir}/* + +%changelog