[1158] | 1 | %define _audacious_ver 2.3-1%{?_dist_release} |
---|
| 2 | %define _gtk2_ver 2.8.0 |
---|
| 3 | %define _glib2_ver 2.10.0 |
---|
| 4 | # to build OSD plugin, pango >= 1.14.7, cairo >= 1.2.6 are required |
---|
| 5 | %define _pango_ver 1.8.0 |
---|
| 6 | %define _libvorbis_ver 1.0 |
---|
| 7 | %define _libogg_ver 1.0 |
---|
| 8 | %define _flac_ver 1.2.0 |
---|
| 9 | |
---|
| 10 | #%%define extraver alpha5 |
---|
| 11 | %define plugindir %{_libdir}/audacious |
---|
| 12 | |
---|
| 13 | Summary: Audacious Media Player extra plugins |
---|
| 14 | Summary(ja): Audacious Media Player 追加プラグイン集 |
---|
| 15 | Name: audacious-plugins-extra |
---|
| 16 | Version: 2.3 |
---|
| 17 | Release: 2%{?_dist_release} |
---|
| 18 | License: GPLv2 |
---|
| 19 | Group: Applications/Multimedia |
---|
| 20 | URL: http://audacious-media-player.org/ |
---|
| 21 | Source: http://distfiles.atheme.org/audacious-plugins-%{version}%{?extraver:-%extraver}.tgz |
---|
| 22 | |
---|
| 23 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 24 | BuildRequires: audacious-devel >= %{_audacious_ver} |
---|
| 25 | BuildRequires: glib2-devel >= %{_glib2_ver}, gtk2-devel >= %{_gtk2_ver} |
---|
| 26 | BuildRequires: pango-devel >= %{_pango_ver} |
---|
| 27 | BuildRequires: libogg-devel >= %{_libogg_ver} |
---|
| 28 | BuildRequires: libvorbis-devel >= %{_libvorbis_ver} |
---|
| 29 | BuildRequires: flac-devel >= %{_flac_ver} |
---|
| 30 | BuildRequires: self-build-faad2 |
---|
| 31 | BuildRequires: self-build-lame |
---|
| 32 | BuildRequires: self-build-libmad |
---|
| 33 | BuildRequires: self-build-ffmpeg |
---|
| 34 | |
---|
| 35 | Vendor: Project Vine |
---|
| 36 | Distribution: Vine Linux |
---|
| 37 | |
---|
| 38 | %description |
---|
| 39 | This package provides extra plugins for audio input and output. |
---|
| 40 | |
---|
| 41 | # aac |
---|
| 42 | %package -n audacious-aac |
---|
| 43 | Summary: Audacious plugin to play AAC files |
---|
| 44 | Summary(ja): AAC ファイルを再生するための Audacious プラグイン |
---|
| 45 | Group: Applications/Multimedia |
---|
| 46 | Requires: audacious >= %{_audacious_ver} |
---|
| 47 | |
---|
| 48 | %description -n audacious-aac |
---|
| 49 | This package contains a input plugin that enables playback of AAC files |
---|
| 50 | in Audacious. |
---|
| 51 | |
---|
| 52 | %description -l ja -n audacious-aac |
---|
| 53 | このパッケージには、Audacious で AAC ファイル (*.aac) を再生するため入力 |
---|
| 54 | プラグインが含まれています。 |
---|
| 55 | |
---|
| 56 | # ffaudio |
---|
| 57 | %package -n audacious-ffmpeg |
---|
| 58 | Summary: Audacious plugin to play TTA/WMA files |
---|
| 59 | Summary(ja): TTA/WMA ファイルを再生するための Audacious プラグイン |
---|
| 60 | Group: Applications/Multimedia |
---|
| 61 | Requires: audacious >= %{_audacious_ver} |
---|
| 62 | |
---|
| 63 | %description -n audacious-ffmpeg |
---|
| 64 | This package contains a input plugin that enables playback of TTA and |
---|
| 65 | WMA files in Audacious. |
---|
| 66 | |
---|
| 67 | %description -l ja -n audacious-ffmpeg |
---|
| 68 | このパッケージには、Audacious で TTA ファイル (*.tta) や WMA ファイル (*.wma) |
---|
| 69 | を再生するため入力プラグインが含まれています。 |
---|
| 70 | |
---|
| 71 | # madplug |
---|
| 72 | %package -n audacious-mad |
---|
| 73 | Summary: Audacious plugin to play MP3 files |
---|
| 74 | Summary(ja): MP3 ファイルを再生するための Audacious プラグイン |
---|
| 75 | Group: Applications/Multimedia |
---|
| 76 | Requires: audacious >= %{_audacious_ver} |
---|
| 77 | |
---|
| 78 | %description -n audacious-mad |
---|
| 79 | This package contains a input plugin that enables playback of MP3 files |
---|
| 80 | in Audacious. |
---|
| 81 | |
---|
| 82 | %description -l ja -n audacious-mad |
---|
| 83 | このパッケージには、Audacious で MP3 ファイル (*.mp3) を再生するため入力 |
---|
| 84 | プラグインが含まれています。 |
---|
| 85 | |
---|
| 86 | # filewriter_mp3 |
---|
| 87 | %package -n audacious-lame |
---|
| 88 | Summary: Audacious plugin to encode MP3 files using LAME |
---|
| 89 | Summary(ja): LAME を利用して MP3 ファイルをエンコードするための Audacious プラグイン |
---|
| 90 | Group: Applications/Multimedia |
---|
| 91 | Requires: audacious >= %{_audacious_ver} |
---|
| 92 | |
---|
| 93 | %description -n audacious-lame |
---|
| 94 | This package contains a output plugin that enables encoding of MP3 files |
---|
| 95 | using LAME in Audacious. |
---|
| 96 | |
---|
| 97 | %description -l ja -n audacious-lame |
---|
| 98 | このパッケージには、Audacious で LAME を利用して MP3 ファイル (*.mp3) を |
---|
| 99 | エンコードするため出力プラグインが含まれています。 |
---|
| 100 | |
---|
| 101 | |
---|
| 102 | %prep |
---|
| 103 | %setup -q -n audacious-plugins-%{version}%{?extraver:-%extraver} |
---|
| 104 | |
---|
| 105 | %build |
---|
| 106 | %configure \ |
---|
| 107 | --enable-ipv6 \ |
---|
| 108 | --enable-chardet \ |
---|
| 109 | --enable-aac \ |
---|
| 110 | --enable-mp3 \ |
---|
| 111 | --enable-ffaudio \ |
---|
| 112 | --enable-filewriter \ |
---|
| 113 | --disable-esd \ |
---|
| 114 | --disable-pulse \ |
---|
| 115 | --disable-icecast \ |
---|
| 116 | --disable-rocklight \ |
---|
| 117 | --disable-lirc \ |
---|
| 118 | --disable-evdevplug \ |
---|
| 119 | --disable-hotkey \ |
---|
| 120 | --disable-gnomeshortcuts \ |
---|
| 121 | --disable-statusicon \ |
---|
| 122 | --disable-aosd \ |
---|
| 123 | --disable-adplug \ |
---|
| 124 | --disable-vorbis \ |
---|
| 125 | --disable-flacng \ |
---|
| 126 | --disable-wavpack \ |
---|
| 127 | --disable-sndfile \ |
---|
| 128 | --disable-modplug \ |
---|
| 129 | --disable-jack \ |
---|
| 130 | --disable-sid \ |
---|
| 131 | --disable-oss \ |
---|
| 132 | --disable-alsa \ |
---|
| 133 | --disable-amidiplug \ |
---|
| 134 | --disable-cdaudio \ |
---|
| 135 | --disable-streambrowser \ |
---|
| 136 | --disable-neon \ |
---|
| 137 | --disable-mms \ |
---|
| 138 | --disable-mtp_up \ |
---|
| 139 | --disable-bluetooth \ |
---|
| 140 | --disable-paranormal \ |
---|
| 141 | --disable-cue \ |
---|
| 142 | --disable-projectm \ |
---|
| 143 | --disable-projectm-1.0 \ |
---|
| 144 | --disable-bs2b \ |
---|
| 145 | --disable-resample |
---|
| 146 | |
---|
| 147 | %__make %{_smp_mflags} VERBOSE=1 |
---|
| 148 | |
---|
| 149 | %install |
---|
| 150 | %__rm -rf %{buildroot} |
---|
| 151 | %__make DESTDIR=%{buildroot} install |
---|
| 152 | |
---|
| 153 | # rename for alternatives |
---|
| 154 | pushd $RPM_BUILD_ROOT%{plugindir}/Output |
---|
| 155 | mkdir filewriter |
---|
| 156 | mv filewriter.so filewriter/lame.so |
---|
| 157 | popd |
---|
| 158 | |
---|
| 159 | # remove unneeded files |
---|
| 160 | %__rm -rf $RPM_BUILD_ROOT%{plugindir}/Container |
---|
| 161 | %__rm -rf $RPM_BUILD_ROOT%{plugindir}/Effect |
---|
| 162 | %__rm -rf $RPM_BUILD_ROOT%{plugindir}/General |
---|
| 163 | #%__rm -rf $RPM_BUILD_ROOT%{plugindir}/Output |
---|
| 164 | %__rm -rf $RPM_BUILD_ROOT%{plugindir}/Transport |
---|
| 165 | %__rm -rf $RPM_BUILD_ROOT%{plugindir}/Visualization |
---|
| 166 | %__rm -rf $RPM_BUILD_ROOT%{_datadir}/audacious |
---|
| 167 | %__rm -rf $RPM_BUILD_ROOT%{_datadir}/locale |
---|
| 168 | |
---|
| 169 | rm -f $RPM_BUILD_ROOT%{plugindir}/Input/console.so |
---|
| 170 | rm -f $RPM_BUILD_ROOT%{plugindir}/Input/metronom.so |
---|
| 171 | rm -f $RPM_BUILD_ROOT%{plugindir}/Input/psf2.so |
---|
| 172 | rm -f $RPM_BUILD_ROOT%{plugindir}/Input/tonegen.so |
---|
| 173 | rm -f $RPM_BUILD_ROOT%{plugindir}/Input/vtx.so |
---|
| 174 | rm -f $RPM_BUILD_ROOT%{plugindir}/Input/xsf.so |
---|
| 175 | rm -f $RPM_BUILD_ROOT%{plugindir}/Output/crossfade.so |
---|
| 176 | rm -f $RPM_BUILD_ROOT%{plugindir}/Output/null.so |
---|
| 177 | |
---|
| 178 | %clean |
---|
| 179 | %__rm -rf %{buildroot} |
---|
| 180 | |
---|
| 181 | %post -n audacious-lame |
---|
| 182 | /sbin/update-alternatives --install \ |
---|
| 183 | %{plugindir}/Output/filewriter.so \ |
---|
| 184 | filewriter.so \ |
---|
| 185 | %{plugindir}/Output/filewriter/lame.so 20 |
---|
| 186 | |
---|
| 187 | %postun -n audacious-lame |
---|
| 188 | if [ $1 = 0 ]; then |
---|
| 189 | /sbin/update-alternatives --remove filewriter.so %{plugindir}/Output/filewriter/lame.so |
---|
| 190 | /sbin/update-alternatives --auto filewriter.so |
---|
| 191 | fi |
---|
| 192 | |
---|
| 193 | %posttrans -n audacious-lame |
---|
| 194 | # fix broken symlink if it's there |
---|
| 195 | if [ ! -f %{plugindir}/Output/filewriter.so ] ; then |
---|
| 196 | /sbin/update-alternatives --auto filewriter.so |
---|
| 197 | fi |
---|
| 198 | |
---|
| 199 | |
---|
| 200 | %files -n audacious-aac |
---|
| 201 | %defattr(-,root,root,-) |
---|
| 202 | %{plugindir}/Input/aac.so |
---|
| 203 | |
---|
| 204 | %files -n audacious-ffmpeg |
---|
| 205 | %defattr(-,root,root,-) |
---|
| 206 | %{plugindir}/Input/ffaudio.so |
---|
| 207 | |
---|
| 208 | %files -n audacious-mad |
---|
| 209 | %defattr(-,root,root,-) |
---|
| 210 | %{plugindir}/Input/madplug.so |
---|
| 211 | |
---|
| 212 | %files -n audacious-lame |
---|
| 213 | %defattr(-,root,root,-) |
---|
| 214 | %{plugindir}/Output/filewriter/lame.so |
---|
| 215 | |
---|
| 216 | %changelog |
---|
| 217 | * Sat Jun 5 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.3-2 |
---|
| 218 | - added aac, ffaudio, filewriter_mp3 plugins |
---|
| 219 | |
---|
| 220 | * Sat May 29 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.3-1 |
---|
| 221 | - new upstream release |
---|
| 222 | |
---|
| 223 | * Thu Aug 13 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.1-2 |
---|
| 224 | - updated BuildRequires |
---|
| 225 | |
---|
| 226 | * Sun Aug 9 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.1-1 |
---|
| 227 | - split mad plugin from audacious-plugins package |
---|