[python-dslib] Initial import (#854690)

Jaroslav Škarvada jskarvad at fedoraproject.org
Mon Sep 24 13:29:54 UTC 2012


commit 9fa81ab14e37fe5f04e1e1dbe5062bede5c7de5b
Author: Jaroslav Škarvada <jskarvad at redhat.com>
Date:   Mon Sep 24 15:29:02 2012 +0200

    Initial import (#854690)

 .gitignore        |    1 +
 python-dslib.spec |   41 +++++++++++++++++++++++++++++++++++++++++
 sources           |    1 +
 3 files changed, 43 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..b4226ca 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+dslib-*.tar.gz
diff --git a/python-dslib.spec b/python-dslib.spec
new file mode 100644
index 0000000..7945d0d
--- /dev/null
+++ b/python-dslib.spec
@@ -0,0 +1,41 @@
+%global dat_ver 2.1.2
+
+Name:          python-dslib
+Version:       2.1.2
+Release:       2%{?dist}
+Summary:       A Python library for accessing Czech Databox (Datové schránky)
+Group:         Development/Libraries
+License:       LGPLv2+
+URL:           http://labs.nic.cz/datove-schranky/
+Source0:       http://www.nic.cz/public_media/datove_schranky/releases/datovka-%{dat_ver}/src/dslib-%{version}.tar.gz
+BuildArch:     noarch
+BuildRequires: python-setuptools
+Requires:      pyOpenSSL, python-pyasn1, python-sudsds
+
+%description
+dslib is a Python library for accessing a 'Databox' - an electronic
+communication interface endorsed by the Czech government.
+
+%prep
+%setup -q -n dslib-%{version}
+
+%build
+CFLAGS="%{optflags}" %{__python} setup.py build
+
+%install
+%{__python} setup.py install --skip-build --root %{buildroot}
+
+# Remove wrongly installed documents, they will be correctly installed later
+rm -f %{buildroot}%{_datadir}/dslib/{README,LICENSE.txt}
+
+%files
+%doc LICENSE.txt README.txt
+%{python_sitelib}/*
+%{_datadir}/dslib
+
+%changelog
+* Mon Sep 17 2012 Jaroslav Škarvada <jskarvad at redhat.com> - 2.1.2-2
+- Do not remove datadir/dslib directory
+
+* Wed Sep 05 2012 Jaroslav Škarvada <jskarvad at redhat.com> - 2.1.2-1
+- Initial version
diff --git a/sources b/sources
index e69de29..b447424 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+2dc74241bf32d5d6eb5c7199b3a01357  dslib-2.1.2.tar.gz


More information about the scm-commits mailing list