From 2922257432570e03cf7f7ad506859ab5ce09092949f604cd2010fddf33a0e98c Mon Sep 17 00:00:00 2001 From: Denisart Benjamin Date: Wed, 27 Nov 2013 17:59:56 +0000 Subject: [PATCH] Accepting request 208727 from home:posophe:branches:devel:languages:python update + rebase OBS-URL: https://build.opensuse.org/request/show/208727 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pycdio?expand=0&rev=4 --- pycdio-0.17.tar.bz2 | 3 --- pycdio-0.20.tar.gz | 3 +++ python-pycdio.changes | 8 ++++++ python-pycdio.spec | 57 ++++++++++++++++++++++++++----------------- 4 files changed, 45 insertions(+), 26 deletions(-) delete mode 100644 pycdio-0.17.tar.bz2 create mode 100644 pycdio-0.20.tar.gz diff --git a/pycdio-0.17.tar.bz2 b/pycdio-0.17.tar.bz2 deleted file mode 100644 index 0516ee6..0000000 --- a/pycdio-0.17.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d5a6b08751e57cf9e398aa98922dbb3e45550bedae15bc29bdc1d308d35a573d -size 163925 diff --git a/pycdio-0.20.tar.gz b/pycdio-0.20.tar.gz new file mode 100644 index 0000000..71e5867 --- /dev/null +++ b/pycdio-0.20.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:24b4985b699fc4d12c2d49f7cb25a1ceb65d69278d18458f7b041579c71030d7 +size 197736 diff --git a/python-pycdio.changes b/python-pycdio.changes index 8687926..147193c 100644 --- a/python-pycdio.changes +++ b/python-pycdio.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Wed Nov 27 17:58:05 UTC 2013 - p.drouand@gmail.com + +- Update to version 0.20 + + Please read the ChangeLog for more news +- Complete rework of specfile + + Too many changes, sorry + ------------------------------------------------------------------- Sun Jun 05 21:50:43 UTC 2011 - pascal.bleser@opensuse.org diff --git a/python-pycdio.spec b/python-pycdio.spec index 48dbd02..baedde8 100644 --- a/python-pycdio.spec +++ b/python-pycdio.spec @@ -1,18 +1,36 @@ -# vim: set ts=4 sw=4 et: +# +# spec file for package python-pycdio +# +# Copyright (c) 2013 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-pycdio -Version: 0.17 +Version: 0.20 Release: 0 Summary: Python Bindings for the CDIO Library -# http://pypi.python.org/packages/source/p/pycdio/pycdio-%{version}.tar.gz -Source: pycdio-%{version}.tar.bz2 -URL: http://pypi.python.org/pypi/pycdio/ -Group: Development/Libraries/Python -License: GNU General Public License version 2 or later (GPL v2 or later) +Source: https://pypi.python.org/packages/source/p/pycdio/pycdio-%{version}.tar.gz +Url: http://pypi.python.org/pypi/pycdio/ +Group: Development/Languages/Python +License: GPL-2.0+ BuildRoot: %{_tmppath}/build-%{name}-%{version} -BuildRequires: python python-devel python-setuptools -BuildRequires: libcdio-devel pkgconfig gcc glibc-devel swig -%py_requires +BuildRequires: python-devel python-setuptools +BuildRequires: libcdio-devel +BuildRequires: pkgconfig +BuildRequires: swig +%if 0%{?suse_version} <= 1110 +%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} +%endif %description pycdio is a Python interface to the CD Input and Control library (libcdio). @@ -21,25 +39,18 @@ The pycdio (and libcdio) libraries encapsulate CD-ROM reading and control. Python programs wishing to be oblivious of the OS- and device-dependent properties of a CD-ROM can use this library. -%if !0%{?packman_bs} -%endif %prep -%setup -q -n "pycdio-%{version}" +%setup -q -n pycdio-%{version} %build -%__python ./setup.py build +CFLAGS="%{optflags}" python setup.py build %install -%__python ./setup.py install \ - --prefix="%{_prefix}" \ - --root="%{buildroot}" \ - --record-rpm=files.lst +python setup.py install --prefix=%{_prefix} --root=%{buildroot} -%clean -%{?buildroot:%__rm -rf "%{buildroot}"} - -%files -f files.lst +%files %defattr(-,root,root) -%doc README.txt +%doc ChangeLog COPYING README.txt THANKS +%{python_sitearch} %changelog