]> git.pld-linux.org Git - packages/libshout.git/blame - libshout.spec
rebuild with openssl 3.0.0
[packages/libshout.git] / libshout.spec
CommitLineData
a9cad682 1#
2# Conditional build:
3%bcond_without static_libs # don't build static libraries
4#
bf9ff77c 5Summary: libshout - icecast source streaming library
50f56f6b 6Summary(pl.UTF-8): Biblioteka źródeł strumieni icecast
13dfa716 7Name: libshout
bb3a46b9 8Version: 2.4.5
a306c63f 9Release: 2
f4a8817d 10License: LGPL v2+
13dfa716 11Group: Libraries
e9ebcf53 12Source0: https://downloads.xiph.org/releases/libshout/%{name}-%{version}.tar.gz
bb3a46b9 13# Source0-md5: f77083cf790386297d86536b76a88b1c
13dfa716 14URL: http://www.icecast.org/
203e5d2c 15BuildRequires: autoconf >= 2.54
13dfa716 16BuildRequires: automake
17BuildRequires: libtool
1d12effc 18BuildRequires: libogg-devel
203e5d2c 19BuildRequires: libtheora-devel
1d12effc 20BuildRequires: libvorbis-devel
79253f80 21BuildRequires: openssl-devel
203e5d2c 22BuildRequires: pkgconfig
fcd8530e 23BuildRequires: speex-devel
13dfa716 24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
bf9ff77c 25
26%description
27Libshout is a library for communicating with and sending data to an
13dfa716 28icecast server. It handles the socket connection, the timing of the
bf9ff77c 29data, and prevents most bad data from getting to the icecast server.
30
e1fabe88
JR
31%description -l pl.UTF-8
32libshout to biblioteka do komunikowania się z i wysyłania danych do
33serwera icecast. Obsługuje połączenia, czasy danych i zapobiega
34dotarciu większości złych danych do serwera icecast.
58ce8ca0 35
bf9ff77c 36%package devel
13dfa716 37Summary: Icecast source streaming library development package
50f56f6b 38Summary(pl.UTF-8): Pakiet dla programistów używających libshout
13dfa716 39Group: Development/Libraries
ceacd3e4 40Requires: %{name} = %{version}-%{release}
203e5d2c
JB
41Requires: libogg-devel
42Requires: libtheora-devel
43Requires: libvorbis-devel
fcd8530e 44Requires: speex-devel
bf9ff77c 45
46%description devel
13dfa716 47The libshout-devel package contains the header files needed for
48developing applications that send data to an icecast server. Install
49libshout-devel if you want to develop applications using libshout.
50
e1fabe88
JR
51%description devel -l pl.UTF-8
52Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia aplikacji
53wysyłających dane do serwera icecast.
58ce8ca0 54
13dfa716 55%package static
56Summary: Icecast source streaming static library
50f56f6b 57Summary(pl.UTF-8): Statyczna biblioteka libshout
13dfa716 58Group: Development/Libraries
ceacd3e4 59Requires: %{name}-devel = %{version}-%{release}
13dfa716 60
61%description static
62Icecast source streaming static library.
bf9ff77c 63
e1fabe88
JR
64%description static -l pl.UTF-8
65Statyczna 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 81rm -rf $RPM_BUILD_ROOT
495498a7 82install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
bf9ff77c 83
13dfa716 84%{__make} install \
85 DESTDIR=$RPM_BUILD_ROOT
bf9ff77c 86
bb3a46b9
JB
87# obsoleted by pkg-config
88%{__rm} $RPM_BUILD_ROOT%{_libdir}/libshout.la
e9ebcf53
JB
89# ckport support is not maintained in PLD
90%{__rm} -r $RPM_BUILD_ROOT%{_libdir}/ckport
91
495498a7 92cp -rf examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
93
bd2b2232 94%clean
58ce8ca0 95rm -rf $RPM_BUILD_ROOT
bf9ff77c 96
13dfa716 97%post -p /sbin/ldconfig
98%postun -p /sbin/ldconfig
bf9ff77c 99
58ce8ca0
JB
100%files
101%defattr(644,root,root,755)
f4a8817d 102%doc NEWS README
bb3a46b9 103%attr(755,root,root) %{_bindir}/shout
f4a8817d
JB
104%attr(755,root,root) %{_libdir}/libshout.so.*.*.*
105%attr(755,root,root) %ghost %{_libdir}/libshout.so.3
bb3a46b9 106%{_mandir}/man1/shout.1*
bf9ff77c 107
13dfa716 108%files devel
109%defattr(644,root,root,755)
bb3a46b9 110%doc doc/libshout.xml
f4a8817d 111%attr(755,root,root) %{_libdir}/libshout.so
13dfa716 112%{_includedir}/shout
ceacd3e4
JB
113%{_pkgconfigdir}/shout.pc
114%{_aclocaldir}/shout.m4
115%{_examplesdir}/%{name}-%{version}
13dfa716 116
a9cad682 117%if %{with static_libs}
13dfa716 118%files static
119%defattr(644,root,root,755)
f4a8817d 120%{_libdir}/libshout.a
a9cad682 121%endif
This page took 0.1975 seconds and 4 git commands to generate.