]>
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 |
5804e54e | 10 | Release: 2 |
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 |
5804e54e | 34 | # sr@Latn vs. sr@latin |
35 | Conflicts: glibc-misc < 6:2.7 | |
82acba88 MC |
36 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
37 | ||
38 | %description | |
f7119ba7 MC |
39 | Audacious is a media player based on BMP. Since the development of the |
40 | former project had been terminated, this fork was created. | |
82acba88 | 41 | |
2c329446 JR |
42 | %description -l pl.UTF-8 |
43 | Audacious to odtwarzacz mediów oparty na BMP. Powstał on ponieważ | |
44 | rozwój pierwowzoru został zakończony. | |
82acba88 MC |
45 | |
46 | %package libs | |
47 | Summary: Audacious media player library | |
fa7198b8 | 48 | Summary(pl.UTF-8): Biblioteka odtwarzacza multimedialnego Audacious |
82acba88 MC |
49 | Group: X11/Applications/Sound |
50 | ||
51 | %description libs | |
52 | Audacious media player library. | |
53 | ||
2c329446 | 54 | %description libs -l pl.UTF-8 |
82acba88 MC |
55 | Biblioteka odtwarzacza multimedialnego Audacious. |
56 | ||
57 | %package devel | |
58 | Summary: Header files for Audacious media player | |
fa7198b8 | 59 | Summary(pl.UTF-8): Pliki nagłówkowe odtwarzacza multimedialnego Audacious |
82acba88 | 60 | Group: X11/Development/Libraries |
f7e744a4 MB |
61 | Requires: %{name}-libs = %{version}-%{release} |
62 | Requires: gtk+2-devel >= 2:2.6.0 | |
82acba88 | 63 | Requires: home-etc-devel |
c5029b22 | 64 | Requires: mcs-devel |
82acba88 MC |
65 | |
66 | %description devel | |
67 | Header files required for compiling Audacious media player plugins. | |
68 | ||
2c329446 JR |
69 | %description devel -l pl.UTF-8 |
70 | Pliki nagłówkowe potrzebne do kompilowania wtyczek odtwarzacza | |
82acba88 MC |
71 | multimedialnego Audacious. |
72 | ||
82acba88 | 73 | %prep |
0801f6cc | 74 | %setup -q |
f7119ba7 | 75 | %patch0 -p1 |
f7e744a4 | 76 | %patch1 -p1 |
82acba88 MC |
77 | |
78 | %build | |
82acba88 MC |
79 | %{__aclocal} -I m4 |
80 | %{__autoconf} | |
81 | %{__autoheader} | |
82acba88 | 82 | %configure \ |
f7e744a4 MB |
83 | --%{?with_gconf:en}%{!?with_gconf:dis}able-gconf \ |
84 | --enable-shared | |
85 | ||
82acba88 MC |
86 | %{__make} |
87 | ||
88 | %install | |
89 | rm -rf $RPM_BUILD_ROOT | |
f7e744a4 | 90 | install -d $RPM_BUILD_ROOT%{_libdir}/audacious/{Container,Effect,General,Input,Output,Visualization} |
82acba88 MC |
91 | |
92 | %{__make} install \ | |
f7e744a4 | 93 | DESTDIR=$RPM_BUILD_ROOT |
bf452245 | 94 | |
5804e54e | 95 | [ -d $RPM_BUILD_ROOT%{_datadir}/locale/sr@latin ] || \ |
96 | mv -f $RPM_BUILD_ROOT%{_datadir}/locale/sr@{Latn,latin} | |
82acba88 MC |
97 | %find_lang %{name} |
98 | ||
99 | %clean | |
100 | rm -rf $RPM_BUILD_ROOT | |
101 | ||
102 | %post | |
9b18c6e5 | 103 | %banner %{name} -e << EOF |
104 | Remember to install appropriate input plugins for files | |
105 | you want to play! | |
106 | EOF | |
107 | ||
f7e744a4 | 108 | %update_desktop_database_post |
82acba88 MC |
109 | |
110 | %postun | |
f7e744a4 | 111 | %update_desktop_database_postun |
82acba88 MC |
112 | |
113 | %post libs -p /sbin/ldconfig | |
114 | %postun libs -p /sbin/ldconfig | |
115 | ||
116 | %files -f %{name}.lang | |
117 | %defattr(644,root,root,755) | |
118 | %attr(755,root,root) %{_bindir}/audacious | |
fc9e7122 | 119 | %attr(755,root,root) %{_bindir}/audtool |
82acba88 | 120 | %dir %{_libdir}/audacious |
f7e744a4 MB |
121 | %dir %{_libdir}/audacious/Container |
122 | %dir %{_libdir}/audacious/Effect | |
82acba88 MC |
123 | %dir %{_libdir}/audacious/General |
124 | %dir %{_libdir}/audacious/Input | |
125 | %dir %{_libdir}/audacious/Output | |
126 | %dir %{_libdir}/audacious/Visualization | |
9b18c6e5 | 127 | |
82acba88 | 128 | %{_mandir}/man*/* |
9b18c6e5 | 129 | |
82acba88 | 130 | %dir %{_datadir}/audacious |
f7e744a4 | 131 | %{_datadir}/audacious/glade |
82acba88 | 132 | %dir %{_datadir}/audacious/images |
9b18c6e5 | 133 | %{_datadir}/audacious/images/* |
f7e744a4 | 134 | %{_datadir}/audacious/Skins |
d80a257b | 135 | %{_datadir}/audacious/ui |
b888f253 | 136 | %{_desktopdir}/*.desktop |
137 | %{_pixmapsdir}/*.png | |
9b18c6e5 | 138 | |
139 | %files libs | |
140 | %defattr(644,root,root,755) | |
0801f6cc | 141 | %attr(755,root,root) %{_libdir}/libaudacious.so.*.*.* |
142 | %ghost %attr(755,root,root) %{_libdir}/libaudacious.so.? | |
d80a257b SS |
143 | %dir %{_libdir}/audacious |
144 | %attr(755,root,root) %{_libdir}/audacious/libaudid3tag.so | |
82acba88 MC |
145 | |
146 | %files devel | |
147 | %defattr(644,root,root,755) | |
0801f6cc | 148 | %attr(755,root,root) %{_libdir}/libaudacious.so |
f7e744a4 MB |
149 | %{_includedir}/audacious |
150 | %{_pkgconfigdir}/audacious.pc |