14
0
forked from pool/python-pycdio
Files
python-pycdio/python-pycdio.spec

53 lines
1.6 KiB
RPMSpec
Raw Normal View History

# norootforbuild
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
Name: python-pycdio
Version: 0.16
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)
BuildRoot: %{_tmppath}/build-%{name}-%{version}
BuildRequires: python python-devel python-setuptools
BuildRequires: libcdio-devel pkgconfig gcc glibc-devel swig
%py_requires
%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.
%debug_package
%prep
%setup -q -n "pycdio-%{version}"
%build
%__python ./setup.py build
%install
%__python ./setup.py install \
--prefix="%{_prefix}" \
--root="%{buildroot}" \
--record-rpm=files.lst
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files -f files.lst
%defattr(-,root,root)
%doc README.txt
%changelog
# vim: set sw=3 ts=3 noet:
# Local Variables:
# mode: rpm-spec
# tab-width: 3
# End: