Compare commits
9 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
03c83cc477 | ||
|
|
3c133d9e34 | ||
|
|
57e1d336b8 | ||
|
|
4697af52e0 | ||
|
|
3207e186bf | ||
|
|
d05d757b64 | ||
|
|
ac4e09a02c | ||
|
|
1cb1544375 | ||
|
|
e11898073c |
1 changed files with 12 additions and 5 deletions
17
beep.spec
17
beep.spec
|
|
@ -3,7 +3,8 @@ Name: beep
|
||||||
Version: 1.4.12
|
Version: 1.4.12
|
||||||
Release: %autorelease
|
Release: %autorelease
|
||||||
|
|
||||||
License: GPLv2+
|
# Automatically converted from old format: GPLv2+ - review is highly recommended.
|
||||||
|
License: GPL-2.0-or-later
|
||||||
URL: https://github.com/spkr-beep/beep/
|
URL: https://github.com/spkr-beep/beep/
|
||||||
|
|
||||||
# Upstream github repo: https://github.com/spkr-beep/beep
|
# Upstream github repo: https://github.com/spkr-beep/beep
|
||||||
|
|
@ -60,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
|
||||||
|
|
@ -83,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
|
||||||
|
|
@ -107,6 +112,8 @@ mandir = %{_mandir}
|
||||||
EOF
|
EOF
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
%{?el7:sed -i '1s|.*|#!/bin/sed -f|' contrib/morse/morse2beep.sed}
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf "%{buildroot}"
|
rm -rf "%{buildroot}"
|
||||||
|
|
@ -121,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
|
||||||
|
|
@ -143,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