Author: glen Date: Fri May 19 21:16:15 2006 GMT Module: SPECS Tag: HEAD ---- Log message: - use /etc/modprobe.d dir; rel 7
---- Files affected: SPECS: emu10k1-utils.spec (1.29 -> 1.30) ---- Diffs: ================================================================ Index: SPECS/emu10k1-utils.spec diff -u SPECS/emu10k1-utils.spec:1.29 SPECS/emu10k1-utils.spec:1.30 --- SPECS/emu10k1-utils.spec:1.29 Mon Dec 12 16:19:32 2005 +++ SPECS/emu10k1-utils.spec Fri May 19 23:16:10 2006 @@ -4,7 +4,7 @@ Summary(pl): Narzędzia kontrolujące procesor emu10k1 Name: emu10k1-utils Version: 0.9.4 -Release: 6 +Release: 7 License: GPL Group: Applications/Sound Source0: http://dl.sourceforge.net/emu10k1/emu-tools-%{version}.tar.gz @@ -72,8 +72,10 @@ Summary: emu10k1 autoconfiguration on module load Summary(pl): Skrypt konfigurujący emu10k1 przy ładowaniu modułu Group: Applications/Sound +Requires(triggerpostun): sed >= 4.0 Requires: %{name} = %{version}-%{release} Requires: aumix +Requires: module-init-tools >= 3.2.2-2 %description autoconfig Script loading patches. Currently it cannot do too much. @@ -146,21 +148,16 @@ gzip -9nf $RPM_BUILD_ROOT%{_datadir}/emu10k1/asm/* gzip -9nf $RPM_BUILD_ROOT%{_datadir}/emu10k1/README +install -d $RPM_BUILD_ROOT/etc/modprobe.d +cat <<'EOF' > $RPM_BUILD_ROOT/etc/modprobe.d/%{name}.conf +install emu10k1 /sbin/modprobe --ignore-install emu10k1 && { /usr/bin/emu-script; } +EOF %clean rm -rf $RPM_BUILD_ROOT -%post autoconfig -umask 027 -grep "install emu10k1 /sbin/modprobe --ignore-install emu10k1 && { /usr/bin/emu-script; }" /etc/modprobe.conf > /dev/null -if [ "$?" -eq "1" ]; then - echo "install emu10k1 /sbin/modprobe --ignore-install emu10k1 && { /usr/bin/emu-script; }" >> /etc/modprobe.conf -fi - -%postun autoconfig -umask 027 -grep -v "install emu10k1 /sbin/modprobe --ignore-install emu10k1 && { /usr/bin/emu-script; }" /etc/modprobe.conf > /etc/modprobe.conf.new -mv -f /etc/modprobe.conf.new /etc/modprobe.conf +%triggerpostun autoconfig -- emu10k1-utils-autoconfig < 0.9.4-6.1 +%{__sed} -i -e '/install emu10k1 /d' /etc/modprobe.conf %files %defattr(644,root,root,755) @@ -183,6 +180,7 @@ %files autoconfig %defattr(644,root,root,755) %attr(754,root,root) %{_bindir}/emu-script +%config(noreplace) %verify(not md5 mtime size) /etc/modprobe.d/%{name}.conf %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/emu10k1.conf %files epache @@ -196,6 +194,9 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.30 2006/05/19 21:16:10 glen +- use /etc/modprobe.d dir; rel 7 + Revision 1.29 2005/12/12 15:19:32 glen - adapterized (sorted %verify flags) ================================================================ ---- CVS-web: http://cvs.pld-linux.org/SPECS/emu10k1-utils.spec?r1=1.29&r2=1.30&f=u _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
