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/cssselect-1.0.3.tar.gz b/cssselect-1.0.3.tar.gz
deleted file mode 100644
index d6398f5..0000000
--- a/cssselect-1.0.3.tar.gz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:066d8bc5229af09617e24b3ca4d52f1f9092d9e061931f4184cd572885c23204
-size 22824
diff --git a/python-cssselect.changes b/python-cssselect.changes
index bd9fb05..356dcea 100644
--- a/python-cssselect.changes
+++ b/python-cssselect.changes
@@ -1,3 +1,16 @@
+-------------------------------------------------------------------
+Fri Sep 20 08:39:42 UTC 2019 - Tomáš Chvátal
+
+- Switch to multibuild to avoid build cycle with lxml
+
+-------------------------------------------------------------------
+Fri Sep 13 10:31:51 UTC 2019 - Tomáš Chvátal
+
+- Update to 1.1.0:
+ * Support for the :scope selector, which allows to access immediate children of a selector.
+ * Support for the |E syntax for type selectors without a namespace.
+ * A new selector method, canonical, returns the CSS expression of the selector, as a string.
+
-------------------------------------------------------------------
Tue Dec 4 12:47:02 UTC 2018 - Matej Cepl
diff --git a/python-cssselect.spec b/python-cssselect.spec
index 5ec3124..a5153a3 100644
--- a/python-cssselect.spec
+++ b/python-cssselect.spec
@@ -1,7 +1,7 @@
#
# spec file for package python-cssselect
#
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -17,19 +17,30 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
-Name: python-cssselect
-Version: 1.0.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-cssselect%{psuffix}
+Version: 1.1.0
Release: 0
Summary: CSS3 selectors for Python
License: BSD-3-Clause
Group: Development/Languages/Python
-Url: http://packages.python.org/cssselect/
-Source: https://pypi.io/packages/source/c/cssselect/cssselect-%{version}.tar.gz
+URL: https://github.com/scrapy/cssselect
+Source: https://github.com/scrapy/cssselect/archive/v%{version}.tar.gz
BuildRequires: %{python_module setuptools}
+BuildRequires: fdupes
BuildRequires: python-rpm-macros
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
-
+%if %{with test}
+BuildRequires: %{python_module lxml}
+BuildRequires: %{python_module pytest}
+%endif
%python_subpackages
%description
@@ -47,11 +58,21 @@ extracted as a stand-alone project.
%python_build
%install
+%if !%{with test}
%python_install
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
+%endif
-%files %python_files
-%defattr(-,root,root,-)
+%check
+%if %{with test}
+%pytest
+%endif
+
+%if !%{with test}
+%files %{python_files}
%{python_sitelib}/*
-%doc README.rst LICENSE CHANGES AUTHORS
+%license LICENSE
+%doc README.rst CHANGES AUTHORS
+%endif
%changelog
diff --git a/v1.1.0.tar.gz b/v1.1.0.tar.gz
new file mode 100644
index 0000000..a3b638f
--- /dev/null
+++ b/v1.1.0.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:dde8c1d4a2c82de6889a3af1c1adbce1a6f3ec08b07a854d873f3f3da92960af
+size 35516