]>
Commit | Line | Data |
---|---|---|
a9cad682 | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static libraries | |
4 | # | |
bf9ff77c | 5 | Summary: libshout - icecast source streaming library |
50f56f6b | 6 | Summary(pl.UTF-8): Biblioteka źródeł strumieni icecast |
13dfa716 | 7 | Name: libshout |
deb74bf9 | 8 | Version: 2.4.1 |
4195d69e | 9 | Release: 2 |
f4a8817d | 10 | License: LGPL v2+ |
13dfa716 | 11 | Group: Libraries |
ceacd3e4 | 12 | Source0: http://downloads.xiph.org/releases/libshout/%{name}-%{version}.tar.gz |
deb74bf9 | 13 | # Source0-md5: 89cebf8cb0197f639cde69c95177fe47 |
13dfa716 | 14 | URL: http://www.icecast.org/ |
203e5d2c | 15 | BuildRequires: autoconf >= 2.54 |
13dfa716 | 16 | BuildRequires: automake |
17 | BuildRequires: libtool | |
1d12effc | 18 | BuildRequires: libogg-devel |
203e5d2c | 19 | BuildRequires: libtheora-devel |
1d12effc | 20 | BuildRequires: libvorbis-devel |
79253f80 | 21 | BuildRequires: openssl-devel |
203e5d2c | 22 | BuildRequires: pkgconfig |
fcd8530e | 23 | BuildRequires: speex-devel |
13dfa716 | 24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
bf9ff77c | 25 | |
26 | %description | |
27 | Libshout is a library for communicating with and sending data to an | |
13dfa716 | 28 | icecast server. It handles the socket connection, the timing of the |
bf9ff77c | 29 | data, and prevents most bad data from getting to the icecast server. |
30 | ||
e1fabe88 JR |
31 | %description -l pl.UTF-8 |
32 | libshout to biblioteka do komunikowania się z i wysyłania danych do | |
33 | serwera icecast. Obsługuje połączenia, czasy danych i zapobiega | |
34 | dotarciu większości złych danych do serwera icecast. | |
58ce8ca0 | 35 | |
bf9ff77c | 36 | %package devel |
13dfa716 | 37 | Summary: Icecast source streaming library development package |
50f56f6b | 38 | Summary(pl.UTF-8): Pakiet dla programistów używających libshout |
13dfa716 | 39 | Group: Development/Libraries |
ceacd3e4 | 40 | Requires: %{name} = %{version}-%{release} |
203e5d2c JB |
41 | Requires: libogg-devel |
42 | Requires: libtheora-devel | |
43 | Requires: libvorbis-devel | |
fcd8530e | 44 | Requires: speex-devel |
bf9ff77c | 45 | |
46 | %description devel | |
13dfa716 | 47 | The libshout-devel package contains the header files needed for |
48 | developing applications that send data to an icecast server. Install | |
49 | libshout-devel if you want to develop applications using libshout. | |
50 | ||
e1fabe88 JR |
51 | %description devel -l pl.UTF-8 |
52 | Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia aplikacji | |
53 | wysyłających dane do serwera icecast. | |
58ce8ca0 | 54 | |
13dfa716 | 55 | %package static |
56 | Summary: Icecast source streaming static library | |
50f56f6b | 57 | Summary(pl.UTF-8): Statyczna biblioteka libshout |
13dfa716 | 58 | Group: Development/Libraries |
ceacd3e4 | 59 | Requires: %{name}-devel = %{version}-%{release} |
13dfa716 | 60 | |
61 | %description static | |
62 | Icecast source streaming static library. | |
bf9ff77c | 63 | |
e1fabe88 JR |
64 | %description static -l pl.UTF-8 |
65 | Statyczna biblioteka libshout - źródeł strumieni icecast. | |
58ce8ca0 | 66 | |
bf9ff77c | 67 | %prep |
13dfa716 | 68 | %setup -q |
bf9ff77c | 69 | |
70 | %build | |
e89a7eb0 | 71 | %{__libtoolize} |
3460456e | 72 | %{__aclocal} -I m4 |
0a133ef1 | 73 | %{__autoconf} |
fcd8530e | 74 | %{__autoheader} |
0a133ef1 | 75 | %{__automake} |
a9cad682 | 76 | %configure \ |
77 | %{!?with_static_libs:--disable-static} | |
13dfa716 | 78 | %{__make} |
bf9ff77c | 79 | |
80 | %install | |
13dfa716 | 81 | rm -rf $RPM_BUILD_ROOT |
495498a7 | 82 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
bf9ff77c | 83 | |
13dfa716 | 84 | %{__make} install \ |
85 | DESTDIR=$RPM_BUILD_ROOT | |
bf9ff77c | 86 | |
495498a7 | 87 | cp -rf examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
88 | ||
bd2b2232 | 89 | %clean |
58ce8ca0 | 90 | rm -rf $RPM_BUILD_ROOT |
bf9ff77c | 91 | |
13dfa716 | 92 | %post -p /sbin/ldconfig |
93 | %postun -p /sbin/ldconfig | |
bf9ff77c | 94 | |
58ce8ca0 JB |
95 | %files |
96 | %defattr(644,root,root,755) | |
f4a8817d JB |
97 | %doc NEWS README |
98 | %attr(755,root,root) %{_libdir}/libshout.so.*.*.* | |
99 | %attr(755,root,root) %ghost %{_libdir}/libshout.so.3 | |
bf9ff77c | 100 | |
13dfa716 | 101 | %files devel |
102 | %defattr(644,root,root,755) | |
495498a7 | 103 | %doc doc/* |
f4a8817d JB |
104 | %attr(755,root,root) %{_libdir}/libshout.so |
105 | %{_libdir}/libshout.la | |
13dfa716 | 106 | %{_includedir}/shout |
ceacd3e4 JB |
107 | %{_pkgconfigdir}/shout.pc |
108 | %{_aclocaldir}/shout.m4 | |
109 | %{_examplesdir}/%{name}-%{version} | |
13dfa716 | 110 | |
a9cad682 | 111 | %if %{with static_libs} |
13dfa716 | 112 | %files static |
113 | %defattr(644,root,root,755) | |
f4a8817d | 114 | %{_libdir}/libshout.a |
a9cad682 | 115 | %endif |