05108286bb
Datovka czech egov system, this time fixed Source as upstream moves it around quite a lot :/ OBS-URL: https://build.opensuse.org/request/show/149965 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/datovka?expand=0&rev=1
97 lines
2.7 KiB
RPMSpec
97 lines
2.7 KiB
RPMSpec
#
|
||
# spec file for package datovka
|
||
#
|
||
# 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: datovka
|
||
Version: 3.0.3
|
||
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: %{name}-%{version}.tar.gz
|
||
BuildRequires: python
|
||
BuildRequires: python-distribute
|
||
BuildRequires: python-dslib >= 3.0
|
||
BuildRequires: python-gtk
|
||
BuildRequires: python-openssl
|
||
BuildRequires: python-reportlab
|
||
BuildRequires: python-sqlalchemy
|
||
BuildRequires: fdupes update-desktop-files
|
||
BuildRequires: dejavu
|
||
Requires: dejavu
|
||
Requires: python-dslib >= 3.0
|
||
Requires: python-gtk
|
||
Requires: python-distribute
|
||
Requires: python-reportlab
|
||
Requires: python-sqlalchemy
|
||
Requires: python-openssl
|
||
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.
|
||
|
||
%{?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
|