diff --git a/PyICU-2.0.2.tar.gz b/PyICU-2.0.2.tar.gz
deleted file mode 100644
index 4d59b3c..0000000
--- a/PyICU-2.0.2.tar.gz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:dd8fedfb7e790fb829d0051a27295770146447e4176cb1b6425992e9b5016f10
-size 194525
diff --git a/PyICU-2.2.tar.gz b/PyICU-2.2.tar.gz
new file mode 100644
index 0000000..3bfc2d3
--- /dev/null
+++ b/PyICU-2.2.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:ea6ae8bb6845e2e145cf03cd80cf258487b80fca3669ae8a7bf0c5105df10973
+size 211135
diff --git a/_service b/_service
deleted file mode 100644
index 1bd86b8..0000000
--- a/_service
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
-
-
diff --git a/python-PyICU.changes b/python-PyICU.changes
index c641eb2..8dda715 100644
--- a/python-PyICU.changes
+++ b/python-PyICU.changes
@@ -1,3 +1,11 @@
+-------------------------------------------------------------------
+Thu Nov 1 09:00:57 UTC 2018 - Tomáš Chvátal
+
+- Version update to 2.2:
+ * Many fixes to build well with newest ICU releases
+- Drop not really needed service
+- Cleanup with spec-cleaner
+
-------------------------------------------------------------------
Wed Jan 24 09:34:53 UTC 2018 - mlin@suse.com
diff --git a/python-PyICU.spec b/python-PyICU.spec
index f79db94..13d8434 100644
--- a/python-PyICU.spec
+++ b/python-PyICU.spec
@@ -12,42 +12,32 @@
# 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/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%global modname PyICU
-
Name: python-%{modname}
-Version: 2.0.2
+Version: 2.2
Release: 0
Summary: Python Extension Wrapping the ICU C++ API
License: MIT
Group: Development/Libraries/Python
-Url: https://github.com/ovalhub/pyicu
-Source0: https://pypi.io/packages/source/P/%{modname}/%{modname}-%{version}.tar.gz
-%{?python_provide:%python_provide python-%{modname}}
+URL: https://github.com/ovalhub/pyicu
+Source0: https://files.pythonhosted.org/packages/source/P/PyICU/%{modname}-%{version}.tar.gz
BuildRequires: %{python_module devel}
+BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: gcc-c++
+BuildRequires: pkgconfig
BuildRequires: python-rpm-macros
+BuildRequires: pkgconfig(icu-i18n)
+BuildRequires: pkgconfig(icu-uc)
Provides: %{modname} = %{version}
Provides: python-ICU = %{version}
Obsoletes: python-ICU < 1.2
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
-%if 0%{?suse_version} > 1320
-BuildRequires: %{python_module pytest}
-%endif
-%if 0%{?suse_version} >= 1210
-BuildRequires: pkgconfig(icu-i18n)
-BuildRequires: pkgconfig(icu-uc)
-%else
-BuildRequires: libicu-devel
-Requires: python = %{py_ver}
-%endif
-
%python_subpackages
%description
@@ -64,23 +54,15 @@ export CFLAGS="%{optflags} -fno-strict-aliasing"
%install
%python_install
-%fdupes %{buildroot}%{_prefix}
+%python_expand %fdupes %{buildroot}%{$python_sitearch}
-%if 0%{?suse_version} > 1320
%check
# Running test on python3 only due to pyicu issue 61
-%if 0%{?have_python3}
python3 setup.py test
-%endif
-%endif
%files %{python_files}
-%defattr(-,root,root,-)
-%if 0%{?suse_version} >= 1310
-%doc CHANGES CREDITS LICENSE README.md
-%else
-%doc CHANGES CREDITS LICENSE README
-%endif
+%license LICENSE
+%doc CHANGES CREDITS README.md
%{python_sitearch}/*
%changelog