]>
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 |
0801f6cc | 9 | Version: 1.3.2 |
10 | Release: 1 | |
82acba88 | 11 | License: GPL |
f7e744a4 | 12 | Group: X11/Applications/Sound |
0801f6cc | 13 | Source0: http://static.audacious-media-player.org/release/%{name}-%{version}.tgz |
14 | # Source0-md5: b784a30604a2f9d84e9da310069f43f9 | |
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 | 61 | Requires: home-etc-devel |
c5029b22 | 62 | Requires: mcs-devel |
82acba88 MC |
63 | |
64 | %description devel | |
65 | Header files required for compiling Audacious media player plugins. | |
66 | ||
2c329446 JR |
67 | %description devel -l pl.UTF-8 |
68 | Pliki nagłówkowe potrzebne do kompilowania wtyczek odtwarzacza | |
82acba88 MC |
69 | multimedialnego Audacious. |
70 | ||
82acba88 | 71 | %prep |
0801f6cc | 72 | %setup -q |
f7119ba7 | 73 | %patch0 -p1 |
f7e744a4 | 74 | %patch1 -p1 |
82acba88 MC |
75 | |
76 | %build | |
82acba88 MC |
77 | %{__aclocal} -I m4 |
78 | %{__autoconf} | |
79 | %{__autoheader} | |
82acba88 | 80 | %configure \ |
f7e744a4 MB |
81 | --%{?with_gconf:en}%{!?with_gconf:dis}able-gconf \ |
82 | --enable-shared | |
83 | ||
82acba88 MC |
84 | %{__make} |
85 | ||
86 | %install | |
87 | rm -rf $RPM_BUILD_ROOT | |
f7e744a4 | 88 | install -d $RPM_BUILD_ROOT%{_libdir}/audacious/{Container,Effect,General,Input,Output,Visualization} |
82acba88 MC |
89 | |
90 | %{__make} install \ | |
f7e744a4 | 91 | DESTDIR=$RPM_BUILD_ROOT |
bf452245 | 92 | |
82acba88 MC |
93 | %find_lang %{name} |
94 | ||
95 | %clean | |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | ||
98 | %post | |
9b18c6e5 | 99 | %banner %{name} -e << EOF |
100 | Remember to install appropriate input plugins for files | |
101 | you want to play! | |
102 | EOF | |
103 | ||
f7e744a4 | 104 | %update_desktop_database_post |
82acba88 MC |
105 | |
106 | %postun | |
f7e744a4 | 107 | %update_desktop_database_postun |
82acba88 MC |
108 | |
109 | %post libs -p /sbin/ldconfig | |
110 | %postun libs -p /sbin/ldconfig | |
111 | ||
112 | %files -f %{name}.lang | |
113 | %defattr(644,root,root,755) | |
114 | %attr(755,root,root) %{_bindir}/audacious | |
fc9e7122 | 115 | %attr(755,root,root) %{_bindir}/audtool |
82acba88 | 116 | %dir %{_libdir}/audacious |
f7e744a4 MB |
117 | %dir %{_libdir}/audacious/Container |
118 | %dir %{_libdir}/audacious/Effect | |
82acba88 MC |
119 | %dir %{_libdir}/audacious/General |
120 | %dir %{_libdir}/audacious/Input | |
121 | %dir %{_libdir}/audacious/Output | |
122 | %dir %{_libdir}/audacious/Visualization | |
9b18c6e5 | 123 | |
82acba88 | 124 | %{_mandir}/man*/* |
9b18c6e5 | 125 | |
82acba88 | 126 | %dir %{_datadir}/audacious |
f7e744a4 | 127 | %{_datadir}/audacious/glade |
82acba88 | 128 | %dir %{_datadir}/audacious/images |
9b18c6e5 | 129 | %{_datadir}/audacious/images/* |
f7e744a4 | 130 | %{_datadir}/audacious/Skins |
d80a257b | 131 | %{_datadir}/audacious/ui |
b888f253 | 132 | %{_desktopdir}/*.desktop |
133 | %{_pixmapsdir}/*.png | |
9b18c6e5 | 134 | |
135 | %files libs | |
136 | %defattr(644,root,root,755) | |
0801f6cc | 137 | %attr(755,root,root) %{_libdir}/libaudacious.so.*.*.* |
138 | %ghost %attr(755,root,root) %{_libdir}/libaudacious.so.? | |
d80a257b SS |
139 | %dir %{_libdir}/audacious |
140 | %attr(755,root,root) %{_libdir}/audacious/libaudid3tag.so | |
82acba88 MC |
141 | |
142 | %files devel | |
143 | %defattr(644,root,root,755) | |
0801f6cc | 144 | %attr(755,root,root) %{_libdir}/libaudacious.so |
f7e744a4 MB |
145 | %{_includedir}/audacious |
146 | %{_pkgconfigdir}/audacious.pc |