]>
Commit | Line | Data |
---|---|---|
82acba88 MC |
1 | # |
2 | # Conditional build: | |
84ac0588 | 3 | %bcond_with gconf # build without gconf support |
82acba88 | 4 | # |
d80a257b | 5 | |
82acba88 | 6 | Summary: Sound player with the WinAmp GUI, for Unix-based systems for GTK+2 |
fa7198b8 | 7 | Summary(pl.UTF-8): Odtwarzacz dźwięku z interfejsem WinAmpa dla GTK+2 |
82acba88 | 8 | Name: audacious |
d80a257b | 9 | Version: 1.3.1 |
f7e744a4 | 10 | Release: 1 |
82acba88 | 11 | License: GPL |
f7e744a4 | 12 | Group: X11/Applications/Sound |
d80a257b SS |
13 | Source0: http://static.audacious-media-player.org/release/%{name}-%{version}.tgz |
14 | # Source0-md5: 6dd04268a8b52a991cd1f561e27dca16 | |
82acba88 | 15 | Source1: mp3license |
16f2519a | 16 | Patch0: %{name}-desktop.patch |
f7e744a4 | 17 | Patch1: %{name}-home_etc.patch |
b6d3d1b4 | 18 | URL: http://audacious-media-player.org/ |
fc9e7122 | 19 | %{?with_gconf:BuildRequires: GConf2-devel >= 2.6.0} |
f7e744a4 | 20 | BuildRequires: autoconf >= 2.59 |
82acba88 | 21 | BuildRequires: automake |
f7e744a4 | 22 | BuildRequires: gettext-devel |
35553da9 | 23 | BuildRequires: gtk+2-devel >= 2:2.6.0 |
82acba88 | 24 | BuildRequires: home-etc-devel |
9b18c6e5 | 25 | BuildRequires: libglade2-devel >= 2.3.1 |
d80a257b SS |
26 | BuildRequires: libstdc++-devel |
27 | BuildRequires: mcs-devel | |
82acba88 | 28 | BuildRequires: pkgconfig |
f7e744a4 | 29 | BuildRequires: rpmbuild(macros) >= 1.198 |
35553da9 | 30 | Requires(post,postun): desktop-file-utils |
f7e744a4 | 31 | Requires: %{name}-libs = %{version}-%{release} |
82acba88 | 32 | Requires: audacious-output-plugin |
f7e744a4 | 33 | Obsoletes: audacious-static |
82acba88 MC |
34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
35 | ||
36 | %description | |
f7119ba7 MC |
37 | Audacious is a media player based on BMP. Since the development of the |
38 | former project had been terminated, this fork was created. | |
82acba88 | 39 | |
2c329446 JR |
40 | %description -l pl.UTF-8 |
41 | Audacious to odtwarzacz mediów oparty na BMP. Powstał on ponieważ | |
42 | rozwój pierwowzoru został zakończony. | |
82acba88 MC |
43 | |
44 | %package libs | |
45 | Summary: Audacious media player library | |
fa7198b8 | 46 | Summary(pl.UTF-8): Biblioteka odtwarzacza multimedialnego Audacious |
82acba88 MC |
47 | Group: X11/Applications/Sound |
48 | ||
49 | %description libs | |
50 | Audacious media player library. | |
51 | ||
2c329446 | 52 | %description libs -l pl.UTF-8 |
82acba88 MC |
53 | Biblioteka odtwarzacza multimedialnego Audacious. |
54 | ||
55 | %package devel | |
56 | Summary: Header files for Audacious media player | |
fa7198b8 | 57 | Summary(pl.UTF-8): Pliki nagłówkowe odtwarzacza multimedialnego Audacious |
82acba88 | 58 | Group: X11/Development/Libraries |
f7e744a4 MB |
59 | Requires: %{name}-libs = %{version}-%{release} |
60 | Requires: gtk+2-devel >= 2:2.6.0 | |
82acba88 MC |
61 | Requires: home-etc-devel |
62 | ||
63 | %description devel | |
64 | Header files required for compiling Audacious media player plugins. | |
65 | ||
2c329446 JR |
66 | %description devel -l pl.UTF-8 |
67 | Pliki nagłówkowe potrzebne do kompilowania wtyczek odtwarzacza | |
82acba88 MC |
68 | multimedialnego Audacious. |
69 | ||
82acba88 MC |
70 | %prep |
71 | %setup -q | |
f7119ba7 | 72 | %patch0 -p1 |
f7e744a4 | 73 | %patch1 -p1 |
82acba88 MC |
74 | |
75 | %build | |
82acba88 MC |
76 | %{__aclocal} -I m4 |
77 | %{__autoconf} | |
78 | %{__autoheader} | |
82acba88 | 79 | %configure \ |
f7e744a4 MB |
80 | --%{?with_gconf:en}%{!?with_gconf:dis}able-gconf \ |
81 | --enable-shared | |
82 | ||
82acba88 MC |
83 | %{__make} |
84 | ||
85 | %install | |
86 | rm -rf $RPM_BUILD_ROOT | |
f7e744a4 | 87 | install -d $RPM_BUILD_ROOT%{_libdir}/audacious/{Container,Effect,General,Input,Output,Visualization} |
82acba88 MC |
88 | |
89 | %{__make} install \ | |
f7e744a4 | 90 | DESTDIR=$RPM_BUILD_ROOT |
bf452245 | 91 | |
82acba88 MC |
92 | %find_lang %{name} |
93 | ||
94 | %clean | |
95 | rm -rf $RPM_BUILD_ROOT | |
96 | ||
97 | %post | |
9b18c6e5 | 98 | %banner %{name} -e << EOF |
99 | Remember to install appropriate input plugins for files | |
100 | you want to play! | |
101 | EOF | |
102 | ||
f7e744a4 | 103 | %update_desktop_database_post |
82acba88 MC |
104 | |
105 | %postun | |
f7e744a4 | 106 | %update_desktop_database_postun |
82acba88 MC |
107 | |
108 | %post libs -p /sbin/ldconfig | |
109 | %postun libs -p /sbin/ldconfig | |
110 | ||
111 | %files -f %{name}.lang | |
112 | %defattr(644,root,root,755) | |
113 | %attr(755,root,root) %{_bindir}/audacious | |
fc9e7122 | 114 | %attr(755,root,root) %{_bindir}/audtool |
82acba88 | 115 | %dir %{_libdir}/audacious |
f7e744a4 MB |
116 | %dir %{_libdir}/audacious/Container |
117 | %dir %{_libdir}/audacious/Effect | |
82acba88 MC |
118 | %dir %{_libdir}/audacious/General |
119 | %dir %{_libdir}/audacious/Input | |
120 | %dir %{_libdir}/audacious/Output | |
121 | %dir %{_libdir}/audacious/Visualization | |
9b18c6e5 | 122 | |
82acba88 | 123 | %{_mandir}/man*/* |
9b18c6e5 | 124 | |
82acba88 | 125 | %dir %{_datadir}/audacious |
f7e744a4 | 126 | %{_datadir}/audacious/glade |
82acba88 | 127 | %dir %{_datadir}/audacious/images |
9b18c6e5 | 128 | %{_datadir}/audacious/images/* |
f7e744a4 | 129 | %{_datadir}/audacious/Skins |
d80a257b | 130 | %{_datadir}/audacious/ui |
b888f253 | 131 | %{_desktopdir}/*.desktop |
132 | %{_pixmapsdir}/*.png | |
9b18c6e5 | 133 | |
134 | %files libs | |
135 | %defattr(644,root,root,755) | |
f2d1b80d SS |
136 | %attr(755,root,root) %{_libdir}/libaudacious.so.*.*.* |
137 | %ghost %attr(755,root,root) %{_libdir}/libaudacious.so.? | |
d80a257b SS |
138 | %dir %{_libdir}/audacious |
139 | %attr(755,root,root) %{_libdir}/audacious/libaudid3tag.so | |
82acba88 MC |
140 | |
141 | %files devel | |
142 | %defattr(644,root,root,755) | |
143 | %attr(755,root,root) %{_libdir}/libaudacious.so | |
f7e744a4 MB |
144 | %{_includedir}/audacious |
145 | %{_pkgconfigdir}/audacious.pc |