beep-1.2.2-3 import
This commit is contained in:
parent
a51c78186f
commit
0b20d34dc1
5 changed files with 96 additions and 0 deletions
|
|
@ -0,0 +1 @@
|
|||
beep-1.2.2.tar.gz
|
||||
41
beep-1.2.2-install-fixes.patch
Normal file
41
beep-1.2.2-install-fixes.patch
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
diff --git a/Makefile b/Makefile
|
||||
index 5856f9f..32bfb6b 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -1,19 +1,26 @@
|
||||
CC=gcc
|
||||
FLAGS=-Wall
|
||||
EXEC_NAME=beep
|
||||
-INSTALL_DIR=/usr/bin
|
||||
+BIN_DIR=/usr/bin
|
||||
MAN_FILE=beep.1.gz
|
||||
-MAN_DIR=/usr/man/man1
|
||||
+MAN_DIR=/usr/share/man/man1
|
||||
|
||||
-default : beep
|
||||
+.PHONY: all
|
||||
+all: $(EXEC_NAME)
|
||||
|
||||
-clean :
|
||||
+.PHONY: clean
|
||||
+clean:
|
||||
rm ${EXEC_NAME}
|
||||
|
||||
-beep : beep.c
|
||||
- ${CC} ${FLAGS} -o ${EXEC_NAME} beep.c
|
||||
+$(EXEC_NAME): beep.c
|
||||
+ $(CC) $(FLAGS) $(CFLAGS) -o $(EXEC_NAME) $<
|
||||
|
||||
-install :
|
||||
- cp ${EXEC_NAME} ${INSTALL_DIR}
|
||||
- rm -f /usr/man/man1/beep.1.bz2
|
||||
- cp ${MAN_FILE} ${MAN_DIR}
|
||||
+install:
|
||||
+ install -m 0755 -d $(DESTDIR)$(BIN_DIR)
|
||||
+ install -m 0755 -d $(DESTDIR)$(MAN_DIR)
|
||||
+ install -m 0755 -p $(EXEC_NAME) $(DESTDIR)$(BIN_DIR)/
|
||||
+ install -m 0644 -p $(MAN_FILE) $(DESTDIR)$(MAN_DIR)/
|
||||
+
|
||||
+uninstall:
|
||||
+ rm -f $(DESTDIR)$(BIN_DIR)/$(EXEC_NAME)
|
||||
+ rm -f $(DESTDIR)$(MAN_DIR)/$(MAN_FILE)
|
||||
52
beep.spec
Normal file
52
beep.spec
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
Summary: Beep the PC speaker any number of ways
|
||||
Name: beep
|
||||
Version: 1.2.2
|
||||
Release: 3%{?dist}
|
||||
|
||||
Group: Applications/System
|
||||
License: GPLv2+
|
||||
URL: http://www.johnath.com/beep/
|
||||
Source0: http://www.johnath.com/beep/%{name}-%{version}.tar.gz
|
||||
Patch0: beep-1.2.2-install-fixes.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
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, it's 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
|
||||
%patch0 -p1 -b .install-fixes
|
||||
|
||||
|
||||
%build
|
||||
make %{?_smp_mflags} CFLAGS="${RPM_OPT_FLAGS}"
|
||||
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make install DESTDIR=$RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%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
|
||||
|
||||
|
||||
%changelog
|
||||
* Sun Sep 7 2008 Hans Ulrich Niedermann <hun@n-dimensional.de> - 1.2.2-3
|
||||
- Initial package for submission to Fedora
|
||||
1
import.log
Normal file
1
import.log
Normal file
|
|
@ -0,0 +1 @@
|
|||
beep-1_2_2-3_fc9:HEAD:beep-1.2.2-3.fc9.src.rpm:1220858472
|
||||
1
sources
1
sources
|
|
@ -0,0 +1 @@
|
|||
d541419fd7e5642952d7b48cbb40c712 beep-1.2.2.tar.gz
|
||||
Loading…
Add table
Add a link
Reference in a new issue