3 %bcond_without static_libs # don't build static libraries
5 Summary: libshout - icecast source streaming library
6 Summary(pl.UTF-8): Biblioteka źródeł strumieni icecast
12 Source0: https://downloads.xiph.org/releases/libshout/%{name}-%{version}.tar.gz
13 # Source0-md5: f77083cf790386297d86536b76a88b1c
14 URL: http://www.icecast.org/
15 BuildRequires: autoconf >= 2.54
16 BuildRequires: automake
17 BuildRequires: libtool
18 BuildRequires: libogg-devel
19 BuildRequires: libtheora-devel
20 BuildRequires: libvorbis-devel
21 BuildRequires: openssl-devel
22 BuildRequires: pkgconfig
23 BuildRequires: speex-devel
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 Libshout is a library for communicating with and sending data to an
28 icecast server. It handles the socket connection, the timing of the
29 data, and prevents most bad data from getting to the icecast server.
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.
37 Summary: Icecast source streaming library development package
38 Summary(pl.UTF-8): Pakiet dla programistów używających libshout
39 Group: Development/Libraries
40 Requires: %{name} = %{version}-%{release}
41 Requires: libogg-devel
42 Requires: libtheora-devel
43 Requires: libvorbis-devel
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.
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.
56 Summary: Icecast source streaming static library
57 Summary(pl.UTF-8): Statyczna biblioteka libshout
58 Group: Development/Libraries
59 Requires: %{name}-devel = %{version}-%{release}
62 Icecast source streaming static library.
64 %description static -l pl.UTF-8
65 Statyczna biblioteka libshout - źródeł strumieni icecast.
77 %{!?with_static_libs:--disable-static}
81 rm -rf $RPM_BUILD_ROOT
82 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
85 DESTDIR=$RPM_BUILD_ROOT
87 # obsoleted by pkg-config
88 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libshout.la
89 # ckport support is not maintained in PLD
90 %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/ckport
92 cp -rf examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
95 rm -rf $RPM_BUILD_ROOT
97 %post -p /sbin/ldconfig
98 %postun -p /sbin/ldconfig
101 %defattr(644,root,root,755)
103 %attr(755,root,root) %{_bindir}/shout
104 %attr(755,root,root) %{_libdir}/libshout.so.*.*.*
105 %attr(755,root,root) %ghost %{_libdir}/libshout.so.3
106 %{_mandir}/man1/shout.1*
109 %defattr(644,root,root,755)
110 %doc doc/libshout.xml
111 %attr(755,root,root) %{_libdir}/libshout.so
113 %{_pkgconfigdir}/shout.pc
114 %{_aclocaldir}/shout.m4
115 %{_examplesdir}/%{name}-%{version}
117 %if %{with static_libs}
119 %defattr(644,root,root,755)
120 %{_libdir}/libshout.a