17
0

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

Updated to 2.0rc1 and renamed.

OBS-URL: https://build.opensuse.org/request/show/391747
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-subliminal?expand=0&rev=1
This commit is contained in:
2016-04-26 22:12:17 +00:00
committed by Git OBS Bridge
commit b2fbf023ff
7 changed files with 308 additions and 0 deletions

24
.gitattributes vendored Normal file
View File

@@ -0,0 +1,24 @@
*.changes merge=merge-changes
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tar filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

4
.gitignore vendored Normal file
View File

@@ -0,0 +1,4 @@
*.obscpio
*.osc
_build.*
.pbuild

View File

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

82
python-subliminal.changes Normal file
View File

@@ -0,0 +1,82 @@
-------------------------------------------------------------------
Tue Apr 26 09:39:34 UTC 2016 - aloisio@gmx.com
- Update to version 2.0rc1
- Dropped nautilus extension because it's no longer supplied
- Package renamed to python-subliminal in accordance
with SUSE naming policy
-------------------------------------------------------------------
Fri Feb 26 13:16:24 UTC 2016 - tbechtold@suse.com
- Require python-python-dateutil. package was renamed
-------------------------------------------------------------------
Wed Jan 20 10:30:20 UTC 2016 - aloisio@gmx.com
- Added requirement for python-ndg-httpsclient to address
security problem with urllib3 and python < 2.7.9
-------------------------------------------------------------------
Sun Jan 3 18:24:41 UTC 2016 - aloisio@gmx.com
- Update to 1.1.1
* Fix scanning videos on bad MKV files
version 1.1
* Fix library usage example in README
* Fix for series name with special characters in addic7ed provider
* Fix id property in thesubdb provider
* Improve matching on titles
* Add support for nautilus context menu with translations
* Add support for searching subtitles in a separate directory
* Add subscenter provider
* Add support for python 3.5
- Removed subliminal-unicode_literals.patch included upstream
- Added nautilus integration script
-------------------------------------------------------------------
Thu Dec 10 11:40:18 UTC 2015 - aloisio@gmx.com
- Backported commit 79fb044 (fixes #495) as
subliminal-unicode_literals.patch
* Prevents warnings related to click 5 and newer
-------------------------------------------------------------------
Sat Jul 25 08:44:07 UTC 2015 - aloisio@gmx.com
- Update to version 1.0.1
* Fix unicode issues in CLI (python 2 only)
* Fix score scaling in CLI (python 2 only)
* Improve error handling in CLI
* Color collect report in CLI
version 1.0:
* Many changes and fixes
* New test suite
* New documentation
* New CLI
- Added manpage
- Package now depends on python-click, python-pbr and python-six
- Added all Requires also as BuildRequires and aligned their
versions with PyPI
-------------------------------------------------------------------
Fri May 22 18:35:15 UTC 2015 - aloisio@gmx.com
- Update to current git version
* Fix podnapisi provider
- Fixed build problem
-------------------------------------------------------------------
Thu Feb 26 12:18:19 UTC 2015 - p.drouand@gmail.com
- Fix Group
- Fix dependencies
-------------------------------------------------------------------
Tue Feb 10 21:28:28 UTC 2015 - aloisio@gmx.com
- Initial version 0.8.0_dev

105
python-subliminal.spec Normal file
View File

@@ -0,0 +1,105 @@
#
# spec file for package python-subliminal
#
# 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-subliminal
Version: 2.0rc1
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
BuildRequires: fdupes
BuildRequires: python-argparse >= 1.3.0
BuildRequires: python-babelfish >= 0.5.4
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-enzyme >= 0.4.1
BuildRequires: python-guessit >= 2.0.1
BuildRequires: python-html5lib >= 0.999999
BuildRequires: python-pbr >= 1.3.0
BuildRequires: python-pysrt >= 1.0.1
BuildRequires: python-python-dateutil >= 2.2
BuildRequires: python-requests >= 2.7.0
BuildRequires: python-setuptools >= 18.0.1
BuildRequires: python-six >= 1.9.0
BuildRequires: python-stevedore >= 1.6.0
BuildRequires: python-xdg >= 0.25
Requires: python-appdirs >= 1.3
Requires: python-argparse >= 1.3.0
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-enzyme >= 0.4.1
Requires: python-guessit >= 2.0.1
Requires: python-html5lib >= 0.999999
Requires: python-python-dateutil >= 2.2
%if 0%{?suse_version} <= 1320 && 0%{?is_opensuse} == 0
Requires: python-ndg-httpsclient
%endif
Requires: python-pbr >= 1.3.0
Requires: python-pysrt >= 1.0.1
Requires: python-rarfile >= 2.7
Requires: python-requests >= 2.7.0
Requires: python-six >= 1.9.0
Requires: python-stevedore >= 1.6.0
Requires: python-xdg >= 0.25
Recommends: python-colorlog >= 2.6.0
Conflicts: subliminal
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} > 1110
BuildArch: noarch
%endif
%description
Subliminal is a python library to search and download subtitles.
It comes with an easy to use CLI suitable for direct use or cron jobs.
%prep
%setup -n subliminal-%{version}
%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
%fdupes -s %{buildroot}
%files
%defattr(-,root,root)
%doc HISTORY.rst LICENSE README.rst
%{_bindir}/subliminal
%{_mandir}/man1/subliminal.1.gz
%dir %{python_sitelib}/subliminal
%{python_sitelib}/subliminal/*
%{python_sitelib}/subliminal-%{version}-py%{py_ver}.egg-info
%changelog

3
subliminal-2.0rc1.tar.gz Normal file
View File

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

86
subliminal_mansource.rst Normal file
View File

@@ -0,0 +1,86 @@
==========
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.