14
0

Accepting request 391746 from home:alois:branches:devel:languages:python

Update to 2.0.5

OBS-URL: https://build.opensuse.org/request/show/391746
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-guessit?expand=0&rev=3
This commit is contained in:
2016-05-06 07:27:26 +00:00
committed by Git OBS Bridge
parent 5e5456e02c
commit 6229bef09f
4 changed files with 96 additions and 10 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-guessit
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2016 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,7 +17,7 @@
Name: python-guessit
Version: 0.10.3
Version: 2.0.5
Release: 0
Summary: GuessIt - a library for guessing information from video files
License: LGPL-3.0
@@ -25,13 +25,21 @@ Group: Development/Languages/Python
Url: https://github.com/wackou/guessit
Source0: https://pypi.python.org/packages/source/g/guessit/guessit-%{version}.tar.gz
Source1: python-guessit-rpmlintrc
BuildRequires: dos2unix
BuildRequires: fdupes
BuildRequires: python-babelfish >= 0.5.5
BuildRequires: python-dateutil
BuildRequires: python-devel
BuildRequires: python-pytest-runner
BuildRequires: python-rebulk >= 0.7.0
BuildRequires: python-setuptools
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} > 1110
BuildArch: noarch
BuildRequires: help2man
%endif
Requires: python-babelfish >= 0.5.5
Requires: python-dateutil < 2.5.2
Requires: python-rebulk >= 0.7.1
%description
GuessIt is a python library that extracts as much information as
@@ -45,16 +53,25 @@ both movies and tv shows episodes.
%build
python setup.py build
dos2unix -c ascii build/lib/guessit/test/test_main.py
dos2unix -c ascii build/lib/guessit/test/test_api.py
dos2unix -c ascii build/lib/guessit/test/__main__.py
%install
python setup.py install --prefix=%{_prefix} --root %{buildroot}
%if 0%{?suse_version} > 1110
help2man -s 1 -N -n "A utility for guessing information from video files" \
--version-string="%{version}" -o guessit.1 \
"PYTHONPATH=%{buildroot}%{python_sitelib} python %{buildroot}%{_bindir}/guessit"
mkdir -p %{buildroot}%{_mandir}/man1
gzip guessit.1
install -m 0644 guessit.1.gz %{buildroot}%{_mandir}/man1
%endif
%fdupes -s %{buildroot}
%files
%defattr(-,root,root,-)
%{_bindir}/guessit
%if 0%{?suse_version} > 1110
%{_mandir}/man1/guessit.1.gz
%endif
%{python_sitelib}/*
%changelog