Ignore:
Timestamp:
Apr 10, 2022, 8:26:25 PM (4 years ago)
Author:
tellie
Message:

spec: libsndfile: Release version 1.1.0-1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • spec/trunk/SPECS/libsndfile.spec

    r1768 r1807  
    11Summary:        Library for reading and writing sound files
    22Name:           libsndfile
    3 Version:        1.0.31
    4 Release:        2%{?dist}
     3Version:        1.1.0
     4Release:        1%{?dist}
    55License:        LGPLv2+ and GPLv2+ and BSD
    66URL:            http://libsndfile.github.io/libsndfile/
     
    88Source0:        https://github.com/libsndfile/libsndfile/releases/download/%{version}/libsndfile-%{version}.tar.bz2
    99%else
    10 %scm_source github http://github.com/TeLLie/%{name}-os2 %{version}-os2
    11 %endif
    12 
     10%scm_source github https://github.com/TeLLie/libsndfile-os2 %{version}-os2
     11%endif
    1312%if !0%{?os2_version}
    1413Patch0:         libsndfile-1.0.25-system-gsm.patch
    1514Patch1:         libsndfile-1.0.25-zerodivfix.patch
    16 %endif
    17 
    18 %if !0%{?os2_version}
     15# from upstream, fix #1984320=CVE-2021-3246, for <= 1.0.31
     16Patch2:         libsndfile-1.0.31-deb669ee.patch
     17# from upstream, fix #2027692, for <= 1.0.31
     18Patch3:         libsndfile-1.0.31-ced91d7b.patch
     19%endif
    1920BuildRequires:  gcc-c++
     21%if !0%{?os2_version}
    2022BuildRequires:  alsa-lib-devel
    2123%endif
     
    3133BuildRequires:  libtool
    3234BuildRequires:  make
    33 %if !0%{?os2_version}
    3435BuildRequires:  python3
    35 %endif
     36BuildRequires:  opus-devel
     37
    3638
    3739%description
     
    6466This package contains command line utilities for libsndfile.
    6567
    66 %debug
    6768
    6869%prep
    6970%if !0%{?os2_version}
    7071%setup -q
    71 %else
    72 %scm_setup
    73 %endif
    74 %if !0%{?os2_version}
    7572%patch0 -p1 -b .system-gsm
    7673rm -r src/GSM610
     74%else
     75%scm_setup
     76%endif
    7777# TODO: check if this patch is still needed
     78%if !0%{?os2_version}
    7879%patch1 -p1 -b .zerodivfix
     80%patch2 -p1 -b .deb669ee
     81%patch3 -p1 -b .ced91d7b
    7982%endif
    8083
     
    8285%if !0%{?os2_version}
    8386autoreconf -I M4 -fiv # for system-gsm patch
    84 %endif
    85 
    86 %if !0%{?os2_version}
    8787%configure \
    8888        --disable-dependency-tracking \
     
    101101      -DCMAKE_BUILD_TYPE=Release \
    102102      -Wno-dev \
    103       -DBUILD_TESTING=ON \
    104103       ..
     104%endif
    105105# Get rid of rpath
    106106%if !0%{?os2_version}
     
    109109%endif
    110110
     111%if !0%{?os2_version}
     112%make_build
     113%else
    111114make %{?_smp_mflags}
    112115%endif
    113116
    114117%install
    115 make install DESTDIR=$RPM_BUILD_ROOT
     118%make_install -C build
    116119rm -rf __docs
    117120mkdir __docs
     
    120123find %{buildroot} -type f -name "*.la" -delete
    121124
    122 
    123125# fix multilib issues
    124 %if !0%{?os2_version}
    125126mv %{buildroot}%{_includedir}/sndfile.h \
    126127   %{buildroot}%{_includedir}/sndfile-%{__isa_bits}.h
     
    135136#else
    136137# error "unexpected value for __WORDSIZE macro"
     138#endif
    137139EOF
    138 %endif
    139 
    140 %if !0%{?os2_version}
    141 %if 0%{?rhel} != 0
     140
     141%if 0%{?rhel} != 0 || !0%{?os2_version}
    142142rm -f %{buildroot}%{_bindir}/sndfile-jackplay
    143143%endif
    144 %endif
     144
    145145
    146146%check
    147 LD_LIBRARY_PATH=$PWD/src/.libs make check
     147%if 0%{?os2_version}
     148LD_LIBRARY_PATH=$PWD/build
     149%endif
     150cd build
     151make -k test
     152
    148153
    149154%if !0%{?os2_version}
     
    174179%{_bindir}/sndfile-salvage
    175180%else
    176 %{_bindir}/*.exe
     181%{_bindir}/sndfile-cmp.exe
     182%{_bindir}/sndfile-concat.exe
     183%{_bindir}/sndfile-convert.exe
     184%{_bindir}/sndfile-deinterleave.exe
     185%{_bindir}/sndfile-info.exe
     186%{_bindir}/sndfile-interleave.exe
     187%{_bindir}/sndfile-metadata-get.exe
     188%{_bindir}/sndfile-metadata-set.exe
     189%{_bindir}/sndfile-play.exe
     190%{_bindir}/sndfile-salvage.exe
    177191%endif
    178192%{_mandir}/man1/sndfile-cmp.1*
     
    197211%{_libdir}/*.a
    198212%endif
     213%dir %{_libdir}/cmake/SndFile
     214%{_libdir}/cmake/SndFile/SndFileTargets-release.cmake
     215%{_libdir}/cmake/SndFile/SndFileConfig.cmake
     216%{_libdir}/cmake/SndFile/SndFileConfigVersion.cmake
     217%{_libdir}/cmake/SndFile/SndFileTargets.cmake
    199218%{_libdir}/pkgconfig/sndfile.pc
    200219
    201220
    202221%changelog
     222* Sun Apr 10 2022 Elbert Pol <elbert.pol@gmail.com> - 1.0.1-1
     223- Updated to latest version
     224
    203225* Sun Jan 31 2021 Elbert Pol <elbert.pol@gmail.com> - 1.0.21-2
    204226- Update the spec more to Fedora style
Note: See TracChangeset for help on using the changeset viewer.