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