Changes of Revision 3
shoutsend.spec
Changed
x
1
2
# license that conforms to the Open Source Definition (Version 1.9)
3
# published by the Open Source Initiative.
4
5
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
6
-
7
Name: shoutsend
8
Version: 1.02
9
Release: 0.pm.1
10
Summary: Simple Streaming Source Client for ShoutCast/IceCast
11
-Source: http://sokrates.mimuw.edu.pl/~sebek/shoutsend/shoutsend-%{version}.tar.gz
12
+Source: shoutsend-%version.tar.gz
13
Patch1: shoutsend-fix_includes.patch
14
URL: http://sokrates.mimuw.edu.pl/~sebek/shoutsend/
15
-Group: Productivity/Multimedia/Sound/Utilities
16
License: GPL-2.0+
17
-BuildRoot: %{_tmppath}/build-%{name}-%{version}
18
-BuildRequires: libshout-devel
19
-BuildRequires: gcc make glibc-devel pkgconfig
20
+BuildRequires: pkgconfig(shout)
21
22
%description
23
ShoutSend is a simple streaming client for ShoutCast/IceCast servers. It takes
24
25
server.
26
27
%prep
28
-%setup -q
29
-%patch -P 1
30
+%autosetup -p1
31
32
%build
33
-%__cc -o shoutsend shoutsend.c -lshout -lpthread
34
+cc %optflags -o shoutsend shoutsend.c $(pkg-config --cflags --libs shout)
35
36
%install
37
-%__install -D -m0755 shoutsend "%{buildroot}%{_bindir}/shoutsend"
38
-
39
-%clean
40
-%{?buildroot:%__rm -rf "%{buildroot}"}
41
+install -D -m0755 shoutsend "%buildroot%_bindir/shoutsend"
42
43
%files
44
-%defattr(-,root,root)
45
%doc README.txt
46
-%{_bindir}/shoutsend
47
+%_bindir/shoutsend
48
49
%changelog
50
shoutsend-fix_includes.patch
Changed
21
1
2
---- shoutsend.c.orig 2013-04-14 13:18:52.717344450 +0200
3
-+++ shoutsend.c 2013-04-14 13:20:26.754592541 +0200
4
-@@ -1,6 +1,8 @@
5
+---
6
+ shoutsend.c | 5 ++++-
7
+ 1 file changed, 4 insertions(+), 1 deletion(-)
8
+
9
+--- a/shoutsend.c
10
++++ b/shoutsend.c
11
+@@ -1,6 +1,9 @@
12
-#include <shout/shout.h>
13
#include <stdio.h>
14
+#include <stdlib.h>
15
+#include <string.h>
16
#include <unistd.h>
17
++#include <ctype.h>
18
+#include <shout/shout.h>
19
20
#define BUFSIZE 4096
21