# # spec file for package python-guessit # # 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 # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # 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/ # Name: python-guessit Version: 2.1.1 Release: 0 Summary: GuessIt - a library for guessing information from video files License: LGPL-3.0 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: fdupes BuildRequires: python-babelfish >= 0.5.5 BuildRequires: python-dateutil BuildRequires: python-devel BuildRequires: python-pytest-runner BuildRequires: python-rebulk >= 0.7.3 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 Requires: python-rebulk >= 0.7.3 %description GuessIt is a python library that extracts as much information as possible from a video file. It has a very powerful filename matcher that allows to guess a lot of metadata from a video using its filename only. This matcher works with both movies and tv shows episodes. %prep %setup -q -n guessit-%{version} %build python setup.py build %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