3 %bcond_without tests # do not perform "make test"
5 Summary: Shout - Perl glue for libshout streaming source library
6 Summary(pl.UTF-8): Shout - perlowy interfejs do biblioteki strumieni libshout
11 Group: Development/Languages/Perl
12 Source0: http://downloads.xiph.org/releases/libshout/Shout-%{version}.tar.gz
13 # Source0-md5: 7171eb8f9e60d6c5cc6c469ba0f32dc9
14 URL: http://icecast.org/
15 BuildRequires: libshout-devel >= 2.1
16 BuildRequires: perl-devel >= 1:5.8.0
17 BuildRequires: pkgconfig
18 BuildRequires: rpm-perlprov >= 4.1-13
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 This module is an object-oriented interface to libshout, an Ogg Vorbis
23 and MP3 streaming library that allows applications to easily
24 communicate and broadcast to an Icecast streaming media server. It
25 handles the socket connections, metadata communication, and data
26 streaming for the calling application, and lets developers focus on
27 feature sets instead of implementation details.
29 %description -l pl.UTF-8
30 Ten moduł jest zorientowanym obiektowo interfejsem do libshout -
31 biblioteki strumieni Ogg Vorbis i MP3 umożliwiającej aplikacjom łatwe
32 komunikowanie się i rozgłaszanie do serwera strumieni multimedialnych
33 Icecast. Obsługuje połączenia przez gniazda, komunikację z metadanymi,
34 strumienie danych dla aplikacji wywołującej oraz pozwala programistom
35 skupić się na możliwościach zamiast szczegółach implementacji.
38 %setup -q -n Shout-%{version}
41 %{__perl} Makefile.PL \
46 OPTIMIZE="%{rpmcflags} -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
48 %{?with_tests:%{__make} test}
51 rm -rf $RPM_BUILD_ROOT
54 DESTDIR=$RPM_BUILD_ROOT
56 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
57 install example*.pl $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
60 rm -rf $RPM_BUILD_ROOT
63 %defattr(644,root,root,755)
65 %{perl_vendorarch}/Shout.pm
66 %dir %{perl_vendorarch}/auto/Shout
67 %{perl_vendorarch}/auto/Shout/autosplit.ix
68 %attr(755,root,root) %{perl_vendorarch}/auto/Shout/Shout.so
69 %{_examplesdir}/%{name}-%{version}
70 %{_mandir}/man3/Shout.3*