]> git.pld-linux.org Git - packages/subdownloader.git/blame - subdownloader.spec
Release 4 (by relup.sh)
[packages/subdownloader.git] / subdownloader.spec
CommitLineData
45c82fe2 1%define module subdownloader
6f279166 2Summary: Fast and Easy Subtitle Downloader
bf684be2 3Summary(pl.UTF-8): Narzędzie do automatycznego ściągania/wysyłania podpisów do plików wideo
6f915be9 4Name: subdownloader
ac0143bf 5Version: 2.1.0
4c2ff463 6Release: 4
6f279166
ER
7License: GPL v3
8Group: X11/Applications/Multimedia
5a1c2ec5
JR
9Source0: https://github.com/subdownloader/subdownloader/archive/%{version}/%{name}-%{version}.tar.gz
10# Source0-md5: 2ee94f8cb2fd1d8eb8742122273e0ae9
6f279166
ER
11Source1: %{name}.desktop
12Source2: %{name}.png
6914cc57 13# Source2-md5: de3d0cfa08b1572878cde6e3800205fa
6f279166
ER
14Source3: %{name}.sh
15# site down, and was not in distfiles
6f279166 16URL: http://www.subdownloader.net/
45c82fe2
ER
17BuildRequires: python3 >= 1:3.4
18BuildRequires: python3-PyQt5
19#BuildRequires: python3-PyQt5-devel-tools
20BuildRequires: python3-PyQt5-uic
6f915be9 21BuildRequires: rpm-pythonprov
45c82fe2 22BuildRequires: rpmbuild(macros) >= 1.714
b2864596 23Requires: desktop-file-utils
45c82fe2 24#Requires: python-mmpython
22c0d12b 25Requires: python3-PyQt5 >= 5.0.0
45c82fe2 26Requires: python3-pymediainfo
6f915be9
BZ
27BuildArch: noarch
28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
6f279166 30%define _appdir %{_datadir}/%{name}
bf2257a6 31%define _localedir %{py3_sitescriptdir}/subdownloader/client/locale
6f279166 32
6f915be9 33%description
6f279166
ER
34SubDownloader is a program for automatic download/upload subtitles for
35videofiles (DivX, MPEG, AVI, VOB, etc) and DVDs using fast hashing.
6f915be9
BZ
36
37Features:
6f915be9
BZ
38- no spyware, no adware, source code is available
39- it uses fast hashing algorithm (27 GB movies/7 seconds)
6f279166 40- recursively folders search
c15f6fba
ER
41- autodetect language of the subtitles
42- upload entire series seasons' subtitles in less than 1 minute
bf684be2
JB
43- and many more
44
45%description -l pl.UTF-8
46Subdownloader to napisane w Pythonie wolnodostępne narzędzie do
6f279166
ER
47automatycznego ściągania/wysyłania podpisów do filmów (DivX, MPEG, AVI
48itp.).
6f915be9 49
bf684be2
JB
50Cechy:
51- brak spyware, adware; dostępny kod źródłowy
52- wykorzystuje szybki algorytm haszujący (27 GB filmów/7 sekund)
53- rekurencyjne wyszukiwanie napisów z folderów divx
54- wysyłanie całych serii podpisów seriali w czasie poniżej minuty
55- automatyczne wykrywanie języka podpisów
56- i wiele więcej
6f915be9 57
6f915be9 58%prep
5a1c2ec5 59%setup -q
6f915be9 60
45c82fe2 61%{__rm} scripts/gui/rc/images/icon32.ico
fdb767be
ER
62
63%build
45c82fe2 64%py3_build
fdb767be 65
6f915be9
BZ
66%install
67rm -rf $RPM_BUILD_ROOT
45c82fe2
ER
68%py3_install
69
ef0afe6a 70install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
536ab0af
ER
71# manual was removed in https://github.com/subdownloader/subdownloader/commit/ccdc6552261060c
72#cp -p subdownloader.1 $RPM_BUILD_ROOT%{_mandir}/man1
6f279166
ER
73cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
74cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
75
45c82fe2
ER
76%{__rm} $RPM_BUILD_ROOT%{py3_sitescriptdir}/subdownloader/client/locale/subdownloader.pot
77%{__rm} $RPM_BUILD_ROOT%{py3_sitescriptdir}/subdownloader/client/locale/*/subdownloader.po
6f915be9 78
6f915be9
BZ
79%clean
80rm -rf $RPM_BUILD_ROOT
81
88c93223 82%post
b2864596 83%update_desktop_database
88c93223
ER
84
85%postun
b2864596 86%update_desktop_database
88c93223 87
93e685d9 88%files
6f915be9 89%defattr(644,root,root,755)
59eed182 90%doc ChangeLog README.md
6f279166 91%attr(755,root,root) %{_bindir}/%{name}
45c82fe2 92%if 0
6f279166 93%{_mandir}/man1/*.1*
ef0afe6a 94%endif
93d76321
ER
95%{_desktopdir}/%{name}.desktop
96%{_pixmapsdir}/%{name}.png
45c82fe2
ER
97
98%dir %{py3_sitescriptdir}/%{module}
99%{py3_sitescriptdir}/%{module}/*.py
100%{py3_sitescriptdir}/%{module}/__pycache__
101%dir %{py3_sitescriptdir}/%{module}/client
102%{py3_sitescriptdir}/%{module}/client/*.py
103%{py3_sitescriptdir}/%{module}/client/__pycache__
104%{py3_sitescriptdir}/%{module}/client/cli
105%{py3_sitescriptdir}/%{module}/client/gui
106%{py3_sitescriptdir}/%{module}/client/locale
107%{py3_sitescriptdir}/%{module}/client/modules
108%{py3_sitescriptdir}/%{module}/languages
109%{py3_sitescriptdir}/%{module}/provider
93e685d9 110%{py3_sitescriptdir}/%{module}-%{version}*-py*.egg-info
This page took 0.091976 seconds and 4 git commands to generate.