1 | Name: smplayer
|
---|
2 | Version: 17.1.0
|
---|
3 | %global smplayer_themes_ver 16.8.0
|
---|
4 | %global smplayer_skins_ver 15.2.0
|
---|
5 | %global webfs_ver 1.21
|
---|
6 | Release: 1%{?dist}
|
---|
7 | Summary: A great media player
|
---|
8 |
|
---|
9 | Group: Applications/Multimedia
|
---|
10 | License: GPL-2.0+
|
---|
11 | URL: http://smplayer.sourceforge.net/
|
---|
12 | Source0: http://downloads.sourceforge.net/smplayer/smplayer-%{version}.tar.bz2
|
---|
13 | Source3: http://downloads.sourceforge.net/smplayer/smplayer-themes-%{smplayer_themes_ver}.tar.bz2
|
---|
14 | Source4: http://downloads.sourceforge.net/smplayer/smplayer-skins-%{smplayer_skins_ver}.tar.bz2
|
---|
15 | Source5: https://www.kraxel.org/releases/webfs/webfs-%{webfs_ver}.tar.gz
|
---|
16 |
|
---|
17 | %if 0%{?suse_version}
|
---|
18 | BuildRequires: hicolor-icon-theme
|
---|
19 | BuildRequires: libqt5-qttools-devel
|
---|
20 | BuildRequires: libQt5Gui-private-headers-devel
|
---|
21 | %else
|
---|
22 | BuildRequires: qt5-qtbase-devel
|
---|
23 | BuildRequires: qt5-qttools-devel
|
---|
24 | %endif
|
---|
25 | BuildRequires: desktop-file-utils
|
---|
26 | BuildRequires: gcc-c++
|
---|
27 | #BuildRequires: pkgconfig(libpulse) >= 0.9
|
---|
28 | BuildRequires: pkgconfig(Qt5Concurrent)
|
---|
29 | BuildRequires: pkgconfig(Qt5Core)
|
---|
30 | BuildRequires: pkgconfig(Qt5DBus)
|
---|
31 | BuildRequires: pkgconfig(Qt5Gui)
|
---|
32 | BuildRequires: pkgconfig(Qt5Network)
|
---|
33 | BuildRequires: pkgconfig(Qt5PrintSupport)
|
---|
34 | BuildRequires: pkgconfig(Qt5Script)
|
---|
35 | BuildRequires: pkgconfig(Qt5Sql)
|
---|
36 | BuildRequires: pkgconfig(Qt5WebKitWidgets)
|
---|
37 | BuildRequires: pkgconfig(Qt5Widgets)
|
---|
38 | BuildRequires: pkgconfig(Qt5Xml)
|
---|
39 |
|
---|
40 | Requires: mpv
|
---|
41 | %{?_qt4_version:Requires: qt4%{?_isa} >= %{_qt4_version}}
|
---|
42 |
|
---|
43 | %description
|
---|
44 | SMPlayer is a graphical user interface (GUI) for the award-winning mplayer
|
---|
45 | and also for mpv. But apart from providing access for the most common
|
---|
46 | and useful options of mplayer and mpv, SMPlayer adds other interesting features
|
---|
47 | like the possibility to play Youtube videos or search and download subtitles.
|
---|
48 | One of the main features is the ability to remember the state of a
|
---|
49 | played file, so when you play it later it will be resumed at the same point
|
---|
50 | and with the same settings.
|
---|
51 |
|
---|
52 | %prep
|
---|
53 | %setup -a3 -a4 -a5 -qn %{name}-%{version}
|
---|
54 |
|
---|
55 | # correction for wrong-file-end-of-line-encoding
|
---|
56 | %{__sed} -i 's/\r//' *.txt
|
---|
57 | # fix files which are not UTF-8
|
---|
58 | iconv -f Latin1 -t UTF-8 -o Changelog.utf8 Changelog
|
---|
59 | mv Changelog.utf8 Changelog
|
---|
60 |
|
---|
61 | # change rcc binary
|
---|
62 | %{__sed} -e 's/rcc -binary/rcc-qt5 -binary/' -i smplayer-themes-%{smplayer_themes_ver}/themes/Makefile
|
---|
63 | %{__sed} -e 's/rcc -binary/rcc-qt5 -binary/' -i smplayer-skins-%{smplayer_skins_ver}/themes/Makefile
|
---|
64 |
|
---|
65 | %build
|
---|
66 | make \
|
---|
67 | QMAKE=%{_bindir}/qmake-qt5 \
|
---|
68 | LRELEASE=%{_bindir}/lrelease-qt5 \
|
---|
69 | PREFIX=%{_prefix} \
|
---|
70 | DOC_PATH="\\\"%{_docdir}/%{name}/\\\"" \
|
---|
71 | QMAKE_OPTS=DEFINES+=NO_DEBUG_ON_CONSOLE
|
---|
72 |
|
---|
73 | #touch src/smplayer
|
---|
74 | #touch src/translations/smplayer_es.qm
|
---|
75 |
|
---|
76 | pushd smplayer-themes-%{smplayer_themes_ver}
|
---|
77 | make
|
---|
78 | popd
|
---|
79 |
|
---|
80 | pushd smplayer-skins-%{smplayer_skins_ver}
|
---|
81 | make
|
---|
82 | popd
|
---|
83 |
|
---|
84 | pushd webfs-%{webfs_ver}
|
---|
85 | make
|
---|
86 | popd
|
---|
87 |
|
---|
88 | %install
|
---|
89 | make PREFIX=%{_prefix} DESTDIR=%{buildroot}/ DOC_PATH=%{_docdir}/%{name}/ install
|
---|
90 |
|
---|
91 | pushd smplayer-themes-%{smplayer_themes_ver}
|
---|
92 | make install PREFIX=%{_prefix} DESTDIR=%{buildroot}
|
---|
93 | popd
|
---|
94 |
|
---|
95 | pushd smplayer-skins-%{smplayer_skins_ver}
|
---|
96 | make install PREFIX=%{_prefix} DESTDIR=%{buildroot}
|
---|
97 | popd
|
---|
98 |
|
---|
99 | pushd webfs-%{webfs_ver}
|
---|
100 | cp webfsd %{buildroot}/usr/bin/webfsd
|
---|
101 | popd
|
---|
102 |
|
---|
103 | %post
|
---|
104 | touch --no-create %{_datadir}/icons/hicolor
|
---|
105 | if [ -x %{_bindir}/gtk-update-icon-cache ]; then
|
---|
106 | %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
---|
107 | fi
|
---|
108 | update-desktop-database &> /dev/null || :
|
---|
109 |
|
---|
110 | %postun
|
---|
111 | touch --no-create %{_datadir}/icons/hicolor
|
---|
112 | if [ -x %{_bindir}/gtk-update-icon-cache ]; then
|
---|
113 | %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
|
---|
114 | fi
|
---|
115 | update-desktop-database &> /dev/null || :
|
---|
116 |
|
---|
117 | %files
|
---|
118 | %defattr(-,root,root)
|
---|
119 | %{_bindir}/smplayer
|
---|
120 | %{_datadir}/applications/*.desktop
|
---|
121 | %dir %{_datadir}/icons/hicolor/*/
|
---|
122 | %dir %{_datadir}/icons/hicolor/*/apps/
|
---|
123 | %{_datadir}/icons/hicolor/*/apps/%{name}.*
|
---|
124 | %{_datadir}/smplayer/
|
---|
125 | %{_mandir}/man1/smplayer.1.gz
|
---|
126 | %{_docdir}/%{name}/
|
---|
127 | %{_bindir}/webfsd
|
---|
128 |
|
---|
129 | %changelog
|
---|
130 | * Thu Feb 25 2016 Ricardo Villalba <rvm@users.sourceforge.net> - 16.1.0
|
---|
131 | - Remove smtube
|
---|
132 | - Remove some patches
|
---|
133 | - Install smplayer-themes and smplayer-skins
|
---|
134 | - Build with opensuse too
|
---|
135 |
|
---|
136 | * Sun Jan 17 2016 Sérgio Basto <sergio@serjux.com> - 16.1.0-1
|
---|
137 | - Update 16.1.0
|
---|
138 |
|
---|
139 | * Sun Dec 06 2015 Sérgio Basto <sergio@serjux.com> - 15.11.0-1
|
---|
140 | - Update smplayer and smtube 15.11.0
|
---|
141 |
|
---|
142 | * Fri Oct 02 2015 Sérgio Basto <sergio@serjux.com> - 15.9.0-1
|
---|
143 | - Update smplayer to 15.9.0 and smtube to 15.9.0 .
|
---|
144 |
|
---|
145 | * Thu Aug 20 2015 Sérgio Basto <sergio@serjux.com> - 14.9.0.6994-2
|
---|
146 | - Update smtube to 15.8.0 .
|
---|
147 | - Removed version of package from _docdir directory (following the guidelines).
|
---|
148 |
|
---|
149 | * Wed Jun 17 2015 Sérgio Basto <sergio@serjux.com> - 14.9.0.6994-1
|
---|
150 | - Update to 4.9.0.6994 .
|
---|
151 | - Drop smplayer-14.9.0-get_svn_revision.patch .
|
---|
152 |
|
---|
153 | * Mon Jun 08 2015 Sérgio Basto <sergio@serjux.com> - 14.9.0.6966-3
|
---|
154 | - Added smplayer-14.9.0-get_svn_revision.patch, I think is better have a
|
---|
155 | hardcore version than (svn r0UNKNOWN)
|
---|
156 |
|
---|
157 | * Sun Jun 07 2015 Sérgio Basto <sergio@serjux.com> - 14.9.0.6966-2
|
---|
158 | - Update to smtube-15.5.17
|
---|
159 |
|
---|
160 | * Sat Jun 06 2015 Sérgio Basto <sergio@serjux.com> - 14.9.0.6966-1
|
---|
161 | - Update to smplayer-14.9.0.6966 and smtube-15.5.10
|
---|
162 | - Fix warning "The desktop entry file "ServiceMenus/smplayer_enqueue.desktop
|
---|
163 | has an empty mimetype! " .
|
---|
164 | - Rebase patches 2 and 3 .
|
---|
165 |
|
---|
166 | * Wed Mar 25 2015 Sérgio Basto <sergio@serjux.com> - 14.9.0.6690-1
|
---|
167 | - Update smplayer to smplayer-14.9.0.6690 and smtube to smtube-15.1.26
|
---|
168 |
|
---|
169 | * Mon Sep 15 2014 Sérgio Basto <sergio@serjux.com> - 14.9.0-1
|
---|
170 | - New upstream releases smplayer 14.9.0 and smtube 14.8.0
|
---|
171 | - Rebase patches 1 and 3 .
|
---|
172 |
|
---|
173 | * Mon Sep 01 2014 Sérgio Basto <sergio@serjux.com> - 14.3.0-2
|
---|
174 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
---|
175 |
|
---|
176 | * Fri Apr 04 2014 Sérgio Basto <sergio@serjux.com> - 14.3.0-1
|
---|
177 | - New upstream release, Previous version was 0.8.6, this new release is 14.3...
|
---|
178 | What happened? Now the version is just the year and month of the release.
|
---|
179 | - Patches refactor.
|
---|
180 |
|
---|
181 | * Tue Oct 01 2013 Sérgio Basto <sergio@serjux.com> - 0.8.6-1
|
---|
182 | - Update smplayer to 0.8.6 and smtube to 1.8
|
---|
183 |
|
---|
184 | * Mon May 27 2013 Nicolas Chauvet <kwizart@gmail.com> - 0.8.5-2
|
---|
185 | - Rebuilt for x264/FFmpeg
|
---|
186 |
|
---|
187 | * Sat May 11 2013 Sérgio Basto <sergio@serjux.com> - 0.8.5-1
|
---|
188 | - Update smplayer to 0.8.5 and smtube to 1.7
|
---|
189 | - Fix patches smplayer-0.8.3-smtube-system-qtsingleapplication and
|
---|
190 | smplayer-0.8.1-system-qtsingleapplication.patch for 0.8.5 and smtube 1.7
|
---|
191 |
|
---|
192 | * Mon Mar 25 2013 Sérgio Basto <sergio@serjux.com> - 0.8.4-2
|
---|
193 | - New tag
|
---|
194 |
|
---|
195 | * Mon Mar 25 2013 Sérgio Basto <sergio@serjux.com> - 0.8.4-1
|
---|
196 | - New upsteam release.
|
---|
197 | - Drop "updates *.desktop with video/webm;" on patch smplayer-0.8.3-desktop-files.patch.
|
---|
198 | - Fix patch smplayer-0.8.3-smtube-system-qtsingleapplication.patch
|
---|
199 | - Fix dates on changelog specs.
|
---|
200 |
|
---|
201 | * Thu Jan 10 2013 Sérgio Basto <sergio@serjux.com> - 0.8.3-2
|
---|
202 | - bug #2635, Update *.desktop with video/webm; mimetype support, as upstream do in svn r5005.
|
---|
203 |
|
---|
204 | * Mon Dec 24 2012 Sérgio Basto <sergio@serjux.com> - 0.8.3-1
|
---|
205 | - New updates to smplayer-0.8.3 and smtube-1.5 . Fix for Youtube playback.
|
---|
206 |
|
---|
207 | * Mon Dec 17 2012 Sérgio Basto <sergio@serjux.com> - 0.8.2.1-1
|
---|
208 | - New updates to smplayer-0.8.2.1 and smtube-1.4 .
|
---|
209 |
|
---|
210 | * Sun Nov 25 2012 Sérgio Basto <sergio@serjux.com> - 0.8.2-3
|
---|
211 | - now smtube new source b372bd396c068aa28798bf2b5385bf59 smtube-1.3.tar.bz2 .
|
---|
212 |
|
---|
213 | * Sun Nov 25 2012 Sérgio Basto <sergio@serjux.com> - 0.8.2-2
|
---|
214 | - 0.8.2 new source 0dee3f9a4f0d87d37455efc800f9bba7 smplayer-0.8.2.tar.bz2 this one has some minor
|
---|
215 | fixes ... , smplayer-0.8.2.tar.bz2 was announced at 2012-11-24.
|
---|
216 |
|
---|
217 | * Thu Nov 22 2012 Sérgio Basto <sergio@serjux.com> - 0.8.2-1
|
---|
218 | - New upsteam release.
|
---|
219 |
|
---|
220 | * Thu Sep 27 2012 Sérgio Basto <sergio@serjux.com> - 0.8.1-2
|
---|
221 | - fix rfbz #2488
|
---|
222 |
|
---|
223 | * Thu Sep 20 2012 Sérgio Basto <sergio@serjux.com> - 0.8.1-1
|
---|
224 | - New upsteam release.
|
---|
225 | - rfbz #2113, all done by Nucleo.
|
---|
226 |
|
---|
227 | * Sat Apr 28 2012 Sérgio Basto <sergio@serjux.com> - 0.8.0-2
|
---|
228 | - fix smtube translations.
|
---|
229 | - drop support for Fedora < 9 and EPEL 5, since we need kde4.
|
---|
230 |
|
---|
231 | * Sat Apr 28 2012 Sérgio Basto <sergio@serjux.com> - 0.8.0-1
|
---|
232 | - New release
|
---|
233 | - add smtube support
|
---|
234 | - use system qtsingleapplication
|
---|
235 | - a little review with: fedora-review -n smplayer --mock-config fedora-16-i386
|
---|
236 |
|
---|
237 | * Sat Mar 24 2012 Sérgio Basto <sergio@serjux.com> - 0.7.1-1
|
---|
238 | - New upstream version: 0.7.1, changelog says "This version includes some bug fixes,
|
---|
239 | some of them important. It's highly recommended to update."
|
---|
240 | - Remove some bundle sources.
|
---|
241 | - Small fixes in patches to fit on 0.7.1.
|
---|
242 |
|
---|
243 | * Sat Mar 24 2012 Sérgio Basto <sergio@serjux.com> - 0.7.0-3
|
---|
244 | - Add a patch to remove bundled quazip shlibs and Requires kde-filesystem, bug rfbz #1164
|
---|
245 | - Removed tag BuildRoot.
|
---|
246 |
|
---|
247 | * Fri Mar 02 2012 Nicolas Chauvet <kwizart@gmail.com> - 0.7.0-2
|
---|
248 | - Rebuilt for c++ ABI breakage
|
---|
249 |
|
---|
250 | * Tue Feb 7 2012 Sérgio Basto <sergio@serjux.com> - 0.7.0-1
|
---|
251 | - new upstream version: 0.7.0
|
---|
252 |
|
---|
253 | * Mon May 24 2010 Sebastian Vahl <fedora@deadbabylon.de> - 0.6.9-2
|
---|
254 | - #1217: fix regression in Thunar
|
---|
255 |
|
---|
256 | * Sat Apr 24 2010 Sebastian Vahl <fedora@deadbabylon.de> - 0.6.9-1
|
---|
257 | - new upstream version: 0.6.9
|
---|
258 |
|
---|
259 | * Sun Jun 28 2009 Sebastian Vahl <fedora@deadbabylon.de> - 0.6.8-1
|
---|
260 | - new upstream version: 0.6.8
|
---|
261 |
|
---|
262 | * Sun Mar 29 2009 Sebastian Vahl <fedora@deadbabylon.de> - 0.6.7-1
|
---|
263 | - new upstream version: 0.6.7
|
---|
264 |
|
---|
265 | * Sun Mar 29 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 0.6.6-2
|
---|
266 | - rebuild for new F11 features
|
---|
267 |
|
---|
268 | * Sat Jan 10 2009 Sebastian Vahl <fedora@deadbabylon.de> - 0.6.6-1
|
---|
269 | - new upstream version: 0.6.6
|
---|
270 |
|
---|
271 | * Thu Nov 13 2008 Sebastian Vahl <fedora@deadbabylon.de> - 0.6.5.1-1
|
---|
272 | - new upstream version: 0.6.5.1
|
---|
273 |
|
---|
274 | * Wed Oct 29 2008 Sebastian Vahl <fedora@deadbabylon.de> - 0.6.4-1
|
---|
275 | - new upstream version: 0.6.4
|
---|
276 |
|
---|
277 | * Mon Sep 29 2008 Sebastian Vahl <fedora@deadbabylon.de> - 0.6.3-1
|
---|
278 | - new upstream version: 0.6.3
|
---|
279 |
|
---|
280 | * Fri Aug 15 2008 Sebastian Vahl <fedora@deadbabylon.de> - 0.6.2-1
|
---|
281 | - new upstream version: 0.6.2
|
---|
282 | - add servicemenus depending on the KDE version
|
---|
283 |
|
---|
284 | * Wed Jul 30 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info - 0.6.1-4
|
---|
285 | - rebuild for buildsys cflags issue
|
---|
286 |
|
---|
287 | * Tue Jul 22 2008 Sebastian Vahl <fedora@deadbabylon.de> - 0.6.1-3
|
---|
288 | - import into rpmfusion
|
---|
289 |
|
---|
290 | * Tue Jul 08 2008 Sebastian Vahl <fedora@deadbabylon.de> - 0.6.1-2
|
---|
291 | - fix packaging of FAQs
|
---|
292 |
|
---|
293 | * Tue Jun 17 2008 Sebastian Vahl <fedora@deadbabylon.de> - 0.6.1-1
|
---|
294 | - update to latest upstream version
|
---|
295 |
|
---|
296 | * Sun Feb 24 2008 Sebastian Vahl <fedora@deadbabylon.de> - 0.6.0-0.3.rc2
|
---|
297 | - add %%{?_smp_mflags} in Makefile to really use it
|
---|
298 | - finally fix usage of macros
|
---|
299 | - mode 0644 for desktop-file isn't needed anymore
|
---|
300 |
|
---|
301 | * Sat Feb 23 2008 Sebastian Vahl <fedora@deadbabylon.de> - 0.6.0-0.2.rc2
|
---|
302 | - Update %%post and %%postun scriplets
|
---|
303 | - use %%{?_smp_mflags} in make
|
---|
304 | - change vendor to rpmfusion in desktop-file-install
|
---|
305 | - some minor spec cleanups
|
---|
306 |
|
---|
307 | * Thu Feb 14 2008 Sebastian Vahl <fedora@deadbabylon.de> - 0.6.0-0.1.rc2
|
---|
308 | - new upstream version: 0.6.0rc2
|
---|
309 |
|
---|
310 | * Tue Feb 12 2008 Sebastian Vahl <fedora@deadbabylon.de> - 0.6.0-0.1.rc1
|
---|
311 | - new upstream version: 0.6.0rc1
|
---|
312 | - added docs: Changelog Copying.txt Readme.txt Release_notes.txt
|
---|
313 | - fix path of %%docdir in Makefile
|
---|
314 |
|
---|
315 | * Tue Dec 18 2007 Sebastian Vahl <fedora@deadbabylon.de> - 0.5.62-1
|
---|
316 | - new version: 0.5.62
|
---|
317 | - specify license as GPLv2+
|
---|
318 |
|
---|
319 | * Thu Sep 20 2007 Sebastian Vahl <fedora@deadbabylon.de> - 0.5.60-1
|
---|
320 | - Update to development version of qt4
|
---|
321 |
|
---|
322 | * Thu Sep 20 2007 Sebastian Vahl <fedora@deadbabylon.de> - 0.5.21-1
|
---|
323 | - new upstream version: 0.5.21
|
---|
324 | - don't add category "Multimedia" to desktop-file
|
---|
325 | - correct url of Source0
|
---|
326 |
|
---|
327 | * Sun Jul 29 2007 Sebastian Vahl <fedora@deadbabylon.de> - 0.5.20-1
|
---|
328 | - new upstream version: 0.5.20
|
---|
329 |
|
---|
330 | * Mon Jun 18 2007 Sebastian Vahl <fedora@deadbabylon.de> - 0.5.14-1
|
---|
331 | - new upstream version: 0.5.14
|
---|
332 |
|
---|
333 | * Thu Jun 14 2007 Sebastian Vahl <fedora@deadbabylon.de> - 0.5.7-1
|
---|
334 | - Initial Release
|
---|