1eebff405ea1e64a73e62f4bf5bf30ef56b19b74
[packages/audacious.git] / audacious.spec
1 #
2 # Conditional build:
3 %bcond_without  gtk     # GTK+ support
4 %bcond_without  qt      # Qt support
5 #
6 Summary:        Sound player with the WinAmp GUI, for GTK+/Qt
7 Summary(hu.UTF-8):      Zenelejátszó WinAmp-szerű felülettel GTK+/Qt-t használó rendszerekhez
8 Summary(pl.UTF-8):      Odtwarzacz dźwięku z interfejsem WinAmpa dla GTK+/Qt
9 Name:           audacious
10 Version:        3.8.2
11 Release:        2
12 License:        BSD
13 Group:          X11/Applications/Sound
14 Source0:        http://distfiles.audacious-media-player.org/%{name}-%{version}.tar.bz2
15 # Source0-md5:  e5172095152678ede37aadd0e82d161f
16 URL:            http://audacious-media-player.org/
17 %if %{with qt}
18 BuildRequires:  Qt5Core-devel >= 5.2
19 BuildRequires:  Qt5Gui-devel >= 5.2
20 BuildRequires:  Qt5Widgets-devel >= 5.2
21 %endif
22 BuildRequires:  autoconf >= 2.59
23 BuildRequires:  automake
24 %{?with_cairo:BuildRequires:    cairo-devel >= 1.6}
25 BuildRequires:  gettext-tools
26 # -std=gnu++11
27 BuildRequires:  gcc-c++ >= 6:4.7
28 BuildRequires:  glib2-devel >= 1:2.32
29 %{?with_gtk:BuildRequires:      gtk+2-devel >= 2:2.24}
30 BuildRequires:  libguess-devel >= 1.2
31 BuildRequires:  libstdc++-devel >= 6:4.7
32 %{?with_gtk:BuildRequires:      pango-devel >= 1:1.20}
33 BuildRequires:  pkgconfig
34 BuildRequires:  rpmbuild(macros) >= 1.198
35 BuildRequires:  sed >= 4.0
36 Requires(post,postun):  desktop-file-utils
37 Requires:       %{name}-libs = %{version}-%{release}
38 Requires:       audacious-output-plugin
39 Suggests:       %{name}-general-skins
40 Obsoletes:      audacious-container-mms
41 Obsoletes:      audacious-container-stdio
42 Obsoletes:      audacious-general-audioscrobbler
43 Obsoletes:      audacious-general-curl
44 Obsoletes:      audacious-general-evdev
45 Obsoletes:      audacious-general-mtp_up
46 Obsoletes:      audacious-general-streambrowser
47 Obsoletes:      audacious-general-vfstrace
48 Obsoletes:      audacious-input-alac
49 Obsoletes:      audacious-input-cdaudio
50 Obsoletes:      audacious-input-cube
51 Obsoletes:      audacious-input-demac
52 Obsoletes:      audacious-input-flac
53 Obsoletes:      audacious-input-mikmod
54 Obsoletes:      audacious-input-mpc
55 Obsoletes:      audacious-input-mpg123
56 Obsoletes:      audacious-input-mplayer
57 Obsoletes:      audacious-input-musepack
58 Obsoletes:      audacious-input-sap
59 Obsoletes:      audacious-input-timidity
60 Obsoletes:      audacious-input-tta
61 Obsoletes:      audacious-input-wav
62 Obsoletes:      audacious-input-wma
63 Obsoletes:      audacious-output-ALSA
64 Obsoletes:      audacious-output-OSS
65 Obsoletes:      audacious-output-arts
66 Obsoletes:      audacious-output-disk
67 Obsoletes:      audacious-output-icecast
68 Obsoletes:      audacious-output-lame
69 Obsoletes:      audacious-output-null
70 Obsoletes:      audacious-output-oss
71 Obsoletes:      audacious-static
72 Obsoletes:      audacious-transport-curl
73 Obsoletes:      audacious-transport-unix_io
74 Obsoletes:      audacious-visualization-iris
75 Obsoletes:      audacious-visualization-moodbar
76 Obsoletes:      audacious-visualization-paranormal
77 Obsoletes:      audacious-visualization-projectM
78 Obsoletes:      audacious-visualization-rocklight
79 Obsoletes:      audacious-visualization-rootvis
80 Obsoletes:      audacious-visualization-rovascope
81 Obsoletes:      audacious-visualization-spectrum
82 Obsoletes:      beep-media-player
83 Obsoletes:      bmp
84 Obsoletes:      bmp-visualization-minilcd
85 Obsoletes:      bmp-visualization-wmdiscotux
86 # sr@Latn vs. sr@latin
87 Conflicts:      glibc-misc < 6:2.7
88 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
89
90 %description
91 Audacious is a media player based on BMP. Since the development of the
92 former project had been terminated, this fork was created.
93
94 %description -l hu.UTF-8
95 Audacious egy BMP-n alapuló médialejátszó. Amióta a kiinduló projekt
96 fejlesztése abbamaradt, ez a leszármazott létrejött.
97
98 %description -l pl.UTF-8
99 Audacious to odtwarzacz mediów oparty na BMP. Powstał on ponieważ
100 rozwój pierwowzoru został zakończony.
101
102 %package libs
103 Summary:        Audacious media player libraries
104 Summary(hu.UTF-8):      Audacious médialejátszó könyvtár
105 Summary(pl.UTF-8):      Biblioteki odtwarzacza multimedialnego Audacious
106 Group:          Libraries
107 %{?with_qt:Requires:    Qt5Core >= 5.2}
108 Requires:       glib2 >= 1:2.32
109 Requires:       libguess >= 1.2
110 Obsoletes:      beep-media-player-libs
111 Obsoletes:      bmp-libs
112
113 %description libs
114 Audacious media player libraries.
115
116 %description libs -l hu.UTF-8
117 Audacious médialejátszó könyvtár.
118
119 %description libs -l pl.UTF-8
120 Biblioteki odtwarzacza multimedialnego Audacious.
121
122 %package devel
123 Summary:        Header files for Audacious media player
124 Summary(hu.UTF-8):      Az audacious fejlécfájljai
125 Summary(pl.UTF-8):      Pliki nagłówkowe odtwarzacza multimedialnego Audacious
126 Group:          Development/Libraries
127 Requires:       %{name}-libs = %{version}-%{release}
128 Requires:       glib2-devel >= 1:2.32
129 Obsoletes:      beep-media-player-devel
130 Obsoletes:      beep-media-player-static
131 Obsoletes:      bmp-devel
132 Obsoletes:      bmp-static
133
134 %description devel
135 Header files required for compiling Audacious media player plugins.
136
137 %description devel -l hu.UTF-8
138 Az audacious fejlécfájljai.
139
140 %description devel -l pl.UTF-8
141 Pliki nagłówkowe potrzebne do kompilowania wtyczek odtwarzacza
142 multimedialnego Audacious.
143
144 %package libs-gtk
145 Summary:        Audacious GTK+ GUI library
146 Summary(pl.UTF-8):      Biblioteka graficznego interfejsu GTK+ odtwarzacza multimedialnego Audacious
147 Group:          X11/Libraries
148 Requires:       %{name}-libs = %{version}-%{release}
149 Requires:       cairo >= 1.6
150 Requires:       gtk+2 >= 2:2.24
151 Requires:       pango >= 1:1.20
152
153 %description libs-gtk
154 Audacious GTK+ GUI library.
155
156 %description libs-gtk -l pl.UTF-8
157 Biblioteka graficznego interfejsu GTK+ odtwarzacza multimedialnego
158 Audacious.
159
160 %package libs-gtk-devel
161 Summary:        Header files for Audacious GTK+ GUI library
162 Summary(pl.UTF-8):      Pliki nagłówkowe graficznego interfejsu GTK+ odtwarzacza multimedialnego Audacious
163 Group:          X11/Development/Libraries
164 Requires:       %{name}-devel = %{version}-%{release}
165 Requires:       %{name}-libs-gtk = %{version}-%{release}
166 Requires:       cairo-devel >= 1.6
167 Requires:       gtk+2-devel >= 2:2.24
168 Requires:       pango-devel >= 1:1.20
169
170 %description libs-gtk-devel
171 Header files for Audacious GTK+ GUI library.
172
173 %description libs-gtk-devel -l pl.UTF-8
174 Pliki nagłówkowe graficznego interfejsu GTK+ odtwarzacza
175 multimedialnego Audacious.
176
177 %package libs-qt
178 Summary:        Audacious Qt GUI library
179 Summary(pl.UTF-8):      Biblioteka graficznego interfejsu Qt odtwarzacza multimedialnego Audacious
180 Group:          X11/Libraries
181 Requires:       %{name}-libs = %{version}-%{release}
182 Requires:       Qt5Gui >= 5.2
183 Requires:       Qt5Widgets >= 5.2
184
185 %description libs-qt
186 Audacious Qt GUI library.
187
188 %description libs-qt -l pl.UTF-8
189 Biblioteka graficznego interfejsu Qt odtwarzacza multimedialnego
190 Audacious.
191
192 %package libs-qt-devel
193 Summary:        Header files for Audacious Qt GUI library
194 Summary(pl.UTF-8):      Pliki nagłówkowe graficznego interfejsu Qt odtwarzacza multimedialnego Audacious
195 Group:          X11/Development/Libraries
196 Requires:       %{name}-devel = %{version}-%{release}
197 Requires:       %{name}-libs-qt = %{version}-%{release}
198 Requires:       Qt5Gui-devel >= 5.2
199 Requires:       Qt5Widgets-devel >= 5.2
200
201 %description libs-qt-devel
202 Header files for Audacious Qt GUI library.
203
204 %description libs-qt-devel -l pl.UTF-8
205 Pliki nagłówkowe graficznego interfejsu Qt odtwarzacza
206 multimedialnego Audacious.
207
208 %prep
209 %setup -q
210
211 # verbose build
212 %{__sed} -i '/^\.SILENT:/d' buildsys.mk.in
213
214 %build
215 %{__aclocal} -I m4
216 %{__autoconf}
217 %{__autoheader}
218 %configure \
219         %{!?with_gtk:--disable-gtk} \
220         %{?with_qt:--enable-qt} \
221         --enable-thunar
222 %{__make}
223
224 %install
225 rm -rf $RPM_BUILD_ROOT
226 install -d $RPM_BUILD_ROOT%{_libdir}/%{name}/{Container,Effect,General,Input,Output,Transport,Visualization}
227
228 %{__make} install \
229         DESTDIR=$RPM_BUILD_ROOT
230
231 %{__mv} $RPM_BUILD_ROOT%{_localedir}/fa{_IR,}
232 %{__mv} $RPM_BUILD_ROOT%{_localedir}/id{_ID,}
233 %{__mv} $RPM_BUILD_ROOT%{_localedir}/ml{_IN,}
234 %{__mv} $RPM_BUILD_ROOT%{_localedir}/pt{_PT,}
235 # outdated version of sr
236 %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/sr_RS
237 %find_lang %{name}
238
239 %clean
240 rm -rf $RPM_BUILD_ROOT
241
242 %post
243 %banner %{name} -e << EOF
244 Remember to install appropriate input plugins for files
245 you want to play!
246 EOF
247
248 %update_desktop_database_post
249
250 %postun
251 %update_desktop_database_postun
252
253 %post   libs -p /sbin/ldconfig
254 %postun libs -p /sbin/ldconfig
255
256 %post   libs-gtk -p /sbin/ldconfig
257 %postun libs-gtk -p /sbin/ldconfig
258
259 %post   libs-qt -p /sbin/ldconfig
260 %postun libs-qt -p /sbin/ldconfig
261
262 %files -f %{name}.lang
263 %defattr(644,root,root,755)
264 %doc AUTHORS COPYING
265 %attr(755,root,root) %{_bindir}/audacious
266 %attr(755,root,root) %{_bindir}/audtool
267 %{_mandir}/man1/audacious.1*
268 %{_mandir}/man1/audtool.1*
269 %dir %{_datadir}/audacious
270 %{_datadir}/audacious/images
271 %{_desktopdir}/audacious.desktop
272 %{_iconsdir}/hicolor/*/apps/audacious.*
273
274 %files libs
275 %defattr(644,root,root,755)
276 %attr(755,root,root) %{_libdir}/libaudcore.so.*.*.*
277 %attr(755,root,root) %ghost %{_libdir}/libaudcore.so.4
278 %attr(755,root,root) %{_libdir}/libaudtag.so.*.*.*
279 %attr(755,root,root) %ghost %{_libdir}/libaudtag.so.3
280 %dir %{_libdir}/%{name}
281 %dir %{_libdir}/%{name}/Container
282 %dir %{_libdir}/%{name}/Effect
283 %dir %{_libdir}/%{name}/General
284 %dir %{_libdir}/%{name}/Input
285 %dir %{_libdir}/%{name}/Output
286 %dir %{_libdir}/%{name}/Transport
287 %dir %{_libdir}/%{name}/Visualization
288
289 %files devel
290 %defattr(644,root,root,755)
291 %attr(755,root,root) %{_libdir}/libaudcore.so
292 %attr(755,root,root) %{_libdir}/libaudtag.so
293 %{_includedir}/audacious
294 %{_includedir}/libaudcore
295 %{_pkgconfigdir}/audacious.pc
296
297 %if %{with gtk}
298 %files libs-gtk
299 %defattr(644,root,root,755)
300 %attr(755,root,root) %{_libdir}/libaudgui.so.*.*.*
301 %attr(755,root,root) %ghost %{_libdir}/libaudgui.so.4
302
303 %files libs-gtk-devel
304 %defattr(644,root,root,755)
305 %attr(755,root,root) %{_libdir}/libaudgui.so
306 %{_includedir}/libaudgui
307 %endif
308
309 %if %{with qt}
310 %files libs-qt
311 %defattr(644,root,root,755)
312 %attr(755,root,root) %{_libdir}/libaudqt.so.*.*.*
313 %attr(755,root,root) %ghost %{_libdir}/libaudqt.so.1
314
315 %files libs-qt-devel
316 %defattr(644,root,root,755)
317 %attr(755,root,root) %{_libdir}/libaudqt.so
318 %{_includedir}/libaudqt
319 %endif
This page took 0.138458 seconds and 2 git commands to generate.