[521] | 1 | # If you want to skip building the firmware subpackage, define the macro |
---|
| 2 | # _without_firmware to 1. This is not the actual firmware itself |
---|
| 3 | # (see alsa-firmware), it is some complementary tools. |
---|
| 4 | # Do *NOT* set it to zero or have a commented out define here, or it will not |
---|
| 5 | # work. (RPM spec file voodoo) |
---|
| 6 | |
---|
| 7 | %ifarch ppc ppc64 |
---|
| 8 | # sb16_csp doesn't build on PPC; see bug #219010 |
---|
| 9 | %{?!_without_tools: %define builddirstools as10k1 echomixer envy24control hdspconf hdspmixer rmedigicontrol sbiload sscape_ctl us428control } |
---|
| 10 | %else |
---|
| 11 | %{?!_without_tools: %define builddirstools as10k1 echomixer envy24control hdspconf hdspmixer rmedigicontrol sbiload sb16_csp sscape_ctl us428control } |
---|
| 12 | %endif |
---|
| 13 | |
---|
| 14 | %{?!_without_firmware: %define builddirsfirmw hdsploader mixartloader usx2yloader vxloader } |
---|
| 15 | |
---|
| 16 | # The source tarball has been pruned to remove the "ac3dec" directory, due |
---|
| 17 | # to legal concerns that the contents might be subject to patent claims |
---|
| 18 | |
---|
| 19 | # Note that the Version is intended to coincide with the version of ALSA |
---|
| 20 | # included with the Fedora kernel, rather than necessarily the very latest |
---|
| 21 | # upstream version of alsa-tools |
---|
| 22 | |
---|
| 23 | Summary: Specialist tools for ALSA |
---|
| 24 | Name: alsa-tools |
---|
[1083] | 25 | Version: 1.0.23 |
---|
[3525] | 26 | Release: 2%{?_dist_release} |
---|
[521] | 27 | |
---|
| 28 | # Checked at least one source file from all the sub-projects contained in |
---|
| 29 | # the source tarball and they are consistent GPLv2+ - TJ 2007-11-15 |
---|
| 30 | License: GPLv2+ |
---|
| 31 | Group: Applications/Multimedia |
---|
| 32 | URL: http://www.alsa-project.org/ |
---|
| 33 | Source0: %{name}-%{version}-pruned.tar.bz2 |
---|
| 34 | |
---|
| 35 | # The icons below were created by Tim Jackson from screenshots of the |
---|
| 36 | # apps in question. They suck, a lot. Better alternatives welcome! |
---|
| 37 | Source1: envy24control.desktop |
---|
| 38 | Source2: envy24control.png |
---|
| 39 | Source3: echomixer.desktop |
---|
| 40 | Source4: echomixer.png |
---|
| 41 | Source5: 90-alsa-tools-firmware.rules |
---|
| 42 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
---|
| 43 | BuildRequires: alsa-lib-devel >= %{version} |
---|
| 44 | %if 0%{!?_without_tools:1} |
---|
| 45 | BuildRequires: gtk+-devel |
---|
| 46 | BuildRequires: gtk2-devel |
---|
| 47 | BuildRequires: fltk-devel |
---|
| 48 | Buildrequires: desktop-file-utils |
---|
[1083] | 49 | Requires: xorg-x11-fonts-misc |
---|
[521] | 50 | %endif |
---|
| 51 | |
---|
[1083] | 52 | |
---|
[521] | 53 | %description |
---|
| 54 | This package contains several specialist tools for use with ALSA, including |
---|
| 55 | a number of programs that provide access to special hardware facilities on |
---|
| 56 | certain sound cards. |
---|
| 57 | |
---|
| 58 | * as10k1 - AS10k1 Assembler |
---|
| 59 | %ifnarch ppc ppc64 |
---|
| 60 | * cspctl - Sound Blaster 16 ASP/CSP control program |
---|
| 61 | %endif |
---|
| 62 | * echomixer - Mixer for Echo Audio (indigo) devices |
---|
| 63 | * envy24control - Control tool for Envy24 (ice1712) based soundcards |
---|
| 64 | * hdspmixer - Mixer for the RME Hammerfall DSP cards |
---|
| 65 | * rmedigicontrol - Control panel for RME Hammerfall cards |
---|
| 66 | * sbiload - An OPL2/3 FM instrument loader for ALSA sequencer |
---|
| 67 | * sscape_ctl - ALSA SoundScape control utility |
---|
| 68 | * us428control - Control tool for Tascam 428 |
---|
| 69 | |
---|
| 70 | |
---|
| 71 | %package firmware |
---|
| 72 | Summary: ALSA tools for uploading firmware to some soundcards |
---|
| 73 | Group: Applications/System |
---|
| 74 | Requires: udev |
---|
| 75 | Requires: alsa-firmware |
---|
| 76 | Requires: fxload |
---|
| 77 | |
---|
| 78 | |
---|
| 79 | %description firmware |
---|
| 80 | This package contains tools for flashing firmware into certain sound cards. |
---|
| 81 | The following tools are available: |
---|
| 82 | |
---|
| 83 | * hdsploader - for RME Hammerfall DSP cards |
---|
| 84 | * mixartloader - for Digigram miXart soundcards |
---|
| 85 | * vxloader - for Digigram VX soundcards |
---|
| 86 | * usx2yloader - second phase firmware loader for Tascam USX2Y USB soundcards |
---|
| 87 | |
---|
| 88 | |
---|
| 89 | %prep |
---|
| 90 | %setup -q -n %{name}-%{version} |
---|
| 91 | |
---|
| 92 | |
---|
| 93 | %build |
---|
| 94 | mv seq/sbiload . ; rm -rf seq |
---|
| 95 | for i in %{?builddirstools:%builddirstools} %{?builddirsfirmw:%builddirsfirmw} |
---|
| 96 | do |
---|
| 97 | cd $i ; %configure |
---|
| 98 | %{__make} %{?_smp_mflags} || exit 1 |
---|
| 99 | cd .. |
---|
| 100 | done |
---|
| 101 | |
---|
| 102 | |
---|
| 103 | %install |
---|
| 104 | %{__rm} -rf $RPM_BUILD_ROOT |
---|
| 105 | |
---|
| 106 | mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/{pixmaps,applications} |
---|
| 107 | |
---|
| 108 | for i in %{?builddirstools:%builddirstools} %{?builddirsfirmw:%builddirsfirmw} |
---|
| 109 | do |
---|
| 110 | case $i in |
---|
| 111 | echomixer) |
---|
| 112 | (cd $i ; %makeinstall ; install -m 644 %{SOURCE4} %{buildroot}%{_datadir}/pixmaps/ ; install -m 644 %{SOURCE3} ${RPM_BUILD_ROOT}%{_datadir}/applications/ ) || exit 1 |
---|
| 113 | ;; |
---|
| 114 | envy24control) |
---|
| 115 | (cd $i ; %makeinstall ; install -m 644 %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/ ; install -m 644 %{SOURCE1} ${RPM_BUILD_ROOT}%{_datadir}/applications/ ) || exit 1 |
---|
| 116 | ;; |
---|
| 117 | hdspconf) |
---|
| 118 | (cd $i ; %makeinstall pixmapdir=${RPM_BUILD_ROOT}%{_datadir}/pixmaps desktopdir=${RPM_BUILD_ROOT}%{_datadir}/applications ) || exit 1 |
---|
| 119 | ;; |
---|
| 120 | hdspmixer) |
---|
| 121 | (cd $i ; %makeinstall pixmapdir=${RPM_BUILD_ROOT}%{_datadir}/pixmaps desktopdir=${RPM_BUILD_ROOT}%{_datadir}/applications ) || exit 1 |
---|
| 122 | ;; |
---|
| 123 | usx2yloader) |
---|
| 124 | (cd $i ; %makeinstall hotplugdir=${RPM_BUILD_ROOT}%{_sysconfdir}/hotplug/usb) || exit 1 |
---|
| 125 | ;; |
---|
| 126 | *) (cd $i ; %makeinstall) || exit 1 |
---|
| 127 | esac |
---|
| 128 | if [[ -s "${i}"/README ]] |
---|
| 129 | then |
---|
| 130 | if [[ ! -d "${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version}/${i}" ]] |
---|
| 131 | then |
---|
| 132 | mkdir -p "${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version}/${i}" |
---|
| 133 | fi |
---|
| 134 | cp "${i}"/README "${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version}/${i}" |
---|
| 135 | fi |
---|
| 136 | if [[ -s "${i}"/COPYING ]] |
---|
| 137 | then |
---|
| 138 | if [[ ! -d "${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version}/${i}" ]] |
---|
| 139 | then |
---|
| 140 | mkdir -p "${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version}/${i}" |
---|
| 141 | fi |
---|
| 142 | cp "${i}"/COPYING "${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{version}/${i}" |
---|
| 143 | fi |
---|
| 144 | if [[ -s ${RPM_BUILD_ROOT}%{_datadir}/applications/${i}.desktop ]] ; then |
---|
| 145 | desktop-file-install --vendor vine \ |
---|
| 146 | --add-category "HardwareSettings" \ |
---|
| 147 | --delete-original \ |
---|
| 148 | --dir $RPM_BUILD_ROOT%{_datadir}/applications \ |
---|
| 149 | ${RPM_BUILD_ROOT}%{_datadir}/applications/${i}.desktop |
---|
| 150 | fi |
---|
| 151 | done |
---|
| 152 | |
---|
| 153 | # convert hotplug stuff to udev |
---|
| 154 | rm -f ${RPM_BUILD_ROOT}%{_sysconfdir}/hotplug/usb/tascam_fw.usermap |
---|
| 155 | mkdir -p ${RPM_BUILD_ROOT}/lib/udev |
---|
| 156 | mv ${RPM_BUILD_ROOT}%{_sysconfdir}/hotplug/usb/* ${RPM_BUILD_ROOT}/lib/udev |
---|
| 157 | mkdir -p ${RPM_BUILD_ROOT}%{_sysconfdir}/udev/rules.d |
---|
| 158 | install -m 644 %{SOURCE5} ${RPM_BUILD_ROOT}%{_sysconfdir}/udev/rules.d |
---|
| 159 | |
---|
| 160 | %clean |
---|
| 161 | %{__rm} -rf $RPM_BUILD_ROOT |
---|
| 162 | |
---|
| 163 | %if 0%{!?_without_tools:1} |
---|
| 164 | %files |
---|
| 165 | %defattr(-,root,root,-) |
---|
| 166 | %dir %{_docdir}/%{name}-%{version} |
---|
| 167 | %doc %{_docdir}/%{name}-%{version}/as10k1 |
---|
| 168 | %doc %{_docdir}/%{name}-%{version}/echomixer |
---|
| 169 | %doc %{_docdir}/%{name}-%{version}/envy24control |
---|
| 170 | %doc %{_docdir}/%{name}-%{version}/hdspconf |
---|
| 171 | %doc %{_docdir}/%{name}-%{version}/hdspmixer |
---|
| 172 | %doc %{_docdir}/%{name}-%{version}/rmedigicontrol |
---|
| 173 | %doc %{_docdir}/%{name}-%{version}/sbiload |
---|
| 174 | %{_bindir}/as10k1 |
---|
| 175 | %{_bindir}/echomixer |
---|
| 176 | %{_bindir}/envy24control |
---|
| 177 | %{_bindir}/hdspconf |
---|
| 178 | %{_bindir}/hdspmixer |
---|
| 179 | %{_bindir}/rmedigicontrol |
---|
| 180 | %{_bindir}/sbiload |
---|
| 181 | %{_bindir}/sscape_ctl |
---|
| 182 | %{_bindir}/us428control |
---|
| 183 | %{_datadir}/applications/vine-echomixer.desktop |
---|
| 184 | %{_datadir}/applications/vine-envy24control.desktop |
---|
| 185 | %{_datadir}/applications/vine-hdspconf.desktop |
---|
| 186 | %{_datadir}/applications/vine-hdspmixer.desktop |
---|
| 187 | %{_datadir}/man/man1/envy24control.1.gz |
---|
| 188 | %{_datadir}/pixmaps/echomixer.png |
---|
| 189 | %{_datadir}/pixmaps/envy24control.png |
---|
| 190 | %{_datadir}/pixmaps/hdspconf.png |
---|
| 191 | %{_datadir}/pixmaps/hdspmixer.png |
---|
| 192 | %{_datadir}/sounds/ |
---|
| 193 | |
---|
| 194 | # sb16_csp stuff which is excluded for PPCx |
---|
| 195 | %ifnarch ppc ppc64 |
---|
| 196 | %doc %{_docdir}/%{name}-%{version}/sb16_csp |
---|
| 197 | %{_bindir}/cspctl |
---|
| 198 | %{_datadir}/man/man1/cspctl.1.gz |
---|
| 199 | %endif |
---|
| 200 | |
---|
| 201 | %endif |
---|
| 202 | |
---|
| 203 | %if 0%{!?_without_firmware:1} |
---|
| 204 | %files firmware |
---|
| 205 | %defattr(-,root,root,-) |
---|
| 206 | %doc %{_docdir}/%{name}-%{version}/hdsploader |
---|
| 207 | %doc %{_docdir}/%{name}-%{version}/mixartloader |
---|
| 208 | %doc %{_docdir}/%{name}-%{version}/usx2yloader |
---|
| 209 | %doc %{_docdir}/%{name}-%{version}/vxloader |
---|
| 210 | %config(noreplace) %{_sysconfdir}/udev/rules.d/*.rules |
---|
| 211 | /lib/udev/tascam_fpga |
---|
| 212 | /lib/udev/tascam_fw |
---|
| 213 | %{_bindir}/hdsploader |
---|
| 214 | %{_bindir}/mixartloader |
---|
| 215 | %{_bindir}/usx2yloader |
---|
| 216 | %{_bindir}/vxloader |
---|
| 217 | %endif |
---|
| 218 | |
---|
| 219 | %changelog |
---|
[3525] | 220 | * Sun Apr 17 2011 Shu KONNO <owa@bg.wakwak.com> - 1.0.23-2 |
---|
| 221 | - rebuilt with rpm-4.8.1-3 |
---|
| 222 | |
---|
[1083] | 223 | * Fri May 28 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.0.23-1 |
---|
| 224 | - new upstream release |
---|
| 225 | |
---|
[521] | 226 | * Thu Oct 8 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.0.21-1 |
---|
| 227 | - new upstream release |
---|
| 228 | |
---|
| 229 | * Thu Jul 2 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.0.20-1 |
---|
| 230 | - new upstream release |
---|
| 231 | |
---|
| 232 | * Thu Feb 19 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.0.19-1 |
---|
| 233 | - initial build for Vine Linux |
---|
| 234 | |
---|
| 235 | * Sat Jan 24 2009 Tim Jackson <rpm@timj.co.uk> - 1.0.19-1 |
---|
| 236 | - Update to version 1.0.19 |
---|
| 237 | - Mark udev rules as config |
---|
| 238 | |
---|
| 239 | * Fri Dec 5 2008 Jon McCann <jmccann@redhat.com> - 1.0.17-2 |
---|
| 240 | - Convert hotplug stuff to udev |
---|
| 241 | |
---|
| 242 | * Thu Jul 17 2008 Tim Jackson <rpm@timj.co.uk> - 1.0.17-1 |
---|
| 243 | - Update to version 1.0.17 |
---|
| 244 | |
---|
| 245 | * Mon May 19 2008 Tim Jackson <rpm@timj.co.uk> - 1.0.16-4 |
---|
| 246 | - Make it build cleanly on ppc and ppc64 by excluding sb16_csp |
---|
| 247 | |
---|
| 248 | * Sun May 18 2008 Tim Jackson <rpm@timj.co.uk> - 1.0.16-3 |
---|
| 249 | - Really enable firmware subpackage |
---|
| 250 | |
---|
| 251 | * Sun May 18 2008 Tim Jackson <rpm@timj.co.uk> - 1.0.16-2 |
---|
| 252 | - Enable firmware subpackage - the accompanying alsa-firmware package is |
---|
| 253 | finally in Fedora |
---|
| 254 | |
---|
| 255 | * Sat Mar 01 2008 Tim Jackson <rpm@timj.co.uk> - 1.0.16-1 |
---|
| 256 | - Update to upstream 1.0.16 (fixes #434473) |
---|
| 257 | |
---|
| 258 | * Wed Feb 20 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.0.15-3 |
---|
| 259 | - Autorebuild for GCC 4.3 |
---|
| 260 | |
---|
| 261 | * Sat Jan 05 2008 Tim Jackson <rpm@timj.co.uk> - 1.0.15-2 |
---|
| 262 | - Update License tag to GPLv2+ |
---|
| 263 | - ExcludeArch ppc64 (bug #219010) |
---|
| 264 | |
---|
| 265 | * Sat Jan 05 2008 Tim Jackson <rpm@timj.co.uk> - 1.0.15-1 |
---|
| 266 | - Update to upstream 1.0.15 |
---|
| 267 | - Add icon for envy24control |
---|
| 268 | - Build echomixer |
---|
| 269 | |
---|
| 270 | * Sat Dec 09 2006 Tim Jackson <rpm@timj.co.uk> - 1.0.12-4 |
---|
| 271 | - ExcludeArch ppc (#219010) |
---|
| 272 | |
---|
| 273 | * Sun Nov 26 2006 Tim Jackson <rpm@timj.co.uk> - 1.0.12-3 |
---|
| 274 | - Add gtk2-devel BR |
---|
| 275 | |
---|
| 276 | * Sun Nov 26 2006 Tim Jackson <rpm@timj.co.uk> - 1.0.12-2 |
---|
| 277 | - Own our docdir explicitly |
---|
| 278 | |
---|
| 279 | * Sat Nov 25 2006 Tim Jackson <rpm@timj.co.uk> - 1.0.12-1 |
---|
| 280 | - Update to 1.0.12 |
---|
| 281 | - Resubmit to Fedora Extras 6 |
---|
| 282 | - Replace hotplug requirement with udev |
---|
| 283 | |
---|
| 284 | * Mon Feb 13 2006 Thorsten Leemhuis <fedora[AT]leemhuis.info> |
---|
| 285 | - Rebuild for Fedora Extras 5 |
---|
| 286 | |
---|
| 287 | * Tue Dec 06 2005 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 1.0.10-1 |
---|
| 288 | - Update to 1.0.10 |
---|
| 289 | |
---|
| 290 | * Fri May 06 2005 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 1.0.9-1 |
---|
| 291 | - Update to 1.0.9 |
---|
| 292 | - Use disttag |
---|
| 293 | - Remove gcc4 patch |
---|
| 294 | |
---|
| 295 | * Fri May 06 2005 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 1.0.8-3 |
---|
| 296 | - prune ac3dec from sources |
---|
| 297 | |
---|
| 298 | * Thu May 05 2005 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 1.0.8-2 |
---|
| 299 | - don't build ac3dec -- use a52dec instead |
---|
| 300 | |
---|
| 301 | * Wed Apr 06 2005 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 1.0.8-1 |
---|
| 302 | - Update to 1.0.8 |
---|
| 303 | |
---|
| 304 | * Sun Mar 29 2005 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 0:1.0.6-2 |
---|
| 305 | - Add "--without tools" and "--with firmware" options |
---|
| 306 | - Drop unneeded BR: automake |
---|
| 307 | |
---|
| 308 | * Sun Jan 02 2005 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 0:1.0.6-0.fdr.1 |
---|
| 309 | - Update to 1.0.6 for FC3 |
---|
| 310 | - add new files in {_datadir}/sounds/ |
---|
| 311 | - add patch0 for as10k1 |
---|
| 312 | |
---|
| 313 | * Sat Apr 03 2004 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 0:1.0.4-0.fdr.1 |
---|
| 314 | - Update to 1.0.4 |
---|
| 315 | |
---|
| 316 | * Fri Jan 16 2004 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 0:1.0.1-0.fdr.2 |
---|
| 317 | - Integrate Michaels patch that fixes: |
---|
| 318 | - fix desktop files for fedora.us, adds buildreq desktop-file-utils |
---|
| 319 | - fix %%install section for short-circuit installs |
---|
| 320 | |
---|
| 321 | * Fri Jan 09 2004 Thorsten Leemhuis <fedora[AT]leemhuis.info> - 0:1.0.1-0.fdr.1 |
---|
| 322 | - Update to 1.0.1 |
---|
| 323 | |
---|
| 324 | * Sun Dec 14 2003 Thorsten Leemhuis <fedora[AT]leemhuis.info> 1.0.0-0.fdr.0.3.rc2 |
---|
| 325 | - exit if error during build or install |
---|
| 326 | - fix install errors hdspconf, hdspmixer, usx2yloader |
---|
| 327 | - Split package in alsa-tools and alsa-tools-firmware |
---|
| 328 | - Integrate more docs |
---|
| 329 | |
---|
| 330 | * Fri Dec 06 2003 Thorsten Leemhuis <fedora[AT]leemhuis.info> 1.0.0-0.fdr.0.2.rc2 |
---|
| 331 | - Update to 1.0.0rc2 |
---|
| 332 | - some minor corrections in style |
---|
| 333 | |
---|
| 334 | * Thu Dec 04 2003 Thorsten Leemhuis <fedora[AT]leemhuis.info> 1.0.0-0.fdr.0.1.rc1 |
---|
| 335 | - Update to 1.0.0rc1 |
---|
| 336 | - Remove firmware files -- extra package now. |
---|
| 337 | - Add description |
---|
| 338 | |
---|
| 339 | * Wed Aug 13 2003 Dams <anvil[AT]livna.org> 0:tools-0.fdr.1 |
---|
| 340 | - Initial build. |
---|