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