%global dat_ver 2.1.2 Name: python-dslib Version: 2.1.2 Release: 2%{?dist} Summary: A Python library for accessing Czech Databox (Datové schránky) Group: Development/Libraries License: LGPLv2+ URL: http://labs.nic.cz/datove-schranky/ Source0: http://www.nic.cz/public_media/datove_schranky/releases/datovka-%{dat_ver}/src/dslib-%{version}.tar.gz BuildArch: noarch BuildRequires: python-setuptools Requires: pyOpenSSL, python-pyasn1, python-sudsds %description dslib is a Python library for accessing a 'Databox' - an electronic communication interface endorsed by the Czech government. %prep %setup -q -n dslib-%{version} %build CFLAGS="%{optflags}" %{__python} setup.py build %install %{__python} setup.py install --skip-build --root %{buildroot} # Remove wrongly installed documents, they will be correctly installed later rm -f %{buildroot}%{_datadir}/dslib/{README,LICENSE.txt} %files %doc LICENSE.txt README.txt %{python_sitelib}/* %{_datadir}/dslib %changelog * Mon Sep 17 2012 Jaroslav Škarvada - 2.1.2-2 - Do not remove datadir/dslib directory * Wed Sep 05 2012 Jaroslav Škarvada - 2.1.2-1 - Initial version