2013-11-27 17:59:56 +00:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
2010-04-16 23:52:52 +00:00
|
|
|
|
|
|
|
Name: python-pycdio
|
2013-11-27 17:59:56 +00:00
|
|
|
Version: 0.20
|
2010-04-16 23:52:52 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Python Bindings for the CDIO Library
|
2013-11-27 17:59:56 +00:00
|
|
|
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+
|
2010-04-16 23:52:52 +00:00
|
|
|
BuildRoot: %{_tmppath}/build-%{name}-%{version}
|
2013-11-27 17:59:56 +00:00
|
|
|
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
|
2010-04-16 23:52:52 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
pycdio is a Python interface to the CD Input and Control library (libcdio).
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
|
|
|
%prep
|
2013-11-27 17:59:56 +00:00
|
|
|
%setup -q -n pycdio-%{version}
|
2010-04-16 23:52:52 +00:00
|
|
|
|
|
|
|
%build
|
2013-11-27 17:59:56 +00:00
|
|
|
CFLAGS="%{optflags}" python setup.py build
|
2010-04-16 23:52:52 +00:00
|
|
|
|
|
|
|
%install
|
2013-11-27 17:59:56 +00:00
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
2010-04-16 23:52:52 +00:00
|
|
|
|
2013-11-27 17:59:56 +00:00
|
|
|
%files
|
2010-04-16 23:52:52 +00:00
|
|
|
%defattr(-,root,root)
|
2013-11-27 17:59:56 +00:00
|
|
|
%doc ChangeLog COPYING README.txt THANKS
|
|
|
|
%{python_sitearch}
|
2010-04-16 23:52:52 +00:00
|
|
|
|
|
|
|
%changelog
|