datovka/datovka.spec

97 lines
2.8 KiB
RPMSpec
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#
# spec file for package datovka
#
# 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: datovka
Version: 3.0.3
Release: 0
Summary: Library to access Czech eGov system \"Datove schranky\"
License: LGPL-2.0+
Group: Development/Libraries/Python
Url: http://labs.nic.cz/page/969/datovka/
Source0: %{name}-%{version}.tar.gz
BuildRequires: dejavu
BuildRequires: fdupes
BuildRequires: python
BuildRequires: python-dslib >= 3.0
BuildRequires: python-gtk
BuildRequires: python-openssl
BuildRequires: python-reportlab
BuildRequires: python-setuptools
BuildRequires: python-sqlalchemy
BuildRequires: update-desktop-files
Requires: dejavu
Requires: python-dslib >= 3.0
Requires: python-gtk
Requires: python-openssl
Requires: python-reportlab
Requires: python-setuptools
Requires: python-sqlalchemy
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) SOAPservices as defined in Czech ISDS Act
(300/2008 Coll.) and implied documents.
%{?lang_package}
%prep
%setup -q
sed -i \
-e 's:Office:Office;Network;Email;:' \
%{name}.desktop
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --optimize=2 --root="%{buildroot}"
%fdupes %{buildroot}
%find_lang %{name}
for file in %{buildroot}%{python_sitelib}/%name/{_update_license,datovka}.py ; do
chmod a+x $file
done
chmod a-x %{buildroot}%_datadir/applications/%name.desktop
%suse_update_desktop_file %{buildroot}%_datadir/applications/%name.desktop
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files lang -f %{name}.lang
%files
%defattr(-,root,root)
%doc LICENSE README.txt
%dir %_datadir/%name
%{python_sitelib}/*
%_bindir/%name
%_datadir/%name/*
%_datadir/applications/%name.desktop
%_datadir/icons/hicolor/*
%changelog