diff --git a/PyAV-6.1.2.obscpio b/PyAV-6.1.2.obscpio
deleted file mode 100644
index 26414e2..0000000
--- a/PyAV-6.1.2.obscpio
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:3dd84d6ab8a7cd8a6706ca850057023674db7b112f53df29aadf42a80879dde3
-size 705548
diff --git a/PyAV.obsinfo b/PyAV.obsinfo
deleted file mode 100644
index 11ace9c..0000000
--- a/PyAV.obsinfo
+++ /dev/null
@@ -1,5 +0,0 @@
-name: PyAV
-version: 6.1.2
-mtime: 1548280799
-commit: dce21c7c8c25a8bc8dfaecd5f59b1e1d56801b74
-
diff --git a/_service b/_service
deleted file mode 100644
index 0b1ec60..0000000
--- a/_service
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
- https://github.com/mikeboers/PyAV.git
- git
- dce21c7c8c25a8bc8dfaecd5f59b1e1d56801b74
- 6.1.2
-
-
-
-
-
- *.tar
- xz
-
-
diff --git a/av-6.1.2.tar.gz b/av-6.1.2.tar.gz
new file mode 100644
index 0000000..2de1f94
--- /dev/null
+++ b/av-6.1.2.tar.gz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:eebbb56eeae650b1fc551f94d51aee39b487bf4df73c39daea186c5d2950650f
+size 2093503
diff --git a/python-av.changes b/python-av.changes
index 537417c..c0245da 100644
--- a/python-av.changes
+++ b/python-av.changes
@@ -1,3 +1,9 @@
+-------------------------------------------------------------------
+Tue Apr 16 10:10:03 UTC 2019 - Tomáš Chvátal
+
+- Fix the spec file to adhere requirements
+- Do not use service and fetch files from pypi
+
-------------------------------------------------------------------
Sun Apr 14 18:55:53 UTC 2019 - Antonio Larrosa
diff --git a/python-av.spec b/python-av.spec
index 0efc9fc..1c9f1c3 100644
--- a/python-av.spec
+++ b/python-av.spec
@@ -1,7 +1,7 @@
#
-# spec file for package python-attrs
+# spec file for package python-av
#
-# 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
@@ -12,42 +12,38 @@
# 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-%{**}}
-
Name: python-av
Version: 6.1.2
Release: 0
Summary: Python bindings for FFmpeg's libraries
License: BSD-3-Clause
Group: Development/Languages/Python
-Url: https://github.com/mikeboers/PyAV
-Source: PyAV-%{version}.tar.xz
-BuildRequires: %{python_module devel}
-BuildRequires: %{python_module setuptools}
+URL: https://github.com/mikeboers/PyAV
+Source: https://files.pythonhosted.org/packages/source/a/av/av-%{version}.tar.gz
BuildRequires: %{python_module Cython}
+BuildRequires: %{python_module devel}
+BuildRequires: %{python_module nose}
+BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
-BuildRequires: ffmpeg-4-libavdevice-devel
-BuildRequires: ffmpeg-4-libavfilter-devel
-BuildRequires: ffmpeg-4-libavutil-devel
-#BuildRequires: pkg-config
+BuildRequires: pkgconfig
BuildRequires: python-rpm-macros
-%if 0%{?suse_version} < 1500
-ExcludeArch: i586
-%endif
-
+BuildRequires: pkgconfig(libavdevice)
+BuildRequires: pkgconfig(libavfilter)
+BuildRequires: pkgconfig(libavutil)
+Requires: python-setuptools
+BuildRequires: %{python_module numpy}
%python_subpackages
%description
Pythonic bindings for FFmpeg's libraries.
-http://docs.mikeboers.com/pyav/develop/
-
%prep
-%setup -q -n PyAV-%{version}
+%setup -q -n av-%{version}
%build
%python_build
@@ -57,12 +53,16 @@ http://docs.mikeboers.com/pyav/develop/
rm -Rf %{buildroot}%{python2_sitearch}/scratchpad
mkdir -p %{buildroot}%{_datadir}/python3-av
mv %{buildroot}%{python3_sitearch}/scratchpad %{buildroot}%{_datadir}/python3-av
-%fdupes %{buildroot}%{_prefix}
+%python_expand %fdupes %{buildroot}%{$python_sitearch}
+
+%check
+# Sadly needs full ffmpeg with all the codec support so we have to skip
+#%%python_exec setup.py test
%files %{python_files}
%license LICENSE.txt
-%doc README.md CHANGELOG.rst AUTHORS.rst
-%python3_only %_bindir/pyav
+%doc README.md
+%python3_only %{_bindir}/pyav
%python3_only %{_datadir}/python3-av
%{python_sitearch}/av
%{python_sitearch}/av-%{version}-py%{py_ver}.egg-info