Automatic submission by obs-autosubmit OBS-URL: https://build.opensuse.org/request/show/250709 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/datovka?expand=0&rev=6
98 lines
2.9 KiB
RPMSpec
98 lines
2.9 KiB
RPMSpec
#
|
||
# spec file for package datovka
|
||
#
|
||
# Copyright (c) 2014 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/
|
||
#
|
||
|
||
|
||
%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
|
||
Name: datovka
|
||
Version: 3.1
|
||
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: http://www.nic.cz/public_media/datove_schranky/releases/src/%{name}-%{version}.tar.gz
|
||
BuildRequires: dejavu
|
||
BuildRequires: fdupes
|
||
BuildRequires: python
|
||
BuildRequires: python-dslib >= 3.1
|
||
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.1
|
||
Requires: python-gtk
|
||
Requires: python-openssl
|
||
Requires: python-reportlab
|
||
Requires: python-setuptools
|
||
Requires: python-sqlalchemy
|
||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
%{py_requires}
|
||
|
||
%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
|
||
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
|
||
%defattr(-,root,root)
|
||
|
||
%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
|