Compare commits
3 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
03c83cc477 | ||
|
|
3c133d9e34 | ||
|
|
57e1d336b8 |
1 changed files with 8 additions and 4 deletions
12
beep.spec
12
beep.spec
|
|
@ -61,7 +61,6 @@ BuildRequires: make
|
||||||
# Recommends: (kernel-modules-extras if kernel-modules)
|
# Recommends: (kernel-modules-extras if kernel-modules)
|
||||||
# Recommends: (kernel-debug-modules-extras if kernel-debug-modules)
|
# Recommends: (kernel-debug-modules-extras if kernel-debug-modules)
|
||||||
|
|
||||||
Requires(pre): shadow-utils
|
|
||||||
|
|
||||||
# /etc/modprobe.d/
|
# /etc/modprobe.d/
|
||||||
Requires: kmod
|
Requires: kmod
|
||||||
|
|
@ -84,6 +83,11 @@ interesting, but it is really good at the notifying part.
|
||||||
%setup -q
|
%setup -q
|
||||||
sed -i 's|^\.\\" \(\.BR .*\)README.Distro\(.*\)|\1README.fedora\2|' beep.1.in && : #"
|
sed -i 's|^\.\\" \(\.BR .*\)README.Distro\(.*\)|\1README.fedora\2|' beep.1.in && : #"
|
||||||
|
|
||||||
|
# Create a sysusers.d config file
|
||||||
|
cat >beep.sysusers.conf <<EOF
|
||||||
|
g beep -
|
||||||
|
EOF
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
if test "x%{build_cppflags}" = "x%%{build_cppflags}"; then
|
if test "x%{build_cppflags}" = "x%%{build_cppflags}"; then
|
||||||
|
|
@ -124,10 +128,9 @@ install -d -m 0755 "%{buildroot}%{_udevrulesdir}/"
|
||||||
install -p -m 0644 "%{SOURCE2}" "%{buildroot}%{_udevrulesdir}/"
|
install -p -m 0644 "%{SOURCE2}" "%{buildroot}%{_udevrulesdir}/"
|
||||||
install -p -m 0644 "%{SOURCE3}" "%{buildroot}%{_udevrulesdir}/"
|
install -p -m 0644 "%{SOURCE3}" "%{buildroot}%{_udevrulesdir}/"
|
||||||
|
|
||||||
|
install -m0644 -D beep.sysusers.conf %{buildroot}%{_sysusersdir}/beep.conf
|
||||||
|
|
||||||
|
|
||||||
%pre
|
|
||||||
getent group beep >/dev/null || groupadd -r beep
|
|
||||||
exit 0
|
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
|
|
@ -146,6 +149,7 @@ exit 0
|
||||||
%config(noreplace) %{_sysconfdir}/modprobe.d/beep.conf
|
%config(noreplace) %{_sysconfdir}/modprobe.d/beep.conf
|
||||||
%{_udevrulesdir}/70-pcspkr-beep.rules
|
%{_udevrulesdir}/70-pcspkr-beep.rules
|
||||||
%{_udevrulesdir}/90-pcspkr-beep.rules
|
%{_udevrulesdir}/90-pcspkr-beep.rules
|
||||||
|
%{_sysusersdir}/beep.conf
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue