diff --git a/_multibuild b/_multibuild
new file mode 100644
index 0000000..fcc7b97
--- /dev/null
+++ b/_multibuild
@@ -0,0 +1,3 @@
+
+ test
+
diff --git a/_service b/_service
deleted file mode 100644
index 66bb2a4..0000000
--- a/_service
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
- https://github.com/facelessuser/soupsieve.git
- git
- 1.7.3
- 1.7.3
-
-
-
- *.tar
- xz
-
-
-
diff --git a/_service:obs_scm:soupsieve-1.7.3.obscpio b/_service:obs_scm:soupsieve-1.7.3.obscpio
deleted file mode 100644
index 3f2d952..0000000
--- a/_service:obs_scm:soupsieve-1.7.3.obscpio
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:d4110a05f5b3a4fedb78f44891acd3bde415ee2c76f50eeab5e102c0f92b917b
-size 371211
diff --git a/_service:obs_scm:soupsieve.obsinfo b/_service:obs_scm:soupsieve.obsinfo
deleted file mode 100644
index c5f8c0e..0000000
--- a/_service:obs_scm:soupsieve.obsinfo
+++ /dev/null
@@ -1,5 +0,0 @@
-name: soupsieve
-version: 1.7.3
-mtime: 1548223873
-commit: 0f489f4e79034c5181504913a5c4d67d680efdc5
-
diff --git a/python-soupsieve.changes b/python-soupsieve.changes
index 5287a10..585d968 100644
--- a/python-soupsieve.changes
+++ b/python-soupsieve.changes
@@ -1,3 +1,12 @@
+-------------------------------------------------------------------
+Fri Mar 1 11:34:35 UTC 2019 - Tomáš Chvátal
+
+- Fetch package from pypi
+- Update to 1.8:
+ * no obvious changelog
+- Run tests
+- Add missing dependencies
+
-------------------------------------------------------------------
Sun Feb 3 10:28:53 UTC 2019 - Adrian Schröter
diff --git a/python-soupsieve.spec b/python-soupsieve.spec
index e01dc94..a78888f 100644
--- a/python-soupsieve.spec
+++ b/python-soupsieve.spec
@@ -1,5 +1,5 @@
#
-# spec file for package python-beautifulsoup4
+# spec file for package python-soupsieve
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
@@ -17,24 +17,38 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
-Name: python-soupsieve
-Version: 1.7.3
+%global flavor @BUILD_FLAVOR@%{nil}
+%if "%{flavor}" == "test"
+%define psuffix -test
+%bcond_without test
+%else
+%define psuffix %{nil}
+%bcond_with test
+%endif
+Name: python-soupsieve%{psuffix}
+Version: 1.8
Release: 0
Summary: A modern CSS selector implementation for BeautifulSoup
License: MIT
Group: Development/Libraries/Python
URL: http://facelessuser.github.io/soupsieve/
-Source: soupsieve-%{version}.tar.xz
-BuildRequires: %{python_module devel >= 2.6}
+Source: https://files.pythonhosted.org/packages/source/s/soupsieve/soupsieve-%{version}.tar.gz
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
+%if %{with test}
+BuildRequires: %{python_module beautifulsoup4}
+BuildRequires: %{python_module pytest}
+BuildRequires: python-backports.functools_lru_cache
+%endif
+%ifpython2
+Requires: python-backports.functools_lru_cache
+%endif
%python_subpackages
%description
-
%prep
%setup -q -n soupsieve-%{version}
@@ -42,10 +56,22 @@ BuildArch: noarch
%python_build
%install
+%if !%{with test}
%python_install
-%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
+%python_expand rm -rf %{buildroot}%{$python_sitelib}/tests
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
+%endif
+%check
+%if %{with test}
+%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{python_bin_suffix} -v tests
+%endif
+
+%if !%{with test}
%files %{python_files}
%license LICENSE.md
+%doc README.md
%{python_sitelib}/soupsieve*
+%endif
+%changelog
diff --git a/soupsieve-1.8.tar.gz b/soupsieve-1.8.tar.gz
new file mode 100644
index 0000000..3789738
--- /dev/null
+++ b/soupsieve-1.8.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:eaed742b48b1f3e2d45ba6f79401b2ed5dc33b2123dfe216adb90d4bfa0ade26
+size 88211