rpms/awesfx/devel 41-soundfont.rules, NONE, 1.1 Makefile, 1.3, 1.4 awesfx.spec, 1.19, 1.20 import.log, NONE, 1.1 load-soundfont, NONE, 1.1 rename-getline-to-parseline.patch, NONE, 1.1 sources, 1.5, 1.6 udev-soundfont, NONE, 1.1 dead.package, 1.1, NONE
Guido Grazioli
guidograzioli at fedoraproject.org
Thu Jun 25 15:13:04 UTC 2009
Author: guidograzioli
Update of /cvs/pkgs/rpms/awesfx/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv9735/devel
Added Files:
41-soundfont.rules Makefile awesfx.spec import.log
load-soundfont rename-getline-to-parseline.patch sources
udev-soundfont
Removed Files:
dead.package
Log Message:
* Thu May 28 2009 Guido Grazioli <guido.grazioli at gmail.com> 0.5.1c-2
- fixed %%install
- fixed license
- fixed files ownership
* Thu Mar 12 2009 Guido Grazioli <guido.grazioli at gmail.com> 0.5.1c-1
- initial packaging
--- NEW FILE 41-soundfont.rules ---
SUBSYSTEM=="sound", KERNEL=="hwC?D2", DRIVERS=="EMU10K1_Audigy", RUN+="/etc/alsa.d/udev-soundfont"
Index: Makefile
===================================================================
RCS file: Makefile
diff -N Makefile
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ Makefile 25 Jun 2009 15:12:26 -0000 1.4
@@ -0,0 +1,21 @@
+# Makefile for source rpm: awesfx
+# $Id$
+NAME := awesfx
+SPECFILE = $(firstword $(wildcard *.spec))
+
+define find-makefile-common
+for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
+endef
+
+MAKEFILE_COMMON := $(shell $(find-makefile-common))
+
+ifeq ($(MAKEFILE_COMMON),)
+# attept a checkout
+define checkout-makefile-common
+test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
+endef
+
+MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
+endif
+
+include $(MAKEFILE_COMMON)
Index: awesfx.spec
===================================================================
RCS file: awesfx.spec
diff -N awesfx.spec
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ awesfx.spec 25 Jun 2009 15:12:26 -0000 1.20
@@ -0,0 +1,67 @@
+Name: awesfx
+Version: 0.5.1c
+Release: 2%{?dist}
+Summary: Utility programs for the AWE32/Emu10k1 sound driver
+Group: Applications/Multimedia
+URL: http://www.alsa-project.org/~iwai/awedrv.html
+Source0: http://ftp.suse.com/pub/people/tiwai/awesfx/awesfx-%{version}.tar.bz2
+Source1: udev-soundfont
+Source2: load-soundfont
+Source3: 41-soundfont.rules
+Patch0: rename-getline-to-parseline.patch
+License: GPLv2+
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires: alsa-lib-devel >= 1.0.0
+
+%description
+The awesfx package contains various utility programs for controlling the
+AWE32/Emu10k1 sound driver. AWESFX includes asxfload and sfxload, the
+soundfont loaders; setfx, the chorus/reverb effect loader; aweset, a
+controller for setting parameters; and programs for converting soundfonts
+to text.
+
+If you use an AWE32 or Emu10k1 sound driver you should install the awesfx
+package.
+
+%prep
+%setup -q
+
+%patch0 -p1
+
+%build
+%configure CFLAGS="$RPM_OPT_FLAGS"
+make %{?_smp_mflags}
+
+%install
+rm -rf %{buildroot}
+make DESTDIR=%{buildroot} INSTALL="install -p" install
+install -Dp -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/alsa.d/udev-soundfont
+install -Dp -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/alsa.d/load-soundfont
+install -Dp -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/udev/rules.d/41-soundfont.rules
+mkdir -p %{buildroot}%{_datadir}/soundfonts
+mv %{buildroot}%{_datadir}/sounds/sf2/*.bnk %{buildroot}%{_datadir}/soundfonts
+rm -rf %{buildroot}%{_datadir}/sounds
+rm -f samples/Makefile*
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-,root,root,-)
+%doc AUTHORS COPYING ChangeLog README SBKtoSF2.txt samples/README-bank samples/setfx-sample.cfg
+%{_bindir}/*
+%attr(0755, root, root) %{_sysconfdir}/alsa.d
+%{_sysconfdir}/alsa.d/udev-soundfont
+%{_sysconfdir}/alsa.d/load-soundfont
+%config(noreplace) %{_sysconfdir}/udev/rules.d/41-soundfont.rules
+%{_datadir}/soundfonts/
+%{_mandir}/man*/*.1.gz
+
+%changelog
+* Thu May 28 2009 Guido Grazioli <guido.grazioli at gmail.com> 0.5.1c-2
+- fixed %%install
+- fixed license
+- fixed files ownership
+* Thu Mar 12 2009 Guido Grazioli <guido.grazioli at gmail.com> 0.5.1c-1
+- initial packaging
--- NEW FILE import.log ---
awesfx-0_5_1c-2_fc9:HEAD:awesfx-0.5.1c-2.fc9.src.rpm:1245942559
--- NEW FILE load-soundfont ---
#!/bin/sh -e
CARD=$1
shift
test -x /usr/bin/asfxload || exit 0
. /etc/sysconfig/sound
load_sf () {
for d in /usr/share/soundfonts \
/usr/share/sounds/sf2 \
/usr/share/sfbank \
/usr/local/lib/sfbank \
/usr/share/sfbank/creative \
/usr/local/lib/sfbank/creative \
; do
if [ -r $d/$1 ]; then
/usr/bin/asfxload -Dhw:${CARD},2 $d/$1
return 0
fi
done
return 1
}
case $SOUNDFONT_FILES in
/*)
if [ -r "$SOUNDFONT_FILES" ]; then
/usr/bin/asfxload -Dhw:${CARD},2 $SOUNDFONT_FILES
exit 0
fi
;;
esac
for file in $SOUNDFONT_FILES $* ; do
if load_sf $file ; then
break
fi
done
exit 0
rename-getline-to-parseline.patch:
--- NEW FILE rename-getline-to-parseline.patch ---
diff -uNr awesfx-0.5.1c/setfx.c awesfx-0.5.1c-p/setfx.c
--- awesfx-0.5.1c/setfx.c 2007-08-29 18:00:23.000000000 +0200
+++ awesfx-0.5.1c-p/setfx.c 2009-03-13 02:36:01.000000000 +0100
@@ -37,7 +37,7 @@
/*----------------------------------------------------------------*/
static void usage(void);
-static int getline(FILE *fp);
+static int parseline(FILE *fp);
static int nextline(FILE *fp);
static char *gettok(FILE *fp);
static char *divtok(char *src, char *divs, int only_one);
@@ -126,7 +126,7 @@
}
curline = 0;
- if (!getline(fp))
+ if (!parseline(fp))
return 0;
seq_init(seq_devname, seq_devidx);
@@ -370,7 +370,7 @@
* read a line and parse tokens
*----------------------------------------------------------------*/
-static int getline(FILE *fp)
+static int parseline(FILE *fp)
{
char *p;
curline++;
@@ -393,12 +393,12 @@
{
if (connected) {
do {
- if (! getline(fp))
+ if (! parseline(fp))
return FALSE;
} while (connected);
return TRUE;
} else {
- return getline(fp);
+ return parseline(fp);
}
}
@@ -415,7 +415,7 @@
tok = divtok(NULL, " \t\r\n", FALSE);
while (tok == NULL || *tok == 0) {
if (! connected) return NULL;
- if (! getline(fp)) return NULL;
+ if (! parseline(fp)) return NULL;
tok = divtok(line, " \t\r\n", FALSE);
}
return tok;
Index: sources
===================================================================
RCS file: sources
diff -N sources
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ sources 25 Jun 2009 15:12:27 -0000 1.6
@@ -0,0 +1 @@
+73f940279f909bfa5ad307d904bc88da awesfx-0.5.1c.tar.bz2
--- NEW FILE udev-soundfont ---
#!/bin/sh -e
CARD=${DEVNAME##/dev/snd/hwC}
CARD=${CARD%%D2}
case $DEVPATH in
*/pci*)
# Emu10k1 / Audigy, send a MIDI sequence to activate breakout-box
echo -en "\xf0\x00\x20\x21\x61\x00\x00\x00\x7f\x00\xf7" > /dev/snd/midiC${CARD}D1
/etc/alsa.d/load-soundfont $CARD default.bnk default.sf2
;;
*)
# SB AWE can use ROM as fallback
/etc/alsa.d/load-soundfont $CARD default.bnk default.sf2 default.sbk gu11-rom.sf2 GU11-ROM.SF2
;;
esac
exit 0
--- dead.package DELETED ---
More information about the fedora-extras-commits
mailing list