-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathsmtube.spec
90 lines (75 loc) · 2.32 KB
/
smtube.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
%if 0%{?suse_version}
%define dist .opensuse
%endif
Name: smtube
Version: 21.10.0
Release: 1%{?dist}
Summary: YouTube browser for SMPlayer
Group: Applications/Multimedia
License: GPL-2.0+
URL: http://www.smtube.org
Source0: http://downloads.sourceforge.net/smtube/smtube-%{version}.tar.bz2
%if 0%{?suse_version}
BuildRequires: hicolor-icon-theme
BuildRequires: libqt5-qttools-devel
%else
BuildRequires: qt5-qtbase-devel
BuildRequires: qt5-qttools-devel
%endif
BuildRequires: desktop-file-utils
BuildRequires: gcc-c++
BuildRequires: pkgconfig(Qt5Concurrent)
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5DBus)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5PrintSupport)
BuildRequires: pkgconfig(Qt5Sql)
BuildRequires: pkgconfig(Qt5WebKitWidgets)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5Xml)
Requires: smplayer
%{?_qt4_version:Requires: qt4%{?_isa} >= %{_qt4_version}}
%description
This is a YouTube browser for SMPlayer. You can browse, search
and play YouTube videos.
%global debug_package %{nil}
%prep
%setup -q
# correction for wrong-file-end-of-line-encoding
%{__sed} -i 's/\r//' *.txt
%build
make \
QMAKE=%{_bindir}/qmake-qt5 \
LRELEASE=%{_bindir}/lrelease-qt5 \
PREFIX=%{_prefix} \
DOC_PATH="\\\"%{_docdir}/%{name}/\\\""
#touch src/smtube
#touch src/translations/smtube_es.qm
%install
make PREFIX=%{_prefix} DESTDIR=%{buildroot}/ DOC_PATH=%{_docdir}/%{name}/ install
%post
touch --no-create %{_datadir}/icons/hicolor
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi
update-desktop-database &> /dev/null || :
%postun
touch --no-create %{_datadir}/icons/hicolor
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi
update-desktop-database &> /dev/null || :
%files
%defattr(-,root,root)
%{_bindir}/smtube
%{_datadir}/applications/*.desktop
%dir %{_datadir}/icons/hicolor/*/
%dir %{_datadir}/icons/hicolor/*/apps/
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%{_datadir}/smtube/
#%{_mandir}/man1/smtube.1.gz
%{_docdir}/%{name}/
%changelog
* Thu Feb 26 2016 Ricardo Villalba <[email protected]> - 16.1.0
- Initial Release