libsndfile/libsndfile.spec

211 lines
5.2 KiB
RPMSpec
Raw Normal View History

2019-09-30 10:58:11 -04:00
Name: libsndfile
2023-10-31 13:51:16 +08:00
Version: 1.2.2
2024-09-13 18:14:17 +08:00
Release: 2
2019-09-30 10:58:11 -04:00
Summary: Library for reading and writing sound files
2023-10-31 13:51:16 +08:00
License: LGPL-2.1-or-later AND GPL-2.0-or-later AND BSD-3-Clause
2021-12-01 14:58:28 +08:00
URL: http://libsndfile.github.io/libsndfile
Source0: https://github.com/libsndfile/libsndfile/releases/download/%{version}/%{name}-%{version}.tar.xz
2023-10-31 13:51:16 +08:00
Patch0: libsndfile-1.0.25-system-gsm.patch
2024-09-13 18:14:17 +08:00
Patch1: backport-CVE-2022-33065.patch
2019-09-30 10:58:11 -04:00
BuildRequires: alsa-lib-devel gcc gcc-c++ flac-devel
2019-09-30 10:58:11 -04:00
BuildRequires: libogg-devel libtool libvorbis-devel pkgconfig
BuildRequires: sqlite-devel
BuildRequires: opus-devel
2023-10-31 13:51:16 +08:00
BuildRequires: gsm-devel
BuildRequires: make
BuildRequires: python3
BuildRequires: lame-devel
BuildRequires: mpg123-devel
2019-09-30 10:58:11 -04:00
%description
Libsndfile is a C library for reading and writing files containing
sampled sound such as MS Windows WAV and the Apple/SGI AIFF format
through one standard library interface.
%package devel
Summary: Development package for libsndfile
Requires: %{name}%{?_isa} = %{version}-%{release} pkgconfig
%description devel
The development package for libsndfile.
%package utils
Summary: command line utilities for libsndfile
Requires: %{name} = %{version}-%{release}
%description utils
The command line utilities for libsndfile.
%package utils-help
Summary: Help files for %{name}-utils
BuildArch: noarch
%description utils-help
Help files for %{name}-utils.
%prep
2023-10-31 13:51:16 +08:00
%setup -q
%patch -P0 -p1 -b .system-gsm
rm -r src/GSM610
2024-09-13 18:14:17 +08:00
%patch -P1 -p1
2019-09-30 10:58:11 -04:00
%build
2023-10-31 13:51:16 +08:00
autoreconf -I M4 -fiv # for system-gsm patch
2019-09-30 10:58:11 -04:00
%configure \
--disable-dependency-tracking \
--enable-sqlite \
--enable-alsa \
--enable-largefile \
2023-10-31 13:51:16 +08:00
--enable-mpeg \
2019-09-30 10:58:11 -04:00
--disable-static
%disable_rpath
%make_build
%install
%make_install
rm -rf __docs
mkdir __docs
cp -pR $RPM_BUILD_ROOT%{_docdir}/%{name}/* __docs
rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}
2023-10-31 13:51:16 +08:00
find %{buildroot} -type f -name "*.la" -delete
# fix multilib issues
2019-09-30 10:58:11 -04:00
mv %{buildroot}%{_includedir}/sndfile.h \
%{buildroot}%{_includedir}/sndfile-%{__isa_bits}.h
cat > %{buildroot}%{_includedir}/sndfile.h <<EOF
#include <bits/wordsize.h>
#if __WORDSIZE == 32
# include "sndfile-32.h"
#elif __WORDSIZE == 64
# include "sndfile-64.h"
#else
# error "unexpected value for __WORDSIZE macro"
#endif
EOF
%check
LD_LIBRARY_PATH=$PWD/src/.libs make check
2019-12-25 15:54:59 +08:00
%ldconfig_scriptlets
2019-09-30 10:58:11 -04:00
%files
%{_libdir}/%{name}.so.*
%doc AUTHORS README NEWS.OLD
2019-09-30 10:58:11 -04:00
%license COPYING
%files utils
%{_bindir}/sndfile-cmp
%{_bindir}/sndfile-concat
%{_bindir}/sndfile-convert
%{_bindir}/sndfile-deinterleave
%{_bindir}/sndfile-info
%{_bindir}/sndfile-interleave
%{_bindir}/sndfile-metadata-get
%{_bindir}/sndfile-metadata-set
%{_bindir}/sndfile-play
%{_bindir}/sndfile-salvage
%files devel
%{_includedir}/sndfile.h
%{_includedir}/sndfile.hh
%{_includedir}/sndfile-%{__isa_bits}.h
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/sndfile.pc
%doc __docs ChangeLog
%exclude %{_libdir}/*.la
%files utils-help
%{_mandir}/man1/sndfile-cmp.1*
%{_mandir}/man1/sndfile-concat.1*
%{_mandir}/man1/sndfile-convert.1*
%{_mandir}/man1/sndfile-deinterleave.1*
%{_mandir}/man1/sndfile-info.1*
%{_mandir}/man1/sndfile-interleave.1*
%{_mandir}/man1/sndfile-metadata-get.1*
%{_mandir}/man1/sndfile-metadata-set.1*
%{_mandir}/man1/sndfile-play.1*
%{_mandir}/man1/sndfile-salvage.1*
%changelog
2024-09-13 18:14:17 +08:00
* Fri Sep 13 2024 zhangnaichuan <zhangnaichuan@huawei.com> - 1.2.2-2
- fix CVE-2203-33065
2023-10-31 13:51:16 +08:00
* Tue Oct 31 2023 haomimi <haomimi@uniontech.com> - 1.2.2-1
- pdate to 1.2.2
* Mon Sep 11 2023 penghaitao <htpengc@isoftstone.com> - 1.2.0-2
- Add opus-devel to satisfy configure requirements check
* Fri Feb 10 2023 Liu Yuntao <liuyuntao10@huawei.com> - 1.2.0-1
- update to 1.2.0, and update upstream URL
2022-12-29 11:47:37 +08:00
* Thu Dec 29 2022 liying <liying_1@chinatelecom.cn> - 1.0.31-3
2022-12-29 11:00:03 +08:00
- Marked unimplemented dither enums in the header file as such.
- Fix typo
- Fix memory leak in caf_read_header
* Mon May 16 2022 zhouwenpei <zhouwenpei1@h-partners.com> - 1.0.31-2
- fix CVE-2021-4156
2021-12-01 14:58:28 +08:00
* Wed Dec 1 2021 zhouwenpei <zhouwenpei1@huawei.com> - 1.0.31-1
- update to 1.0.31
* Thu Sep 23 2021 zhouwenpei <zhouwenpei1@huawei.com> - 1.0.28-19
- fix CVE-2021-3246
2020-02-03 20:21:25 +08:00
* Mon Feb 03 2020 chenmaodong<chenmaodong@huawei.com> - 1.0.28-18
- Type:cves
- ID:CVE-2017-8362
- SUG:NA
- DESC:fix CVE-2017-8362
* Fri Jan 10 2020 chenmaodong<chenmaodong@huawei.com> - 1.0.28-17
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:use libgsm inside libsndfile
2020-01-08 22:02:52 +08:00
* Wed Jan 08 2020 chenmaodong<chenmaodong@huawei.com> - 1.0.28-16
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:remove sensitive information
2019-12-25 15:54:59 +08:00
* Mon Dec 23 2019 chenmaodong<chenmaodong@huawei.com> - 1.0.28-15
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:sync patches from next_kernel
* Fri Dec 20 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.0.28-14
- Fix ldconfig scriptlets
2019-09-30 10:58:11 -04:00
* Sat Apr 06 2019 luochunsheng<luochunsheng@huawei.com> - 1.0.28-13
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:remove sensitive information
* Thu Apr 04 2019 liuqianya<liuqianya@huawei.com> - 1.0.28-12
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:fix CVE-2018-19662
* Fri Mar 29 2019 zhangwenlong<zhangwenlong13@huawei.com> - 1.0.28-11
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:fix CVE-2019-3832
* Wed Feb 13 2019 cangyi<cangyi@huawei.com> - 1.0.28-10
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:sync
* Mon Sep 10 2018 openEuler Buildteam <buildteam@openeuler.org> -1.0.28-9
- Package init