+- Use new upstream tarball beep-1.3.tar.gz (yes, it has changed!) +- Add a few fixes from upstream git repo +- Move our Makefile cleanup to upstream pull request
137 lines
4.4 KiB
RPMSpec
137 lines
4.4 KiB
RPMSpec
%if 0%{?fedora} >= 12
|
|
%global ship_modprobe_config 1
|
|
%else
|
|
%global ship_modprobe_config 0
|
|
%endif
|
|
|
|
|
|
Summary: Beep the PC speaker any number of ways
|
|
Name: beep
|
|
Version: 1.3
|
|
Release: 7%{?dist}
|
|
|
|
Group: Applications/System
|
|
License: GPLv2+
|
|
URL: http://www.johnath.com/beep/
|
|
|
|
# Upstream github repo: https://github.com/johnath/beep
|
|
# hun github repo: https://github.com/ndim/beep
|
|
|
|
# Alternative source URLs to download:
|
|
# curl -L -o beep-github.tar.gz https://api.github.com/repos/johnath/beep/tarball
|
|
# curl -L -o beep-g0d790fa.tar.gz https://api.github.com/repos/johnath/beep/tarball/0d790fa
|
|
# curl -L -o beep-1.3-gdb6f31a.tar.gz https://api.github.com/repos/johnath/beep/tarball/db6f31a60303e41def1a1d0705164cd5b6d75492
|
|
Source0: http://www.johnath.com/beep/%{name}-%{version}.tar.gz
|
|
|
|
|
|
# Fedora specific files
|
|
Source1: %{name}-README.fedora
|
|
Source2: %{name}-modprobe.conf
|
|
|
|
|
|
# Fix from upstream github repo
|
|
Patch1: 0001-Fixed-Makefile.patch
|
|
|
|
# Fix from upstream github repo
|
|
Patch2: 0002-Add-more-error-detection.patch
|
|
|
|
# No sense to add stuff to .gitignore in our source dir
|
|
# Patch3: 0003-Gitignorance.patch
|
|
|
|
# Fix from upstream github repo
|
|
Patch4: 0004-also-catch-SIGTERM-for-stopping-the-beep.patch
|
|
|
|
# Make build/install more user and packaging friendly
|
|
# https://github.com/johnath/beep/pull/6
|
|
Patch5: 0005-Make-build-install-more-user-and-packaging-friendly.patch
|
|
|
|
# Preserve file modification time on install
|
|
# https://github.com/johnath/beep/pull/6
|
|
Patch6: 0006-Preserve-file-modification-time-on-install.patch
|
|
|
|
BuildRequires: glibc-kernheaders
|
|
|
|
|
|
%description
|
|
Beep allows the user to control the PC speaker with precision,
|
|
allowing different sounds to indicate different events. While it
|
|
can be run quite happily on the commandline, its intended place
|
|
of residence is within shell/perl scripts, notifying the user when
|
|
something interesting occurs. Of course, it has no notion of
|
|
what's interesting, but it's real good at that notifying part.
|
|
|
|
|
|
%prep
|
|
%setup -q
|
|
%patch1 -p1 -b 0001
|
|
%patch2 -p1 -b 0002
|
|
%patch4 -p1 -b 0004
|
|
%patch5 -p1 -b 0005
|
|
%patch6 -p1 -b 0006
|
|
cp -p %{SOURCE1} README.fedora
|
|
|
|
|
|
%build
|
|
make %{?_smp_mflags} CFLAGS="${RPM_OPT_FLAGS}"
|
|
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
make install DESTDIR=$RPM_BUILD_ROOT
|
|
|
|
%if %{ship_modprobe_config}
|
|
install -d -m 0755 "$RPM_BUILD_ROOT/etc/modprobe.d/"
|
|
install -p -m 0644 %{SOURCE2} "$RPM_BUILD_ROOT/etc/modprobe.d/beep.conf"
|
|
%endif
|
|
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc CHANGELOG COPYING CREDITS README
|
|
%attr(0755,root,root) %{_bindir}/beep
|
|
%{_mandir}/man1/beep.1.gz
|
|
%if %{ship_modprobe_config}
|
|
%doc README.fedora
|
|
%attr(0644,root,root) %{_sysconfdir}/modprobe.d/beep.conf
|
|
%endif
|
|
|
|
|
|
%changelog
|
|
* Tue Nov 19 2013 Hans Ulrich Niedermann <hun@n-dimensional.de> - 1.3-7
|
|
- Use new upstream tarball beep-1.3.tar.gz (yes, it has changed!)
|
|
- Add a few fixes from upstream git repo
|
|
- Move our Makefile cleanup to upstream pull request
|
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-6
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-5
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
* Fri Jul 16 2010 Hans Ulrich Niedermann <hun@n-dimensional.de> - 1.3-1
|
|
- Update to upstream release beep-1.3
|
|
|
|
* Fri Jan 22 2010 Hans Ulrich Niedermann <hun@n-dimensional.de> - 1.2.2-6
|
|
- Ship modprobe config file with alias for pcspkr on F12 and later
|
|
|
|
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.2-5
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.2-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
* Sun Sep 7 2008 Hans Ulrich Niedermann <hun@n-dimensional.de> - 1.2.2-3
|
|
- Initial package for submission to Fedora
|