diff --git a/datovka-3.0.3.tar.gz b/datovka-3.0.3.tar.gz deleted file mode 100644 index 2bb968c..0000000 --- a/datovka-3.0.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:96bbc89fb2fe0c6a306d80260945b1b4eb089a061f9e324139b9a238d8588c3c -size 671555 diff --git a/datovka-3.1.tar.gz b/datovka-3.1.tar.gz new file mode 100644 index 0000000..76e6695 --- /dev/null +++ b/datovka-3.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fe2e1698320c87ef305dbb040827612a9231da90f6411052f8e3d3ca4343e8fb +size 687994 diff --git a/datovka.changes b/datovka.changes index 4f9a9cb..e3ab043 100644 --- a/datovka.changes +++ b/datovka.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Mon Sep 15 14:30:05 UTC 2014 - tchvatal@suse.com + +- Version bump to 3.1: + * Detect better file suffixes + * work with sqlalchemy 0.9 +- Cleanup with spec-cleaner + ------------------------------------------------------------------- Thu Oct 24 10:50:44 UTC 2013 - speilicke@suse.com diff --git a/datovka.spec b/datovka.spec index aef8e7d..7d33baf 100644 --- a/datovka.spec +++ b/datovka.spec @@ -1,7 +1,7 @@ # # spec file for package datovka # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# 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 @@ -16,18 +16,23 @@ # +%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.0.3 +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: %{name}-%{version}.tar.gz +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.0 +BuildRequires: python-dslib >= 3.1 BuildRequires: python-gtk BuildRequires: python-openssl BuildRequires: python-reportlab @@ -35,19 +40,14 @@ BuildRequires: python-setuptools BuildRequires: python-sqlalchemy BuildRequires: update-desktop-files Requires: dejavu -Requires: python-dslib >= 3.0 +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 -%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 +%{py_requires} %description A library for accessing ISDS (Informační system datovych schranek/ @@ -67,30 +67,31 @@ sed -i \ python setup.py build %install -python setup.py install --prefix=%{_prefix} --optimize=2 --root="%{buildroot}" +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 +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 +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 +%dir %{_datadir}/%{name} %{python_sitelib}/* -%_bindir/%name -%_datadir/%name/* -%_datadir/applications/%name.desktop -%_datadir/icons/hicolor/* +%{_bindir}/%{name} +%{_datadir}/%{name}/* +%{_datadir}/applications/%{name}.desktop +%{_datadir}/icons/hicolor/* %changelog