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