From 33bcf6d3901eb947e04278f2d6e5834656d7f666 Mon Sep 17 00:00:00 2001 From: Hans Ulrich Niedermann Date: Sep 08 2008 07:32:20 +0000 Subject: - Initial package for submission to Fedora --- diff --git a/.cvsignore b/.cvsignore index e69de29..9b21649 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +beep-1.2.2.tar.gz diff --git a/beep-1.2.2-install-fixes.patch b/beep-1.2.2-install-fixes.patch new file mode 100644 index 0000000..305c812 --- /dev/null +++ b/beep-1.2.2-install-fixes.patch @@ -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) diff --git a/beep.spec b/beep.spec new file mode 100644 index 0000000..264715d --- /dev/null +++ b/beep.spec @@ -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 - 1.2.2-3 +- Initial package for submission to Fedora diff --git a/sources b/sources index e69de29..773deda 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +d541419fd7e5642952d7b48cbb40c712 beep-1.2.2.tar.gz