From 1d8b6bb5bae288f9397fb6c3158fa2400cfca05dda3a51fb3f7d6ec66baf1e31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20S=C3=BAkup?= Date: Mon, 13 Nov 2017 09:45:32 +0000 Subject: [PATCH] Accepting request 540720 from home:alois:branches:devel:languages:python - Update to version 0.17 - Converted to single-spec - Fixed source URL - Initial package (0.16) OBS-URL: https://build.opensuse.org/request/show/540720 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-subgrab?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++++++ .gitignore | 1 + python-subgrab.changes | 16 ++++++++++++ python-subgrab.spec | 58 ++++++++++++++++++++++++++++++++++++++++++ subgrab-0.17.zip | 3 +++ 5 files changed, 101 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-subgrab.changes create mode 100644 python-subgrab.spec create mode 100644 subgrab-0.17.zip diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.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 +*.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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-subgrab.changes b/python-subgrab.changes new file mode 100644 index 0000000..cdd3f11 --- /dev/null +++ b/python-subgrab.changes @@ -0,0 +1,16 @@ +------------------------------------------------------------------- +Sat Nov 11 10:38:23 UTC 2017 - aloisio@gmx.com + +- Update to version 0.17 + +- Converted to single-spec + +------------------------------------------------------------------- +Sat Sep 23 13:37:05 UTC 2017 - aloisio@gmx.com + +- Fixed source URL + +------------------------------------------------------------------- +Sat Sep 16 17:41:03 UTC 2017 - aloisio@gmx.com + +- Initial package (0.16) diff --git a/python-subgrab.spec b/python-subgrab.spec new file mode 100644 index 0000000..f4d59c9 --- /dev/null +++ b/python-subgrab.spec @@ -0,0 +1,58 @@ +# +# spec file for package python-subgrab +# +# 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 +# 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/ +# + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-subgrab +Version: 0.17 +Release: 0 +Summary: Script to download subtitles for media files +License: GPL-3.0 +Group: Development/Languages/Python +URL: https://github.com/RafayGhafoor/Subscene-Subtitle-Grabber +Source: https://files.pythonhosted.org/packages/source/s/subgrab/subgrab-%{version}.zip +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: unzip +Requires: python-beautifulsoup4 +Requires: python-lxml +Requires: python-requests +BuildArch: noarch +%python_subpackages + +%description +A script that allows to download subtitles for TV-Series, Anime and Movies from +subscene and other sites. + +%prep +%setup -q -n subgrab-%{version} +rm -rf subgrab.egg-info +sed -i 's/bs4/beautifulsoup4/g' setup.py + +%build +%python_build + +%install +%python_install +%python_expand %fdupes -s %{buildroot}/%{$python_sitelib} + +%files %{python_files} +%python3_only %{_bindir}/subgrab +%{python_sitelib}/* + +%changelog diff --git a/subgrab-0.17.zip b/subgrab-0.17.zip new file mode 100644 index 0000000..cfeb3e1 --- /dev/null +++ b/subgrab-0.17.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1f9a11f17c39f98a2da7f7cd36b4b6d24b7f15095c9f713351b6a960ef0a5b38 +size 18939