]>
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 |
e68db2a3 JB |
8 | Version: 2.4.6 |
9 | Release: 1 | |
f4a8817d | 10 | License: LGPL v2+ |
13dfa716 | 11 | Group: Libraries |
e9ebcf53 | 12 | Source0: https://downloads.xiph.org/releases/libshout/%{name}-%{version}.tar.gz |
e68db2a3 JB |
13 | # Source0-md5: 4a66a369a01ce790e578221fa2c8ea60 |
14 | URL: https://www.icecast.org/ | |
203e5d2c | 15 | BuildRequires: autoconf >= 2.54 |
13dfa716 | 16 | BuildRequires: automake |
e68db2a3 | 17 | BuildRequires: libtool >= 2:2 |
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 | |
e68db2a3 | 44 | Requires: openssl-devel |
fcd8530e | 45 | Requires: speex-devel |
bf9ff77c | 46 | |
47 | %description devel | |
13dfa716 | 48 | The libshout-devel package contains the header files needed for |
49 | developing applications that send data to an icecast server. Install | |
50 | libshout-devel if you want to develop applications using libshout. | |
51 | ||
e1fabe88 JR |
52 | %description devel -l pl.UTF-8 |
53 | Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia aplikacji | |
54 | wysyłających dane do serwera icecast. | |
58ce8ca0 | 55 | |
13dfa716 | 56 | %package static |
57 | Summary: Icecast source streaming static library | |
50f56f6b | 58 | Summary(pl.UTF-8): Statyczna biblioteka libshout |
13dfa716 | 59 | Group: Development/Libraries |
ceacd3e4 | 60 | Requires: %{name}-devel = %{version}-%{release} |
13dfa716 | 61 | |
62 | %description static | |
63 | Icecast source streaming static library. | |
bf9ff77c | 64 | |
e1fabe88 JR |
65 | %description static -l pl.UTF-8 |
66 | Statyczna biblioteka libshout - źródeł strumieni icecast. | |
58ce8ca0 | 67 | |
bf9ff77c | 68 | %prep |
13dfa716 | 69 | %setup -q |
bf9ff77c | 70 | |
71 | %build | |
e89a7eb0 | 72 | %{__libtoolize} |
3460456e | 73 | %{__aclocal} -I m4 |
0a133ef1 | 74 | %{__autoconf} |
fcd8530e | 75 | %{__autoheader} |
0a133ef1 | 76 | %{__automake} |
a9cad682 | 77 | %configure \ |
78 | %{!?with_static_libs:--disable-static} | |
13dfa716 | 79 | %{__make} |
bf9ff77c | 80 | |
81 | %install | |
13dfa716 | 82 | rm -rf $RPM_BUILD_ROOT |
495498a7 | 83 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
bf9ff77c | 84 | |
13dfa716 | 85 | %{__make} install \ |
86 | DESTDIR=$RPM_BUILD_ROOT | |
bf9ff77c | 87 | |
bb3a46b9 JB |
88 | # obsoleted by pkg-config |
89 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libshout.la | |
e9ebcf53 JB |
90 | # ckport support is not maintained in PLD |
91 | %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/ckport | |
92 | ||
495498a7 | 93 | cp -rf examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
94 | ||
bd2b2232 | 95 | %clean |
58ce8ca0 | 96 | rm -rf $RPM_BUILD_ROOT |
bf9ff77c | 97 | |
13dfa716 | 98 | %post -p /sbin/ldconfig |
99 | %postun -p /sbin/ldconfig | |
bf9ff77c | 100 | |
58ce8ca0 JB |
101 | %files |
102 | %defattr(644,root,root,755) | |
f4a8817d | 103 | %doc NEWS README |
bb3a46b9 | 104 | %attr(755,root,root) %{_bindir}/shout |
f4a8817d JB |
105 | %attr(755,root,root) %{_libdir}/libshout.so.*.*.* |
106 | %attr(755,root,root) %ghost %{_libdir}/libshout.so.3 | |
bb3a46b9 | 107 | %{_mandir}/man1/shout.1* |
bf9ff77c | 108 | |
13dfa716 | 109 | %files devel |
110 | %defattr(644,root,root,755) | |
bb3a46b9 | 111 | %doc doc/libshout.xml |
f4a8817d | 112 | %attr(755,root,root) %{_libdir}/libshout.so |
13dfa716 | 113 | %{_includedir}/shout |
ceacd3e4 JB |
114 | %{_pkgconfigdir}/shout.pc |
115 | %{_aclocaldir}/shout.m4 | |
116 | %{_examplesdir}/%{name}-%{version} | |
13dfa716 | 117 | |
a9cad682 | 118 | %if %{with static_libs} |
13dfa716 | 119 | %files static |
120 | %defattr(644,root,root,755) | |
f4a8817d | 121 | %{_libdir}/libshout.a |
a9cad682 | 122 | %endif |