]>
Commit | Line | Data |
---|---|---|
45c82fe2 | 1 | %define module subdownloader |
6f279166 | 2 | Summary: Fast and Easy Subtitle Downloader |
bf684be2 | 3 | Summary(pl.UTF-8): Narzędzie do automatycznego ściągania/wysyłania podpisów do plików wideo |
6f915be9 | 4 | Name: subdownloader |
ac0143bf | 5 | Version: 2.1.0 |
4c2ff463 | 6 | Release: 4 |
6f279166 ER |
7 | License: GPL v3 |
8 | Group: X11/Applications/Multimedia | |
5a1c2ec5 JR |
9 | Source0: https://github.com/subdownloader/subdownloader/archive/%{version}/%{name}-%{version}.tar.gz |
10 | # Source0-md5: 2ee94f8cb2fd1d8eb8742122273e0ae9 | |
6f279166 ER |
11 | Source1: %{name}.desktop |
12 | Source2: %{name}.png | |
6914cc57 | 13 | # Source2-md5: de3d0cfa08b1572878cde6e3800205fa |
6f279166 ER |
14 | Source3: %{name}.sh |
15 | # site down, and was not in distfiles | |
6f279166 | 16 | URL: http://www.subdownloader.net/ |
45c82fe2 ER |
17 | BuildRequires: python3 >= 1:3.4 |
18 | BuildRequires: python3-PyQt5 | |
19 | #BuildRequires: python3-PyQt5-devel-tools | |
20 | BuildRequires: python3-PyQt5-uic | |
6f915be9 | 21 | BuildRequires: rpm-pythonprov |
45c82fe2 | 22 | BuildRequires: rpmbuild(macros) >= 1.714 |
b2864596 | 23 | Requires: desktop-file-utils |
45c82fe2 | 24 | #Requires: python-mmpython |
22c0d12b | 25 | Requires: python3-PyQt5 >= 5.0.0 |
45c82fe2 | 26 | Requires: python3-pymediainfo |
6f915be9 BZ |
27 | BuildArch: noarch |
28 | BuildRoot: %{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 |
34 | SubDownloader is a program for automatic download/upload subtitles for |
35 | videofiles (DivX, MPEG, AVI, VOB, etc) and DVDs using fast hashing. | |
6f915be9 BZ |
36 | |
37 | Features: | |
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 | |
46 | Subdownloader to napisane w Pythonie wolnodostępne narzędzie do | |
6f279166 ER |
47 | automatycznego ściągania/wysyłania podpisów do filmów (DivX, MPEG, AVI |
48 | itp.). | |
6f915be9 | 49 | |
bf684be2 JB |
50 | Cechy: |
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 |
67 | rm -rf $RPM_BUILD_ROOT | |
45c82fe2 ER |
68 | %py3_install |
69 | ||
ef0afe6a | 70 | install -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 |
73 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir} |
74 | cp -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 |
80 | rm -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 |