Format SPEC file

epel9
Simone Caronni 3 years ago
parent e444ebb198
commit 17fc308ec2

@ -1,57 +1,51 @@
%global commit 88cd1613a1db8d5dee0910a9a0c3e676e31bc529 %global commit 88cd1613a1db8d5dee0910a9a0c3e676e31bc529
%global shortcommit %(c=%{commit}; echo ${c:0:7}) %global shortcommit %(c=%{commit}; echo ${c:0:7})
Name: ilbc Name: ilbc
Summary: Internet Low Bitrate Codec Summary: Internet Low Bitrate Codec
Version: 1.1.1 Version: 1.1.1
Release: 22%{?dist} Release: 22%{?dist}
License: BSD License: BSD
URL: https://github.com/TimothyGu/libilbc URL: https://github.com/TimothyGu/libilbc
Source0: %{url}/archive/%{commit}/libilbc-%{shortcommit}.tar.gz Source0: %{url}/archive/%{commit}/libilbc-%{shortcommit}.tar.gz
# Fedora/EPEL-specific # Fedora/EPEL-specific
Patch1: %{name}-0001-Don-t-build-silently.patch Patch1: %{name}-0001-Don-t-build-silently.patch
BuildRequires: autoconf BuildRequires: autoconf
BuildRequires: automake BuildRequires: automake
BuildRequires: libtool BuildRequires: libtool
BuildRequires: gcc BuildRequires: gcc
BuildRequires: make BuildRequires: make
%description %description
iLBC (internet Low Bitrate Codec) is a FREE speech codec suitable for iLBC (internet Low Bitrate Codec) is a FREE speech codec suitable for robust
robust voice communication over IP. The codec is designed for narrow voice communication over IP. The codec is designed for narrow band speech and
band speech and results in a payload bit rate of 13.33 kbit/s with an results in a payload bit rate of 13.33 kbit/s with an encoding frame length of
encoding frame length of 30 ms and 15.20 kbps with an encoding length 30 ms and 15.20 kbps with an encoding length of 20 ms. The iLBC codec enables
of 20 ms. The iLBC codec enables graceful speech quality degradation in graceful speech quality degradation in the case of lost frames, which occurs in
the case of lost frames, which occurs in connection with lost or connection with lost or delayed IP packets.
delayed IP packets.
%package devel
Summary: development files for %{name}
%package devel Requires: %{name}%{?_isa} = %{version}-%{release}
Summary: development files for %{name} Requires: pkgconfig
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: pkgconfig
%description devel %description devel
Additional header files for development with %{name}. Additional header files for development with %{name}.
%prep %prep
%autosetup -n libilbc-%{commit} -p1 %autosetup -p1 -n libilbc-%{commit}
%build %build
autoreconf -ivf autoreconf -ivf
%configure --disable-static --with-pic %configure --disable-static --with-pic
%make_build %make_build
%install %install
%make_install %make_install
rm -f %{buildroot}%{_libdir}/libilbc.la rm -f %{buildroot}%{_libdir}/libilbc.la
# Required for compatibility with a very old apps # Required for compatibility with very old apps
cd %{buildroot}%{_libdir}/pkgconfig && ln -s libilbc.pc ilbc.pc cd %{buildroot}%{_libdir}/pkgconfig && ln -s libilbc.pc ilbc.pc
# Make compat symlinks # Make compat symlinks
@ -60,17 +54,13 @@ ln -s ilbc.h iLBC_decode.h
ln -s ilbc.h iLBC_define.h ln -s ilbc.h iLBC_define.h
ln -s ilbc.h iLBC_encode.h ln -s ilbc.h iLBC_encode.h
%{?ldconfig_scriptlets}
%ldconfig_scriptlets
%files %files
%doc README %doc README
%license COPYING %license COPYING
%{_libdir}/lib%{name}.so.* %{_libdir}/lib%{name}.so.*
%files devel %files devel
%{_includedir}/ilbc.h %{_includedir}/ilbc.h
# Compat symlinks # Compat symlinks
@ -81,7 +71,6 @@ ln -s ilbc.h iLBC_encode.h
%{_libdir}/pkgconfig/libilbc.pc %{_libdir}/pkgconfig/libilbc.pc
%{_libdir}/lib%{name}.so %{_libdir}/lib%{name}.so
%changelog %changelog
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-22 * Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-22
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild

Loading…
Cancel
Save