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