libshout/libshout.spec

76 lines
2.1 KiB
RPMSpec
Raw Permalink Normal View History

2019-11-19 11:50:06 +08:00
Name: libshout
2023-10-13 11:15:31 +08:00
Version: 2.4.6
Release: 1
2019-11-19 11:50:06 +08:00
Summary: Library which can be used to write a source client like ices
License: LGPLv2+
URL: http://www.icecast.org/
Source: http://downloads.us.xiph.org/releases/libshout/libshout-%{version}.tar.gz
2023-10-13 11:15:31 +08:00
Patch0: libshout-2.4.3-Allow-disabling-ckport-database-installation.patch
Patch1: libshout-2.4.3-Default-OpenSSL-cipher-list-is-PROFILE-SYSTEM.patch
2019-11-19 11:50:06 +08:00
2023-10-13 11:15:31 +08:00
BuildRequires: openssl-devel libvorbis-devel libtheora-devel speex-devel pkgconfig gcc
BuildRequires: autoconf automake coreutils findutils libtool
2019-11-19 11:50:06 +08:00
%description
libshout is a library which can be used to write a source client like ices. It handles the socket
connection, the timing of the data, and prevents most bad data from getting to the icecast server.
%package devel
Summary: Libraries and header files for libshout
Requires: libshout = %{version}-%{release}
%description devel
The libshout-devel package contains the libraries and header files needed for libshout.
%prep
%autosetup -p1
2023-10-13 11:15:31 +08:00
autoreconf -fi
2019-11-19 11:50:06 +08:00
%build
2023-10-13 11:15:31 +08:00
%configure --disable-silent-rules --disable-static --disable-ckport \
--enable-examples --enable-pkgconfig --enable-shared --enable-speex \
--enable-theora --enable-thread
2019-11-19 11:50:06 +08:00
sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
%make_build
%install
%make_install
2023-10-13 11:15:31 +08:00
find $RPM_BUILD_ROOT -type f -name "*.la" -delete
rm -rf $RPM_BUILD_ROOT%{_docdir}
2019-11-19 11:50:06 +08:00
%pre
%post -p /sbin/ldconfig
%preun
%postun -p /sbin/ldconfig
%files
%doc NEWS README COPYING
%{_libdir}/libshout.so.3*
2023-10-13 11:15:31 +08:00
%{_bindir}/shout
%{_mandir}/*/shout.*
2019-11-19 11:50:06 +08:00
%files devel
2023-10-13 11:15:31 +08:00
%doc examples/*.c doc/*.xml
2019-11-19 11:50:06 +08:00
%{_includedir}/shout/
%{_libdir}/libshout.so
%{_libdir}/pkgconfig/shout.pc
%{_datadir}/aclocal/shout.m4
%exclude %{_libdir}/*.la
%exclude %{_docdir}/libshout/*.c
%changelog
2023-10-13 11:15:31 +08:00
* Thu Oct 12 2023 Ge Wang <wang__ge@126.com> - 2.4.6-1
- Update to version 2.4.6
* Tue Jun 08 2021 wulei <wulei80@huawei.com> - 2.2.2-22
- fixes failed: error: no acceptable C compiler found in $PATH
2019-11-19 11:50:06 +08:00
* Mon Oct 21 2019 Huiming Xie <xiehuiming@huawei.com> - 2.2.2-21
- init package