File python-dslib.spec of Package python-dslib

#
# spec file for package python-dslib
#
# Copyright (c) 2012 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-dslib
Version:        3.0
Release:        0
License:        LGPL-2.0+
Summary:        Library to access Czech eGov system \"Datove schranky\"
Url:            http://labs.nic.cz/page/969/datovka/
Group:          Development/Libraries/Python
Source0:        http://www.nic.cz/public_media/datove_schranky/releases/src/dslib-%{version}.tar.gz
BuildRequires:  python-devel
BuildRequires:  python-distribute
BuildRequires:  python-openssl
BuildRequires:  python-pyasn1 >= 0.0.13
BuildRequires:  pkg-config
BuildRequires:  fdupes
BuildRequires:  python-sudsds
Requires:       python-sudsds
Requires:       python-openssl
Requires:       python-pyasn1 >= 0.0.13
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%py_requires
%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
A library for accessing ISDS (Informační system datovych schranek/
Data Box Information System) SOAP services as defined in Czech ISDS Act
(300/2008 Coll.) and implied documents.

%prep
%setup -q -n dslib-%{version}

%build
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --optimize=2 --root="%{buildroot}"
rm %{buildroot}/%{_datadir}/dslib/{README,LICENSE}.txt
%fdupes %{buildroot}

%files
%defattr(-,root,root)
%doc README.txt LICENSE.txt
%{python_sitelib}/*
%{_datadir}/dslib

%changelog
openSUSE Build Service is sponsored by