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