]>
Commit | Line | Data |
---|---|---|
943076d3 | 1 | # TODO: Output/oss4 plugin (R: soundcard.h from OSS 4) |
dbea2178 JB |
2 | # |
3 | # Conditional build: | |
4 | %bcond_with jack1 # JACK1 (0.12x) instead of JACK2 (1.9.x) | |
5 | ||
943076d3 | 6 | Summary: XMMS like audio player based on Qt |
3181b8ea | 7 | Summary(hu.UTF-8): XMMS-szerű Qt alapú audio-lejátszó |
943076d3 | 8 | Summary(pl.UTF-8): Odtwarzacz muzyki w stylu XMMS oparty na Qt |
4ae60cb5 | 9 | Name: qmmp |
886eaa05 | 10 | Version: 1.6.5 |
d366c55a | 11 | Release: 4 |
943076d3 | 12 | License: GPL v2+ |
4ae60cb5 | 13 | Group: X11/Applications/Multimedia |
886eaa05 JR |
14 | Source0: http://qmmp.ylsoftware.com/files/qmmp/1.6/%{name}-%{version}.tar.bz2 |
15 | # Source0-md5: 15443877d70916f968fa798ab866bfd7 | |
943076d3 | 16 | URL: http://qmmp.ylsoftware.com/ |
dbea2178 JB |
17 | BuildRequires: Qt5Core-devel >= 5.4.0 |
18 | BuildRequires: Qt5DBus-devel >= 5.4.0 | |
19 | BuildRequires: Qt5Gui-devel >= 5.4.0 | |
20 | BuildRequires: Qt5Multimedia-devel >= 5.4.0 | |
21 | BuildRequires: Qt5Network-devel >= 5.4.0 | |
22 | BuildRequires: Qt5Widgets-devel >= 5.4.0 | |
23 | BuildRequires: Qt5X11Extras-devel >= 5.4.0 | |
4ae60cb5 | 24 | BuildRequires: alsa-lib-devel >= 1.0.1 |
dbea2178 | 25 | BuildRequires: cmake >= 2.8.11 |
9af05c30 | 26 | BuildRequires: curl-devel >= 7.16 |
3a3af790 | 27 | BuildRequires: enca-devel >= 1.9 |
943076d3 | 28 | BuildRequires: faad2-devel >= 2.6.1 |
38849f26 JB |
29 | # libavcodec>=55.18.102 libavformat>=55.12.1000 libavutil>=52.38.100 |
30 | BuildRequires: ffmpeg-devel >= 2.0 | |
4ae60cb5 | 31 | BuildRequires: flac-devel >= 1.1.3 |
943076d3 | 32 | BuildRequires: game-music-emu-devel >= 0.5.5 |
10238340 | 33 | BuildRequires: gettext-tools |
38849f26 | 34 | %{?with_jack1:BuildRequires: jack-audio-connection-kit-devel >= 0.122.0} |
dbea2178 | 35 | %{!?with_jack1:BuildRequires: jack-audio-connection-kit-devel >= 1.9.8} |
38849f26 | 36 | BuildRequires: libarchive-devel >= 3.2.0 |
d538f3d0 | 37 | BuildRequires: libbs2b-devel >= 3.0.0 |
943076d3 JB |
38 | BuildRequires: libcddb-devel >= 1.3.1 |
39 | BuildRequires: libcdio-devel >= 0.80 | |
40 | BuildRequires: libcdio-paranoia-devel >= 0.90_10.2 | |
d538f3d0 | 41 | BuildRequires: libmms-devel >= 0.4 |
4ae60cb5 | 42 | BuildRequires: libmodplug-devel >= 0.8.4 |
943076d3 | 43 | BuildRequires: libogg-devel |
3a3af790 | 44 | BuildRequires: libprojectM-devel >= 2.0.0 |
4ae60cb5 | 45 | BuildRequires: libsamplerate-devel >= 0.1.2 |
38849f26 | 46 | BuildRequires: libshout-devel |
943076d3 | 47 | BuildRequires: libsidplayfp-devel >= 1.0.3 |
38849f26 | 48 | BuildRequires: libsndfile-devel >= 1.0.21 |
943076d3 | 49 | BuildRequires: libstdc++-devel |
4ae60cb5 | 50 | BuildRequires: libvorbis-devel |
a7ccf13e | 51 | BuildRequires: libxmp-devel >= 4.2.0 |
fb70753a | 52 | BuildRequires: musepack-devel |
943076d3 | 53 | BuildRequires: opus-devel >= 1.0.2 |
32cace1c | 54 | BuildRequires: opusfile-devel >= 0.2 |
886eaa05 | 55 | BuildRequires: pipewire-devel |
943076d3 | 56 | BuildRequires: pkgconfig |
d538f3d0 | 57 | BuildRequires: pulseaudio-devel >= 0.9.15 |
dbea2178 JB |
58 | BuildRequires: qt5-build >= 5.4.0 |
59 | BuildRequires: qt5-linguist >= 5.4.0 | |
943076d3 | 60 | BuildRequires: rpmbuild(macros) >= 1.605 |
4ae60cb5 | 61 | BuildRequires: sed >= 4.0 |
943076d3 | 62 | BuildRequires: soxr-devel >= 0.1.0 |
38849f26 | 63 | BuildRequires: taglib-devel >= 1.11 |
4ae60cb5 | 64 | BuildRequires: wavpack-devel >= 4.41 |
943076d3 JB |
65 | BuildRequires: wildmidi-devel >= 0.2.3.4 |
66 | BuildRequires: xorg-lib-libX11-devel | |
47aed7d3 | 67 | Requires: %{name}-libs = %{version}-%{release} |
dbea2178 JB |
68 | Requires: Qt5Core >= 5.4.0 |
69 | Requires: Qt5DBus >= 5.4.0 | |
47aed7d3 | 70 | Requires: Qt5Gui >= 5.4.0 |
dbea2178 JB |
71 | Requires: Qt5Multimedia >= 5.4.0 |
72 | Requires: Qt5Network >= 5.4.0 | |
73 | Requires: Qt5Widgets >= 5.4.0 | |
74 | Requires: Qt5X11Extras >= 5.4.0 | |
943076d3 JB |
75 | Requires: curl-libs >= 7.16 |
76 | Requires: enca-libs >= 1.9 | |
77 | Requires: faad2-libs >= 2.6.1 | |
38849f26 | 78 | Requires: ffmpeg-libs >= 2.0 |
943076d3 JB |
79 | Requires: flac >= 1.1.3 |
80 | Requires: game-music-emu >= 0.5.5 | |
dbea2178 JB |
81 | %{?with_jack1:Requires: jack-audio-connection-kit-libs >= 0.102.5} |
82 | %{!?with_jack1:Requires: jack-audio-connection-kit-libs >= 1.9.8} | |
38849f26 | 83 | Requires: libarchive >= 3.2.0 |
943076d3 JB |
84 | Requires: libbs2b >= 3.0.0 |
85 | Requires: libcddb >= 1.3.1 | |
86 | Requires: libcdio >= 0.80 | |
87 | Requires: libcdio-paranoia >= 0.90_10.2 | |
88 | Requires: libmms >= 0.4 | |
89 | Requires: libmodplug >= 0.8.4 | |
943076d3 JB |
90 | Requires: libprojectM >= 2.0.0 |
91 | Requires: libsidplayfp >= 1.0.3 | |
38849f26 | 92 | Requires: libsndfile >= 1.0.21 |
943076d3 JB |
93 | Requires: opus >= 1.0.2 |
94 | Requires: opusfile >= 0.2 | |
95 | Requires: pulseaudio-libs >= 0.9.15 | |
96 | Requires: soxr >= 0.1.0 | |
38849f26 | 97 | Requires: taglib >= 1.11 |
47aed7d3 | 98 | Requires: wavpack-libs >= 4.41 |
943076d3 | 99 | Requires: wildmidi >= 0.2.3.4 |
a7ccf13e | 100 | Obsoletes: qmmp-input-xmp < 1.6.0 |
4ae60cb5 | 101 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
102 | ||
103 | %description | |
47aed7d3 | 104 | Qmmp (Qt-based Multimedia Player) is an audio player that supports: |
943076d3 | 105 | - file formats among: Vorbis, FLAC, MPEG1, WMA, WAV... |
4ae60cb5 | 106 | - plugins, |
107 | - Winamp and XMMS skins and more. | |
108 | ||
3181b8ea ZU |
109 | %description -l hu.UTF-8 |
110 | A lejátszó a következőket támogatja: | |
111 | - fájlformátumok: Vorbis, FLAC, MPEG1, WMA, WAV | |
112 | - pluginok | |
113 | - Wnamp és XMMS szkinek és még sok mást. | |
114 | ||
4ae60cb5 | 115 | %description -l pl.UTF-8 |
47aed7d3 JB |
116 | Qmmp (Qt-based Multimedia Player) to odtwarzacz dźwięku obsługujący |
117 | m.in.: | |
118 | - formaty plików: Vorbis, FLAC, MPEG1, WMA, WAV i inne, | |
4ae60cb5 | 119 | - system wtyczek, |
943076d3 | 120 | - skórki z XMMS i Winampa. |
4ae60cb5 | 121 | |
47aed7d3 JB |
122 | %package libs |
123 | Summary: Qmmp (Qt-based Multimedia Player) shared libraries | |
124 | Summary(pl.UTF-8): Biblioteki współdzielone odtwarzacza dźwięku Qmmp | |
125 | Group: Libraries | |
126 | Requires: Qt5Core >= 5.4.0 | |
127 | Requires: Qt5Gui >= 5.4.0 | |
128 | Requires: Qt5Network >= 5.4.0 | |
129 | Requires: Qt5Widgets >= 5.4.0 | |
130 | Conflicts: qmmp < 1.1.8-3 | |
131 | ||
132 | %description libs | |
133 | Qmmp (Qt-based Multimedia Player) shared libraries. | |
134 | ||
135 | %description libs -l pl.UTF-8 | |
136 | Biblioteki współdzielone odtwarzacza dźwięku Qmmp, opartego na Qt. | |
137 | ||
4ae60cb5 | 138 | %package devel |
139 | Summary: Header files for qmmp | |
140 | Summary(pl.UTF-8): Pliki nagłówkowe qmmp | |
4ae60cb5 | 141 | Group: Development/Libraries |
47aed7d3 | 142 | Requires: %{name}-libs = %{version}-%{release} |
dbea2178 JB |
143 | Requires: Qt5Core-devel >= 5.4.0 |
144 | Requires: Qt5Gui-devel >= 5.4.0 | |
145 | Requires: Qt5Network-devel >= 5.4.0 | |
146 | Requires: Qt5Widgets-devel >= 5.4.0 | |
4ae60cb5 | 147 | |
148 | %description devel | |
943076d3 | 149 | Header files for qmmp. |
4ae60cb5 | 150 | |
2d88363e | 151 | %description devel -l pl.UTF-8 |
943076d3 | 152 | Pliki nagłówkowe qmmp. |
4ae60cb5 | 153 | |
154 | %prep | |
155 | %setup -q | |
156 | ||
157 | %build | |
158 | install -d build | |
159 | cd build | |
1b2c0c66 JB |
160 | %cmake .. \ |
161 | -DUSE_OSS=ON | |
4ae60cb5 | 162 | |
163 | %{__make} | |
164 | ||
165 | %install | |
166 | rm -rf $RPM_BUILD_ROOT | |
167 | ||
943076d3 JB |
168 | %{__make} -C build install \ |
169 | DESTDIR=$RPM_BUILD_ROOT | |
4ae60cb5 | 170 | |
94b75292 JR |
171 | %{__rm} -r $RPM_BUILD_ROOT%{_iconsdir}/hicolor/56x56 |
172 | ||
4ae60cb5 | 173 | %clean |
174 | rm -rf $RPM_BUILD_ROOT | |
175 | ||
47aed7d3 JB |
176 | %post libs -p /sbin/ldconfig |
177 | %postun libs -p /sbin/ldconfig | |
4ae60cb5 | 178 | |
179 | %files | |
180 | %defattr(644,root,root,755) | |
943076d3 JB |
181 | %doc AUTHORS COPYING.CC-by-sa_V4 ChangeLog ChangeLog.svn README |
182 | %lang(ru) %doc ChangeLog.rus README.RUS | |
183 | %lang(uk) %doc README.UKR | |
886eaa05 JR |
184 | %attr(755,root,root) %{_bindir}/qmmp-1 |
185 | %dir %{_libdir}/qmmp-1.6 | |
186 | %dir %{_libdir}/qmmp-1.6/CommandLineOptions | |
187 | %attr(755,root,root) %{_libdir}/qmmp-1.6/CommandLineOptions/lib*option.so | |
188 | %dir %{_libdir}/qmmp-1.6/Effect | |
943076d3 | 189 | # R: libbs2b |
886eaa05 JR |
190 | %attr(755,root,root) %{_libdir}/qmmp-1.6/Effect/libbs2b.so |
191 | %attr(755,root,root) %{_libdir}/qmmp-1.6/Effect/libcrossfade.so | |
38849f26 | 192 | # R: libogg libvorbis |
886eaa05 JR |
193 | %attr(755,root,root) %{_libdir}/qmmp-1.6/Effect/libfilewriter.so |
194 | %attr(755,root,root) %{_libdir}/qmmp-1.6/Effect/libladspa.so | |
943076d3 | 195 | # R: soxr |
886eaa05 JR |
196 | %attr(755,root,root) %{_libdir}/qmmp-1.6/Effect/libsoxr.so |
197 | %attr(755,root,root) %{_libdir}/qmmp-1.6/Effect/libstereo.so | |
198 | %attr(755,root,root) %{_libdir}/qmmp-1.6/Effect/libmonotostereo.so | |
199 | %dir %{_libdir}/qmmp-1.6/Engines | |
200 | %attr(755,root,root) %{_libdir}/qmmp-1.6/Engines/libmplayer.so | |
201 | %dir %{_libdir}/qmmp-1.6/FileDialogs | |
202 | %attr(755,root,root) %{_libdir}/qmmp-1.6/FileDialogs/lib*dialog.so | |
203 | %dir %{_libdir}/qmmp-1.6/General | |
204 | %attr(755,root,root) %{_libdir}/qmmp-1.6/General/liblibrary.so | |
205 | %attr(755,root,root) %{_libdir}/qmmp-1.6/General/liblistenbrainz.so | |
206 | %attr(755,root,root) %{_libdir}/qmmp-1.6/General/libsleepinhibitor.so | |
943076d3 | 207 | # R: taglib |
886eaa05 JR |
208 | %attr(755,root,root) %{_libdir}/qmmp-1.6/General/libconverter.so |
209 | %attr(755,root,root) %{_libdir}/qmmp-1.6/General/libcopypaste.so | |
210 | %attr(755,root,root) %{_libdir}/qmmp-1.6/General/libcovermanager.so | |
211 | %attr(755,root,root) %{_libdir}/qmmp-1.6/General/libfileops.so | |
212 | %attr(755,root,root) %{_libdir}/qmmp-1.6/General/libgnomehotkey.so | |
dbea2178 | 213 | # R: Qt5DBus |
886eaa05 | 214 | #%attr(755,root,root) %{_libdir}/qmmp-1.6/General/libhal.so |
943076d3 | 215 | # R: libX11 |
886eaa05 | 216 | %attr(755,root,root) %{_libdir}/qmmp-1.6/General/libhotkey.so |
dbea2178 | 217 | # R: Qt5DBus |
886eaa05 JR |
218 | %attr(755,root,root) %{_libdir}/qmmp-1.6/General/libkdenotify.so |
219 | %attr(755,root,root) %{_libdir}/qmmp-1.6/General/liblyrics.so | |
dbea2178 | 220 | # R: Qt5DBus |
886eaa05 | 221 | %attr(755,root,root) %{_libdir}/qmmp-1.6/General/libmpris.so |
38849f26 | 222 | # R: Q5X11Extras libX11 |
886eaa05 | 223 | %attr(755,root,root) %{_libdir}/qmmp-1.6/General/libnotifier.so |
943076d3 | 224 | # R: taglib |
886eaa05 JR |
225 | %attr(755,root,root) %{_libdir}/qmmp-1.6/General/librgscan.so |
226 | %attr(755,root,root) %{_libdir}/qmmp-1.6/General/libscrobbler.so | |
227 | %attr(755,root,root) %{_libdir}/qmmp-1.6/General/libstatusicon.so | |
228 | %attr(755,root,root) %{_libdir}/qmmp-1.6/General/libstreambrowser.so | |
229 | %attr(755,root,root) %{_libdir}/qmmp-1.6/General/libtrackchange.so | |
dbea2178 | 230 | # R: Qt5DBus |
886eaa05 JR |
231 | %attr(755,root,root) %{_libdir}/qmmp-1.6/General/libudisks.so |
232 | %attr(755,root,root) %{_libdir}/qmmp-1.6/General/libhistory.so | |
233 | %dir %{_libdir}/qmmp-1.6/Input | |
943076d3 | 234 | # R: faad2 taglib |
886eaa05 | 235 | %attr(755,root,root) %{_libdir}/qmmp-1.6/Input/libaac.so |
38849f26 | 236 | # R: libarchive |
886eaa05 | 237 | %attr(755,root,root) %{_libdir}/qmmp-1.6/Input/libarchive.so |
943076d3 | 238 | # R: libcddb libcdio libcdio-paranoia |
886eaa05 | 239 | %attr(755,root,root) %{_libdir}/qmmp-1.6/Input/libcdaudio.so |
943076d3 | 240 | # R: enca-libs |
886eaa05 | 241 | %attr(755,root,root) %{_libdir}/qmmp-1.6/Input/libcue.so |
943076d3 | 242 | # R: ffmpeg-libs |
886eaa05 | 243 | %attr(755,root,root) %{_libdir}/qmmp-1.6/Input/libffmpeg.so |
943076d3 | 244 | # R: flac taglib |
886eaa05 | 245 | %attr(755,root,root) %{_libdir}/qmmp-1.6/Input/libflac.so |
943076d3 | 246 | # R: game-music-emu |
886eaa05 | 247 | %attr(755,root,root) %{_libdir}/qmmp-1.6/Input/libgme.so |
943076d3 | 248 | # R: libmpcdec taglib |
886eaa05 | 249 | %attr(755,root,root) %{_libdir}/qmmp-1.6/Input/libmpc.so |
943076d3 | 250 | # R: opus opusfile taglib |
886eaa05 | 251 | %attr(755,root,root) %{_libdir}/qmmp-1.6/Input/libopus.so |
943076d3 | 252 | # R: libsidplayfp |
886eaa05 | 253 | %attr(755,root,root) %{_libdir}/qmmp-1.6/Input/libsid.so |
943076d3 | 254 | # R: libsndfile |
886eaa05 | 255 | %attr(755,root,root) %{_libdir}/qmmp-1.6/Input/libsndfile.so |
943076d3 | 256 | # R: libvorbis taglib |
886eaa05 | 257 | %attr(755,root,root) %{_libdir}/qmmp-1.6/Input/libvorbis.so |
943076d3 | 258 | # R: wavpack |
886eaa05 | 259 | %attr(755,root,root) %{_libdir}/qmmp-1.6/Input/libwavpack.so |
a7ccf13e JR |
260 | # R: libxmp |
261 | %attr(755,root,root) %{_libdir}/qmmp-1.6/Input/libxmp.so | |
943076d3 | 262 | # R: wildmidi |
886eaa05 JR |
263 | %attr(755,root,root) %{_libdir}/qmmp-1.6/Input/libwildmidi.so |
264 | %attr(755,root,root) %{_libdir}/qmmp-1.6/Input/libmpeg.so | |
265 | %dir %{_libdir}/qmmp-1.6/Output | |
943076d3 | 266 | # R: alsa-lib |
886eaa05 | 267 | %attr(755,root,root) %{_libdir}/qmmp-1.6/Output/libalsa.so |
943076d3 | 268 | # R: jack-audio-connection-kit-libs soxr |
886eaa05 JR |
269 | %attr(755,root,root) %{_libdir}/qmmp-1.6/Output/libjack.so |
270 | %attr(755,root,root) %{_libdir}/qmmp-1.6/Output/libnull.so | |
271 | %attr(755,root,root) %{_libdir}/qmmp-1.6/Output/liboss.so | |
272 | # R: pipewire-devel | |
273 | %attr(755,root,root) %{_libdir}/qmmp-1.6/Output/libpipewire.so | |
943076d3 | 274 | # R: pulseaudio-libs |
886eaa05 | 275 | %attr(755,root,root) %{_libdir}/qmmp-1.6/Output/libpulseaudio.so |
943076d3 | 276 | # R: QtMultimedia |
886eaa05 | 277 | %attr(755,root,root) %{_libdir}/qmmp-1.6/Output/libqtmultimedia.so |
38849f26 | 278 | # R: libogg libshout libvorbis soxr |
886eaa05 JR |
279 | %attr(755,root,root) %{_libdir}/qmmp-1.6/Output/libshout.so |
280 | %dir %{_libdir}/qmmp-1.6/PlayListFormats | |
281 | %attr(755,root,root) %{_libdir}/qmmp-1.6/PlayListFormats/lib*playlistformat.so | |
282 | %dir %{_libdir}/qmmp-1.6/Transports | |
943076d3 | 283 | # R: curl-libs enca-libs |
886eaa05 | 284 | %attr(755,root,root) %{_libdir}/qmmp-1.6/Transports/libhttp.so |
943076d3 | 285 | # R: libmms |
886eaa05 JR |
286 | %attr(755,root,root) %{_libdir}/qmmp-1.6/Transports/libmms.so |
287 | %dir %{_libdir}/qmmp-1.6/Ui | |
288 | %attr(755,root,root) %{_libdir}/qmmp-1.6/Ui/libqsui.so | |
943076d3 | 289 | # R: libX11 |
886eaa05 JR |
290 | %attr(755,root,root) %{_libdir}/qmmp-1.6/Ui/libskinned.so |
291 | %dir %{_libdir}/qmmp-1.6/Visual | |
292 | %attr(755,root,root) %{_libdir}/qmmp-1.6/Visual/libanalyzer.so | |
293 | %attr(755,root,root) %{_libdir}/qmmp-1.6/Visual/libprojectm.so | |
294 | %{_desktopdir}/qmmp-1.desktop | |
295 | %{_desktopdir}/qmmp-dir-1.desktop | |
296 | %{_desktopdir}/qmmp-enqueue-1.desktop | |
297 | %dir %{_datadir}/qmmp-1 | |
298 | %dir %{_datadir}/qmmp-1/images | |
299 | %{_datadir}/qmmp-1/images/*.png | |
300 | %dir %{_datadir}/qmmp-1/scripts | |
301 | %attr(755,root,root) %{_datadir}/qmmp-1/scripts/kwin.sh | |
302 | %{_iconsdir}/hicolor/*x*/apps/qmmp-1.png | |
303 | %{_iconsdir}/hicolor/scalable/apps/qmmp-1.svgz | |
304 | %{_iconsdir}/hicolor/scalable/apps/qmmp-simple-1.svgz | |
d366c55a | 305 | %{_metainfodir}/qmmp-1.appdata.xml |
94b75292 | 306 | %{_datadir}/solid/actions/qmmp-opencda-1.desktop |
4ae60cb5 | 307 | |
47aed7d3 JB |
308 | %files libs |
309 | %defattr(644,root,root,755) | |
886eaa05 JR |
310 | %attr(755,root,root) %{_libdir}/libqmmp-1.so.*.*.* |
311 | %attr(755,root,root) %ghost %{_libdir}/libqmmp-1.so.1 | |
312 | %attr(755,root,root) %{_libdir}/libqmmpui-1.so.*.*.* | |
313 | %attr(755,root,root) %ghost %{_libdir}/libqmmpui-1.so.1 | |
47aed7d3 | 314 | |
4ae60cb5 | 315 | %files devel |
316 | %defattr(644,root,root,755) | |
886eaa05 JR |
317 | %attr(755,root,root) %{_libdir}/libqmmp-1.so |
318 | %attr(755,root,root) %{_libdir}/libqmmpui-1.so | |
319 | %{_includedir}/qmmp-1 | |
320 | %{_pkgconfigdir}/qmmp-1.pc | |
321 | %{_pkgconfigdir}/qmmpui-1.pc |