Accepting request 149965 from devel:languages:python

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
This commit is contained in:
Stephan Kulow 2013-01-30 10:14:08 +00:00 committed by Git OBS Bridge
commit 05108286bb
5 changed files with 192 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
datovka-3.0.3.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:96bbc89fb2fe0c6a306d80260945b1b4eb089a061f9e324139b9a238d8588c3c
size 671555

69
datovka.changes Normal file
View File

@ -0,0 +1,69 @@
-------------------------------------------------------------------
Fri Jan 25 20:26:33 UTC 2013 - tchvatal@suse.com
- Upstream moves the tarball all around, just not track it.
-------------------------------------------------------------------
Wed Jan 23 15:14:51 UTC 2013 - tchvatal@suse.com
- Forgot to own datadir.
-------------------------------------------------------------------
Wed Jan 23 14:20:44 UTC 2013 - tchvatal@suse.com
- Sort out desktop file for SLE.
-------------------------------------------------------------------
Wed Jan 23 14:09:36 UTC 2013 - tchvatal@suse.com
- Fix various rpmlint warnings to make it happy.
-------------------------------------------------------------------
Wed Jan 23 13:02:10 UTC 2013 - tchvatal@suse.com
- Add build_root and python stuff to theoretically build on sle.
-------------------------------------------------------------------
Wed Jan 23 10:56:08 UTC 2013 - tchvatal@suse.com
- Add more runtime deps to be on safe side here.
-------------------------------------------------------------------
Mon Jan 21 11:11:02 UTC 2013 - tchvatal@suse.com
- Fix download url as upstream decided to move it.
-------------------------------------------------------------------
Fri Jan 18 16:58:20 UTC 2013 - tchvatal@suse.com
- Add py_requires macro.
-------------------------------------------------------------------
Mon Jan 7 11:54:38 UTC 2013 - tchvatal@suse.com
- Version bump to 3.0.3.
-------------------------------------------------------------------
Thu Dec 20 14:11:11 UTC 2012 - tchvatal@suse.com
- Version bump to 3.0.2. Raise dslib dep. Remove dejavu hack.
-------------------------------------------------------------------
Fri Nov 30 09:41:51 UTC 2012 - tchvatal@suse.com
- Version bump to 2.1.1. Raise dslib dep.
-------------------------------------------------------------------
Thu Apr 26 11:02:15 UTC 2012 - tchvatal@suse.com
- Bump to version 2.0.2. Depend on newer python-dslib.
-------------------------------------------------------------------
Wed Dec 07 12:31:20 UTC 2011 - tchvatal@suse.com
- Remove _service, clean phase, add some docs
-------------------------------------------------------------------
Tue Dec 06 14:30:30 UTC 2011 - tchvatal@suse.com
- Initial commit of datovka.

96
datovka.spec Normal file
View File

@ -0,0 +1,96 @@
#
# 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) 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