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