]> git.pld-linux.org Git - packages/smplayer.git/blob - smplayer.spec
e15495ba495cb160a7d2d25ce09b18b53deeb5da
[packages/smplayer.git] / smplayer.spec
1 # TODO
2 # - switch to qt5
3 %define         qtver   4.3.3-3
4 %define         smver   14.8.0
5 Summary:        smplayer - mplayer frontend
6 Summary(pl.UTF-8):      smplayer - nakładka na mplayera
7 Name:           smplayer
8 Version:        16.8.0
9 Release:        1
10 License:        GPL
11 Group:          X11/Applications
12 Source0:        http://downloads.sourceforge.net/smplayer/%{name}-%{version}.tar.bz2
13 # Source0-md5:  48b001b6c00e5495be4316c9e1589d11
14 URL:            http://smplayer.sourceforge.net/
15 BuildRequires:  QtCore-devel
16 BuildRequires:  QtDBus-devel
17 BuildRequires:  QtGui-devel
18 BuildRequires:  QtNetwork-devel
19 BuildRequires:  QtScript-devel
20 BuildRequires:  QtXml-devel
21 BuildRequires:  qt4-build >= %{qtver}
22 BuildRequires:  qt4-linguist >= %{qtver}
23 BuildRequires:  qt4-qmake >= %{qtver}
24 BuildRequires:  rpmbuild(find_lang) >= 1.37
25 BuildRequires:  rpmbuild(macros) >= 1.596
26 Requires:       desktop-file-utils
27 Requires:       gtk-update-icon-cache
28 Requires:       hicolor-icon-theme
29 Requires:       mplayer >= 3:1.0-5.rc2_svn27725.17
30 Suggests:       smtube
31 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33 %description
34 SMPlayer intends to be a complete front-end for MPlayer, from basic
35 features like playing videos, DVDs, and VCDs to more advanced features
36 like support for MPlayer filters and more.
37
38 One of the most interesting features of SMPlayer: it remembers the
39 settings of all files you play. So you start to watch a movie but you
40 have to leave... don't worry, when you open that movie again it will
41 resume at the same point you left it, and with the same settings:
42 audio track, subtitles, volume...
43
44 %description -l pl.UTF-8
45 SMPlayer stara się być kompletną nakładką na MPlayera, począwszy od
46 podstawowych funkcji jak odtwarzanie plików video, DVD i VCD kończąc
47 na bardziej zaawansowanych opcjach jak obsługa filtrów MPlayera oraz
48 wiele więcej.
49
50 Jedną z najciekawszych funkcji SMPlayera jest to, że zapamiętuje
51 ustawienia wszystkich plików jakie odgrywasz. Zaczynasz oglądać film,
52 ale musisz wyjść... nie martw się, kiedy odtworzysz film ponownie
53 zacznie od momentu, w którym go wyłączyłeś i z tymi samymi
54 ustawieniami jak: ścieżka dźwiękowa, napisy, głośność...
55
56 %prep
57 %setup -q
58
59 # skip docs install
60 %{__sed} -i -e '/DOC_PATH/d' Makefile src/smplayer.pro
61
62 # skip manpage compress
63 %{__sed} -i -e '/gzip/d' Makefile
64
65 # skip build rule on install
66 %{__sed} -i -e 's,install: src/smplayer,install:,' Makefile
67
68 # disable debug on console on unix too
69 %{__sed} -i -e '/NO_DEBUG_ON_CONSOLE/s,#DEFINES,DEFINES,' src/smplayer.pro
70
71 %build
72 %{__make} \
73         PREFIX=%{_prefix} \
74         QMAKE=qmake-qt4 \
75         LRELEASE=lrelease-qt4
76
77 %install
78 rm -rf $RPM_BUILD_ROOT
79 install -d $RPM_BUILD_ROOT%{_datadir}/smplayer/themes
80 %{__make} install \
81         PREFIX=%{_prefix} \
82         DESTDIR=$RPM_BUILD_ROOT
83
84 %find_lang %{name} --with-qm
85
86 %clean
87 rm -rf $RPM_BUILD_ROOT
88
89 %post
90 %update_desktop_database
91 %update_icon_cache hicolor
92
93 %postun
94 %update_desktop_database
95 %update_icon_cache hicolor
96
97 %files -f %{name}.lang
98 %defattr(644,root,root,755)
99 %doc Changelog Not_so_obvious_things.txt Readme.txt Release_notes.txt
100 %attr(755,root,root) %{_bindir}/smplayer
101 %{_mandir}/man1/smplayer.1*
102 %{_desktopdir}/smplayer.desktop
103 %{_desktopdir}/smplayer_enqueue.desktop
104 %{_iconsdir}/hicolor/*/apps/smplayer.png
105 %{_iconsdir}/hicolor/*/apps/smplayer.svg
106 %dir %{_datadir}/smplayer
107 %{_datadir}/smplayer/input.conf
108 %dir %{_datadir}/smplayer/shortcuts
109 %{_datadir}/smplayer/shortcuts/default.keys
110 %{_datadir}/smplayer/shortcuts/euskara.keys
111 %{_datadir}/smplayer/shortcuts/vlc.keys
112 %dir %{_datadir}/smplayer/themes
113 %dir %{_datadir}/smplayer/translations
This page took 0.795292 seconds and 2 git commands to generate.