14
0

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

Update to version 2.0.3

OBS-URL: https://build.opensuse.org/request/show/401232
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-subliminal?expand=0&rev=4
This commit is contained in:
2016-06-13 21:32:59 +00:00
committed by Git OBS Bridge
parent e7d7cc4d15
commit 7c78de3b71
7 changed files with 2550 additions and 103 deletions

View File

@@ -1,4 +0,0 @@
# remove warnings about modules not being executable
addFilter("script-without-shebang.*nautilus.py")
addFilter("python-naming-policy-not-applied")

View File

@@ -1,3 +1,32 @@
-------------------------------------------------------------------
Fri Jun 10 19:13:06 UTC 2016 - aloisio@gmx.com
- Update to version 2.0.3
* Fix clearing cache in CLI
version 2.0.2
* Fix for dogpile.cache>=0.6.0
* Fix missing sphinx_rtd_theme dependency
version 2.0.1
* Fix beautifulsoup4 minimal requirement
version 2.0.0
* Add refiners to enrich videos with information from
metadata, tvdb and omdb
* Add asynchronous provider search for faster searches
* Add registrable managers so subliminal can run without
install
* Add archive support
* Add the ability to customize scoring logic
* Add an age argument to scan_videos for faster scanning
* Add legendas.tv provider
* Add shooter.cn provider
* Improve matching and scoring
* Improve documentation
* Split nautilus integration into its own project
- Added auto-generated manfile
- Set up update-alternatives
-------------------------------------------------------------------
Wed Apr 27 18:05:45 UTC 2016 - aloisio@gmx.com

View File

