Accepting request 485763 from home:alois:branches:devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/485763 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-guessit?expand=0&rev=6
This commit is contained in:
parent
de9fede063
commit
184870a4bd
@ -1,2 +0,0 @@
|
||||
# remove warnings about modules not being executable
|
||||
addFilter("non-executable-script")
|
@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 8 08:20:07 UTC 2017 - aloisio@gmx.com
|
||||
|
||||
- Converted to single-spec
|
||||
- Switched source URL to pypi.io
|
||||
- Dropped self-generated manpage
|
||||
- Dropped python-guessit-rpmlintrc (corrected relevant files)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 15 15:18:48 UTC 2016 - aloisio@gmx.com
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-guessit
|
||||
#
|
||||
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2017 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
|
||||
@ -16,6 +16,7 @@
|
||||
#
|
||||
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-guessit
|
||||
Version: 2.1.1
|
||||
Release: 0
|
||||
@ -23,23 +24,25 @@ 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
|
||||
Source0: https://pypi.io/packages/source/g/guessit/guessit-%{version}.tar.gz
|
||||
BuildRequires: %{python_module babelfish >= 0.5.5}
|
||||
BuildRequires: %{python_module dateutil}
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module pytest-runner}
|
||||
BuildRequires: %{python_module rebulk >= 0.7.3}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
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-rpm-macros
|
||||
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
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
GuessIt is a python library that extracts as much information as
|
||||
@ -50,28 +53,28 @@ both movies and tv shows episodes.
|
||||
|
||||
%prep
|
||||
%setup -q -n guessit-%{version}
|
||||
# Remove shebang from non-executable files
|
||||
for i in {'audio_codec','bonus','cds','container','country','crc','date','edition','episodes','episode_title','film','format','__init__','language','mimetype','other','part','release_group','screen_size','streaming_service','title','type','video_codec','website'}; do
|
||||
sed -i -e "1d" "guessit/rules/properties/$i.py"
|
||||
done
|
||||
for i in {'common/comparators','common/date','common/formatters','common/__init__','common/numeral','common/validators','common/words','__init__','markers/groups','markers/__init__','markers/path','processors'}; do
|
||||
sed -i -e "1d" "guessit/rules/$i.py"
|
||||
done
|
||||
for i in {'api','backports','__init__','jsonutils','__main__','options','reutils','test/__init__','test/rules/__init__','test/rules/processors_test','test/test_api','test/test_api_unicode_literals','test/test_benchmark','test/test_main','test/test_yml','__version__','yamlutils'}; do
|
||||
sed -i -e "1d" "guessit/$i.py"
|
||||
done
|
||||
|
||||
%build
|
||||
python setup.py build
|
||||
%python_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}
|
||||
%python_install
|
||||
%python_expand %fdupes -s %%{buildroot}%{$python_sitelib}
|
||||
|
||||
%files
|
||||
%files %{python_files}
|
||||
%defattr(-,root,root,-)
|
||||
%{_bindir}/guessit
|
||||
%if 0%{?suse_version} > 1110
|
||||
%{_mandir}/man1/guessit.1.gz
|
||||
%endif
|
||||
%{python_sitelib}/*
|
||||
%python3_only %{_bindir}/guessit
|
||||
%{python_sitelib}/guessit
|
||||
%{python_sitelib}/guessit-%{version}-py%{python_version}.egg-info
|
||||
|
||||
%changelog
|
||||
|
Loading…
x
Reference in New Issue
Block a user