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