rpms/beep/F-8 beep-1.2.2-install-fixes.patch, NONE, 1.1 beep.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Hans Ulrich Niedermann ndim at fedoraproject.org
Mon Sep 8 07:32:50 UTC 2008


Author: ndim

Update of /cvs/pkgs/rpms/beep/F-8
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv6349

Modified Files:
	.cvsignore sources 
Added Files:
	beep-1.2.2-install-fixes.patch beep.spec 
Log Message:
* Sun Sep  7 2008 Hans Ulrich Niedermann <hun at n-dimensional.de> - 1.2.2-3
- Initial package for submission to Fedora


beep-1.2.2-install-fixes.patch:

--- NEW FILE beep-1.2.2-install-fixes.patch ---
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)


--- NEW FILE beep.spec ---
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 at n-dimensional.de> - 1.2.2-3
- Initial package for submission to Fedora


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/beep/F-8/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	8 Sep 2008 04:13:21 -0000	1.1
+++ .cvsignore	8 Sep 2008 07:32:19 -0000	1.2
@@ -0,0 +1 @@
+beep-1.2.2.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/beep/F-8/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	8 Sep 2008 04:13:21 -0000	1.1
+++ sources	8 Sep 2008 07:32:19 -0000	1.2
@@ -0,0 +1 @@
+d541419fd7e5642952d7b48cbb40c712  beep-1.2.2.tar.gz




More information about the fedora-extras-commits mailing list