14
0

- Replace %fdupes -s with plain %fdupes; hardlinks are better.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-subliminal?expand=0&rev=13
This commit is contained in:
2019-10-14 14:44:02 +00:00
committed by Git OBS Bridge
parent c8fd949bbe
commit b7dbe64a62
2 changed files with 28 additions and 25 deletions

View File

@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Oct 14 14:43:50 UTC 2019 - Matej Cepl <mcepl@suse.com>
- Replace %fdupes -s with plain %fdupes; hardlinks are better.
-------------------------------------------------------------------
Thu Jul 13 12:29:04 UTC 2017 - aloisio@gmx.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-subliminal
#
# Copyright (c) 2017 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,7 +12,7 @@
# 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/
#
@@ -23,11 +23,12 @@ Version: 2.0.5
Release: 0
Summary: Python library to search and download subtitles
License: MIT
Group: Development/Languages/Python
Url: https://github.com/Diaoul/subliminal
URL: https://github.com/Diaoul/subliminal
Source: https://files.pythonhosted.org/packages/source/s/subliminal/subliminal-%{version}.tar.gz
# find a way to generate this
Source1: subliminal.1
# stevedore is not yet unified
BuildRequires: %{oldpython}-stevedore >= 1.6.0
BuildRequires: %{python_module Sphinx}
BuildRequires: %{python_module babelfish >= 0.5.4}
BuildRequires: %{python_module beautifulsoup4 >= 4.4.0}
@@ -41,29 +42,15 @@ BuildRequires: %{python_module pyxdg >= 0.25}
BuildRequires: %{python_module requests >= 2.7.0}
BuildRequires: %{python_module setuptools >= 18.0.1}
BuildRequires: %{python_module six >= 1.9.0}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python2-guessit >= 2.0.1
BuildRequires: python2-html5lib >= 0.999999
BuildRequires: python2-pbr >= 1.3.0
BuildRequires: python2-python-dateutil >= 2.2
BuildRequires: python2-rarfile >= 2.7
BuildRequires: python3-appdirs >= 1.3
# stevedore is not yet unified
BuildRequires: %{oldpython}-stevedore >= 1.6.0
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: python3-stevedore >= 1.6.0
%ifpython2
Requires: python-futures >= 3.0
Requires: python-html5lib >= 0.999999
Requires: python-pbr >= 1.3.0
Requires: python-python-dateutil >= 2.2
# Stevedore is not yet unified
Requires: %{oldpython}-stevedore >= 1.6.0
%endif
%ifpython3
Requires: python-dbm
Requires: python3-stevedore >= 1.6.0
%endif
Requires: python-appdirs >= 1.3
Requires: python-babelfish >= 0.5.4
Requires: python-beautifulsoup4 >= 4.4.0
@@ -79,8 +66,19 @@ Requires: python-rarfile >= 2.7
Requires: python-requests >= 2.7.0
Requires: python-six >= 1.9.0
Recommends: python-colorlog >= 2.6.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%ifpython2
# Stevedore is not yet unified
Requires: %{oldpython}-stevedore >= 1.6.0
Requires: python-futures >= 3.0
Requires: python-html5lib >= 0.999999
Requires: python-pbr >= 1.3.0
Requires: python-python-dateutil >= 2.2
%endif
%ifpython3
Requires: python-dbm
Requires: python3-stevedore >= 1.6.0
%endif
%ifpython3
Provides: subliminal = %{version}
Obsoletes: subliminal < %{version}
@@ -92,7 +90,7 @@ Subliminal is a python library to search and download subtitles.
It comes with an easy to use CLI suitable for direct use or cron jobs.
%prep
%setup -n subliminal-%{version}
%setup -q -n subliminal-%{version}
%build
%python_build
@@ -101,11 +99,11 @@ It comes with an easy to use CLI suitable for direct use or cron jobs.
%python_install
mkdir -p %{buildroot}/%{_mandir}/man1
install -m 644 %{SOURCE1} -t %{buildroot}/%{_mandir}/man1
%python_expand %fdupes -s %{buildroot}%{$python_sitelib}
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%defattr(-,root,root)
%doc HISTORY.rst LICENSE README.rst
%license LICENSE
%doc HISTORY.rst README.rst
%python3_only %{_bindir}/subliminal
%python3_only %{_mandir}/man1/subliminal.1%{ext_man}
%{python_sitelib}/subliminal