14
0
Files
python-guessit/python-guessit.spec

60 lines
2.0 KiB
RPMSpec

#
# spec file for package python-guessit
#
# Copyright (c) 2015 SUSE LINUX Products 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: 0.10.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: dos2unix
BuildRequires: python-setuptools
BuildRequires: python-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} > 1110
BuildArch: noarch
%endif
%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
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}
%files
%defattr(-,root,root,-)
%{_bindir}/guessit
%{python_sitelib}/*
%changelog