[svn] r6155 - in trunk/rpms: . cstream

packagers at lists.rpmforge.net packagers at lists.rpmforge.net
Tue Feb 12 16:58:41 CET 2008


Author: dag
Date: 2008-02-12 16:58:39 +0100 (Tue, 12 Feb 2008)
New Revision: 6155

Added:
   trunk/rpms/cstream/
   trunk/rpms/cstream/cstream-2.7.4-Wextra.patch
   trunk/rpms/cstream/cstream.spec
Log:
Updates

Added: trunk/rpms/cstream/cstream-2.7.4-Wextra.patch
===================================================================
--- trunk/rpms/cstream/cstream-2.7.4-Wextra.patch	                        (rev 0)
+++ trunk/rpms/cstream/cstream-2.7.4-Wextra.patch	2008-02-12 15:58:39 UTC (rev 6155)
@@ -0,0 +1,40 @@
+--- cstream-2.7.4-orig/cstream.c	2007-09-18 21:47:49.000000000 +0200
++++ cstream-2.7.4-Wextra/cstream.c	2008-02-08 19:10:07.000000000 +0100
+@@ -97,6 +97,7 @@
+ #else
+ #ifdef HAVE_SYS_SOUNDCARD_H
+ #include <sys/soundcard.h>
++#include <sys/ioctl.h>
+ #define WANT_SOUND 1
+ #else
+ #ifdef HAVE_LINUX_SOUNDCARD_H
+@@ -266,7 +267,10 @@ static void sigreport(int signal)
+ 
+ static void sighup(int signal)
+ {
+-  write(2, "SIGHUP\n", sizeof("SIGHUP\n")-1);
++  ssize_t s = write(STDERR_FILENO, "SIGHUP\n", sizeof("SIGHUP\n")-1);
++  if (s != sizeof("SIGHUP\n")) {
++    /* ignore write error */
++  }
+   n_sighups++;
+ }
+ 
+@@ -390,7 +394,7 @@ static int open_tcp(const struct options
+   const char *spec;
+   int newfd;
+   struct sockaddr_in serv_addr;
+-  int *size;
++  socklen_t *size;
+ 
+   if (mode == O_WRONLY) {
+     spec = o->o;
+@@ -520,7 +524,7 @@ static int open_tcp(const struct options
+     } *it, funcs[3] = {
+       {getsockname, "getsockname", "Local binding"},
+       {getpeername, "getpeername", "Remote binding"},
+-      {NULL}
++      {NULL, NULL, NULL}
+     };
+     union {
+       struct sockaddr sa;

Added: trunk/rpms/cstream/cstream.spec
===================================================================
--- trunk/rpms/cstream/cstream.spec	                        (rev 0)
+++ trunk/rpms/cstream/cstream.spec	2008-02-12 15:58:39 UTC (rev 6155)
@@ -0,0 +1,55 @@
+# $Id$
+# Authority: dag
+
+Summary: General-purpose stream-handling tool
+Name: cstream
+Version: 2.7.4
+Release: 3
+License: MIT
+Group: Applications/System
+URL: http://www.cons.org/cracauer/cstream.html
+
+Source: http://www.cons.org/cracauer/download/cstream-%{version}.tar.gz
+Patch2: cstream-2.7.4-Wextra.patch
+
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
+
+%description
+cstream filters data streams, much like the UNIX tool dd(1).
+
+cstream has a more traditional commandline syntax, support for precise
+bandwidth limiting and reporting and support for FIFOs.
+
+Data limits and throughput rate calculation will work for files > 4 GB.
+
+%prep
+%setup
+%patch2 -p1 -b .Wextra
+
+%build
+%configure INSTALL="%{__install} -p"
+%{__make} %{?_smp_mflags} CFLAGS="%{optflags} -Wall -Wno-unused-parameter -Werror"
+
+%install
+%{__rm} -rf %{buildroot}
+%{__make} install DESTDIR="%{buildroot}"
+
+%clean
+%{__rm} -rf %{buildroot}
+
+%files
+%defattr(-, root, root, 0755)
+%doc CHANGES COPYRIGHT README TODO
+%doc %{_mandir}/man1/cstream.1*
+%{_bindir}/cstream
+
+%changelog
+* Fri Feb 08 2008 Hans Ulrich Niedermann <hun at n-dimensional.de> - 2.7.4-3
+- More compile warnings (-Wall -Wextra -Werror).
+- Redacted description down to the most important points.
+
+* Fri Feb 08 2008 Hans Ulrich Niedermann <hun at n-dimensional.de> - 2.7.4-2
+- Spec file cleanups (use install target, get rpmlint to shut up).
+
+* Fri Feb 08 2008 Mike Weisenborn <mike at weisenborn.com> - 2.7.4-1
+- Initial package


Property changes on: trunk/rpms/cstream/cstream.spec
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + native



More information about the svn-commits mailing list