2013-01-30 10:14:08 +00:00
|
|
|
|
#
|
|
|
|
|
# spec file for package datovka
|
|
|
|
|
#
|
2014-10-01 05:40:33 +00:00
|
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2013-01-30 10:14:08 +00:00
|
|
|
|
#
|
|
|
|
|
# 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/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2014-10-01 05:40:33 +00:00
|
|
|
|
%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
|
2013-01-30 10:14:08 +00:00
|
|
|
|
Name: datovka
|
2014-10-01 05:40:33 +00:00
|
|
|
|
Version: 3.1
|
2013-01-30 10:14:08 +00:00
|
|
|
|
Release: 0
|
|
|
|
|
Summary: Library to access Czech eGov system \"Datove schranky\"
|
2013-07-16 15:39:58 +00:00
|
|
|
|
License: LGPL-2.0+
|
2013-01-30 10:14:08 +00:00
|
|
|
|
Group: Development/Libraries/Python
|
2013-07-16 15:39:58 +00:00
|
|
|
|
Url: http://labs.nic.cz/page/969/datovka/
|
2014-10-01 05:40:33 +00:00
|
|
|
|
Source0: http://www.nic.cz/public_media/datove_schranky/releases/src/%{name}-%{version}.tar.gz
|
2013-07-16 15:39:58 +00:00
|
|
|
|
BuildRequires: dejavu
|
|
|
|
|
BuildRequires: fdupes
|
2013-01-30 10:14:08 +00:00
|
|
|
|
BuildRequires: python
|
2014-10-01 05:40:33 +00:00
|
|
|
|
BuildRequires: python-dslib >= 3.1
|
2013-01-30 10:14:08 +00:00
|
|
|
|
BuildRequires: python-gtk
|
|
|
|
|
BuildRequires: python-openssl
|
|
|
|
|
BuildRequires: python-reportlab
|
2013-11-07 11:51:31 +00:00
|
|
|
|
BuildRequires: python-setuptools
|
2013-01-30 10:14:08 +00:00
|
|
|
|
BuildRequires: python-sqlalchemy
|
2013-07-16 15:39:58 +00:00
|
|
|
|
BuildRequires: update-desktop-files
|
2013-01-30 10:14:08 +00:00
|
|
|
|
Requires: dejavu
|
2014-10-01 05:40:33 +00:00
|
|
|
|
Requires: python-dslib >= 3.1
|
2013-01-30 10:14:08 +00:00
|
|
|
|
Requires: python-gtk
|
2013-07-16 15:39:58 +00:00
|
|
|
|
Requires: python-openssl
|
2013-01-30 10:14:08 +00:00
|
|
|
|
Requires: python-reportlab
|
2013-11-07 11:51:31 +00:00
|
|
|
|
Requires: python-setuptools
|
2013-01-30 10:14:08 +00:00
|
|
|
|
Requires: python-sqlalchemy
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2014-10-01 05:40:33 +00:00
|
|
|
|
%{py_requires}
|
2013-01-30 10:14:08 +00:00
|
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
|
|
%{?lang_package}
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
sed -i \
|
|
|
|
|
-e 's:Office:Office;Network;Email;:' \
|
|
|
|
|
%{name}.desktop
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
python setup.py build
|
|
|
|
|
|
|
|
|
|
%install
|
2014-10-01 05:40:33 +00:00
|
|
|
|
python setup.py install --prefix=%{_prefix} --optimize=2 --root=%{buildroot}
|
2013-01-30 10:14:08 +00:00
|
|
|
|
%fdupes %{buildroot}
|
|
|
|
|
%find_lang %{name}
|
|
|
|
|
|
2014-10-01 05:40:33 +00:00
|
|
|
|
for file in %{buildroot}%{python_sitelib}/%{name}/{_update_license,datovka}.py ; do
|
2013-01-30 10:14:08 +00:00
|
|
|
|
chmod a+x $file
|
|
|
|
|
done
|
2014-10-01 05:40:33 +00:00
|
|
|
|
chmod a-x %{buildroot}%{_datadir}/applications/%{name}.desktop
|
|
|
|
|
%suse_update_desktop_file %{buildroot}%{_datadir}/applications/%{name}.desktop
|
2013-01-30 10:14:08 +00:00
|
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%files lang -f %{name}.lang
|
2014-10-01 05:40:33 +00:00
|
|
|
|
%defattr(-,root,root)
|
2013-01-30 10:14:08 +00:00
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc LICENSE README.txt
|
2014-10-01 05:40:33 +00:00
|
|
|
|
%dir %{_datadir}/%{name}
|
2013-01-30 10:14:08 +00:00
|
|
|
|
%{python_sitelib}/*
|
2014-10-01 05:40:33 +00:00
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
|
%{_datadir}/%{name}/*
|
|
|
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
|
|
%{_datadir}/icons/hicolor/*
|
2013-01-30 10:14:08 +00:00
|
|
|
|
|
|
|
|
|
%changelog
|