From 4f2514c601e532af9252c9bf97a8c3b44d3bedcd58ac78ca3776b5a0235908f7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= <tchvatal@suse.com>
Date: Wed, 1 Aug 2018 14:52:21 +0000
Subject: [PATCH] - Switch to github tarball - Enable tests

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-filelock?expand=0&rev=2
---
 filelock-3.0.4.tar.gz   |  3 ---
 python-filelock.changes |  6 ++++++
 python-filelock.spec    | 19 +++++++++++--------
 v3.0.4.tar.gz           |  3 +++
 4 files changed, 20 insertions(+), 11 deletions(-)
 delete mode 100644 filelock-3.0.4.tar.gz
 create mode 100644 v3.0.4.tar.gz

diff --git a/filelock-3.0.4.tar.gz b/filelock-3.0.4.tar.gz
deleted file mode 100644
index c20e0a7..0000000
--- a/filelock-3.0.4.tar.gz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:011327d4ed939693a5b28c0fdf2fd9bda1f68614c1d6d0643a89382ce9843a71
-size 6496
diff --git a/python-filelock.changes b/python-filelock.changes
index 639c88b..ff687b1 100644
--- a/python-filelock.changes
+++ b/python-filelock.changes
@@ -1,3 +1,9 @@
+-------------------------------------------------------------------
+Wed Aug  1 14:43:23 UTC 2018 - tchvatal@suse.com
+
+- Switch to github tarball
+- Enable tests
+
 -------------------------------------------------------------------
 Tue May  8 12:44:24 UTC 2018 - buschmann23@opensuse.org
 
diff --git a/python-filelock.spec b/python-filelock.spec
index 283970b..9967515 100644
--- a/python-filelock.spec
+++ b/python-filelock.spec
@@ -14,23 +14,21 @@
 # published by the Open Source Initiative.
 
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
+#
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
-%define _pkgname filelock
 Name:           python-filelock
 Version:        3.0.4
 Release:        0
-License:        Unlicense
 Summary:        Platform Independent File Lock in Python
+License:        Unlicense
 Group:          Development/Languages/Python
-Url:            https://github.com/benediktschmitt/py-filelock
-Source:         https://files.pythonhosted.org/packages/source/f/%{_pkgname}/%{_pkgname}-%{version}.tar.gz
-BuildRequires:  %{python_module devel}
+URL:            https://github.com/benediktschmitt/py-filelock
+Source:         https://github.com/benediktschmitt/py-filelock/archive/v%{version}.tar.gz
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildArch:      noarch
 %python_subpackages
 
@@ -40,7 +38,7 @@ independent file lock in Python, which provides a simple way of
 inter-process communication.
 
 %prep
-%setup -q -n %{_pkgname}-%{version}
+%setup -q -n py-filelock-%{version}
 
 %build
 %python_build
@@ -49,8 +47,13 @@ inter-process communication.
 %python_install
 %python_expand %fdupes -s %{buildroot}/%{$python_sitelib}
 
+%check
+# test will not work on python2 wrong exceptions
+python3 test.py
+
 %files %{python_files}
-%defattr(-,root,root,-)
+%doc README.rst
+%license LICENSE.rst
 %{python_sitelib}/*
 
 %changelog
diff --git a/v3.0.4.tar.gz b/v3.0.4.tar.gz
new file mode 100644
index 0000000..c6adc16
--- /dev/null
+++ b/v3.0.4.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:8521523f3eafb7bbbdd0a5a7a15ddb8076ea6f106385bbfc4c9d055db2585214
+size 587292