@@ -16,25 +16,25 @@
#
%define subliminal_priority 30
Name: python-subliminal
Version: 2.0rc1
Version: 2.0.3
Release: 0
Summary: Python library to search and download subtitles
License: MIT
Group: Development/Languages/Python
Url: https://github.com/Diaoul/subliminal
Source0: http://pypi.python.org/packages/source/s/subliminal/subliminal-%{version}.tar.gz
Source1: subliminal_mansource.rst
Source2: %{name}-rpmlintrc
Source1: subliminal.1
BuildRequires: fdupes
BuildRequires: python-argparse >= 1.3.0
BuildRequires: python-babelfish >= 0.5.4
BuildRequires: python-babelfish >= 0.5.5
BuildRequires: python-beautifulsoup4 >= 4.4.0
BuildRequires: python-chardet >= 2.3.0
BuildRequires: python-click >= 4.1
BuildRequires: python-devel >= 2.7
BuildRequires: python-docutils >= 0.12
BuildRequires: python-dogpile.cache >= 0.5.6
BuildRequires: python-dogpile.cache >= 0.6.0
BuildRequires: python-enzyme >= 0.4.1
BuildRequires: python-guessit >= 2.0.1
BuildRequires: python-html5lib >= 0.999999
@@ -52,7 +52,7 @@ Requires: python-babelfish >= 0.5.4
Requires: python-beautifulsoup4 >= 4.4.0
Requires: python-chardet >= 2.3.0
Requires: python-click >= 4.1
Requires: python-dogpile.cache >= 0.5.6
Requires: python-dogpile.cache >= 0.6.0
Requires: python-enzyme >= 0.4.1
Requires: python-futures >= 3.0
Requires: python-guessit >= 2.0.1
@@ -69,6 +69,8 @@ Requires: python-six >= 1.9.0
Requires: python-stevedore >= 1.6.0
Requires: python-xdg >= 0.25
Recommends: python-colorlog >= 2.6.0
Requires(post): update-alternatives
Requires(postun): update-alternatives
Conflicts: subliminal
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} > 1110
@@ -83,24 +85,47 @@ It comes with an easy to use CLI suitable for direct use or cron jobs.
%prep
%setup -n subliminal-%{version}
# set the exe name
sed -e 's/subliminal = subliminal.cli:subliminal/subliminal-%{py_ver} = subliminal.cli:subliminal/' -i setup.py
gzip < %{SOURCE1} > subliminal-%{py_ver}.1.gz
%build
python setup.py build
rst2man %{SOURCE1} subliminal.1 >/dev/null
gzip subliminal.1
%install
python setup.py install --skip-build --prefix=%{_prefix} --root=%{buildroot}
mkdir -p %{buildroot}/%{_docdir}/%{name}
mkdir -p %{buildroot}/%{_mandir}/man1
install -m 644 subliminal.1.gz -t %{buildroot}/%{_mandir}/man1
install -m 644 subliminal-%{py_ver}.1.gz -t %{buildroot}/%{_mandir}/man1
# Setup update-alternatives
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
touch %{buildroot}%{_sysconfdir}/alternatives/subliminal
touch %{buildroot}%{_sysconfdir}/alternatives/subliminal.1.gz
ln -s -f %{_sysconfdir}/alternatives/subliminal %{buildroot}%{_bindir}/subliminal
ln -s -f %{_sysconfdir}/alternatives/subliminal.1.gz %{buildroot}%{_mandir}/man1/subliminal.1.gz
%fdupes -s %{buildroot}
%post
update-alternatives \
--install %{_bindir}/subliminal subliminal %{_bindir}/subliminal-%{py_ver} \
%{subliminal_priority} \
--slave %{_mandir}/man1/subliminal.1.gz subliminal.1.gz %{_mandir}/man1/subliminal-%{py_ver}.1.gz
%postun
# Note: we don't use "$1 -eq 0", to avoid issues if the package gets renamed
if [ ! -f %{_bindir}/subliminal-%{py_ver} ]; then
update-alternatives --remove subliminal %{_bindir}/subliminal-%{py_ver}
fi
%files
%defattr(-,root,root)
%doc HISTORY.rst LICENSE README.rst
%{_bindir}/subliminal
%{_bindir}/subliminal-%{py_ver}
%ghost %{_sysconfdir}/alternatives/subliminal
%{_mandir}/man1/subliminal.1.gz
%{_mandir}/man1/subliminal-%{py_ver}.1.gz
%ghost %{_sysconfdir}/alternatives/subliminal.1.gz
%dir %{python_sitelib}/subliminal
%{python_sitelib}/subliminal/*
%{python_sitelib}/subliminal-%{version}-py%{py_ver}.egg-info

3
subliminal-2.0.3.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d06cfedab43aa8eec27d2dc89efcd8a5a759ada7087dea95a21999e169d9d8e2
size 50544

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:423b4a5f0dfa0abb2edb17032466f786cc9572f701551fbc73107228be8bc92f
size 47843

2483
subliminal.1 Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,86 +0,0 @@
==========
subliminal
==========
-------------------
subtitle downloader
-------------------
:Author: Antoine Bertin <diaoulael@gmail.com>
:Date: 2016-03-31
:Copyright: Copyright © 2016 Antoine Bertin, MIT licensed.
:Version: 2.0rc1
:Manual section: 1
:Manual group: User Commands
SYNOPSIS
========
**subliminal** [OPTIONS] COMMAND [ARGS]...
DESCRIPTION
===========
Subtitles, faster than your thoughts.
OPTIONS
=======
--addic7ed USERNAME PASSWORD
Addic7ed configuration.
--opensubtitles USERNAME PASSWORD
OpenSubtitles configuration.
--subscenter USERNAME PASSWORD
SubsCenter configuration.
--cache-dir DIRECTORY
Path to the cache directory. [default: ~/.config/subliminal]
--debug
Print useful information for debugging subliminal and for reporting bugs.
--version Show the version and exit.
--help Show this message and exit.
DOWNLOAD
========
**subliminal** download [OPTIONS] PATH...
PATH can be a directory containing videos, a video file path or a video file name. It can be used multiple times.
If an existing subtitle is detected (external or embedded) in the correct language, the download is skipped for the associated video.
options
-------
-l, --language LANGUAGE
Language as IETF code, e.g. en, pt-BR (can be used multiple times).
[required]
-p, --provider [addic7ed|napiprojekt|opensubtitles|podnapisi|subscenter|thesubdb|tvsubtitles]
Provider to use (can be used multiple times).
-a, --age AGE Filter videos newer than AGE, e.g. 12h, 1w2d.
-d, --directory DIR Directory where to save subtitles, default is next to the video file.
-e, --encoding ENC Subtitle file encoding, default is to preserve original encoding.
-s, --single Save subtitle without language code in the file name, i.e. use .srt extension.
-f, --force Force download even if a subtitle already exist.
-hi, --hearing-impaired
Prefer hearing impaired subtitles.
-m, --min-score INTEGER RANGE
Minimum score for a subtitle to be downloaded (0 to 100).
-v, --verbose Increase verbosity.
--help Show this message and exit.
CACHE
=====
**subliminal** cache [OPTIONS]
options
-------
--clear-subliminal
Clear subliminal's cache. Use this ONLY if your cache is corrupted or if you experience issues.
--help Show this message and exit.