Changeset 1807 for spec/trunk/SPECS/libsndfile.spec
- Timestamp:
- Apr 10, 2022, 8:26:25 PM (4 years ago)
- File:
-
- 1 edited
-
spec/trunk/SPECS/libsndfile.spec (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/libsndfile.spec
r1768 r1807 1 1 Summary: Library for reading and writing sound files 2 2 Name: libsndfile 3 Version: 1. 0.314 Release: 2%{?dist}3 Version: 1.1.0 4 Release: 1%{?dist} 5 5 License: LGPLv2+ and GPLv2+ and BSD 6 6 URL: http://libsndfile.github.io/libsndfile/ … … 8 8 Source0: https://github.com/libsndfile/libsndfile/releases/download/%{version}/libsndfile-%{version}.tar.bz2 9 9 %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 13 12 %if !0%{?os2_version} 14 13 Patch0: libsndfile-1.0.25-system-gsm.patch 15 14 Patch1: 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 16 Patch2: libsndfile-1.0.31-deb669ee.patch 17 # from upstream, fix #2027692, for <= 1.0.31 18 Patch3: libsndfile-1.0.31-ced91d7b.patch 19 %endif 19 20 BuildRequires: gcc-c++ 21 %if !0%{?os2_version} 20 22 BuildRequires: alsa-lib-devel 21 23 %endif … … 31 33 BuildRequires: libtool 32 34 BuildRequires: make 33 %if !0%{?os2_version}34 35 BuildRequires: python3 35 %endif 36 BuildRequires: opus-devel 37 36 38 37 39 %description … … 64 66 This package contains command line utilities for libsndfile. 65 67 66 %debug67 68 68 69 %prep 69 70 %if !0%{?os2_version} 70 71 %setup -q 71 %else72 %scm_setup73 %endif74 %if !0%{?os2_version}75 72 %patch0 -p1 -b .system-gsm 76 73 rm -r src/GSM610 74 %else 75 %scm_setup 76 %endif 77 77 # TODO: check if this patch is still needed 78 %if !0%{?os2_version} 78 79 %patch1 -p1 -b .zerodivfix 80 %patch2 -p1 -b .deb669ee 81 %patch3 -p1 -b .ced91d7b 79 82 %endif 80 83 … … 82 85 %if !0%{?os2_version} 83 86 autoreconf -I M4 -fiv # for system-gsm patch 84 %endif85 86 %if !0%{?os2_version}87 87 %configure \ 88 88 --disable-dependency-tracking \ … … 101 101 -DCMAKE_BUILD_TYPE=Release \ 102 102 -Wno-dev \ 103 -DBUILD_TESTING=ON \104 103 .. 104 %endif 105 105 # Get rid of rpath 106 106 %if !0%{?os2_version} … … 109 109 %endif 110 110 111 %if !0%{?os2_version} 112 %make_build 113 %else 111 114 make %{?_smp_mflags} 112 115 %endif 113 116 114 117 %install 115 make install DESTDIR=$RPM_BUILD_ROOT 118 %make_install -C build 116 119 rm -rf __docs 117 120 mkdir __docs … … 120 123 find %{buildroot} -type f -name "*.la" -delete 121 124 122 123 125 # fix multilib issues 124 %if !0%{?os2_version}125 126 mv %{buildroot}%{_includedir}/sndfile.h \ 126 127 %{buildroot}%{_includedir}/sndfile-%{__isa_bits}.h … … 135 136 #else 136 137 # error "unexpected value for __WORDSIZE macro" 138 #endif 137 139 EOF 138 %endif 139 140 %if !0%{?os2_version} 141 %if 0%{?rhel} != 0 140 141 %if 0%{?rhel} != 0 || !0%{?os2_version} 142 142 rm -f %{buildroot}%{_bindir}/sndfile-jackplay 143 143 %endif 144 %endif 144 145 145 146 146 %check 147 LD_LIBRARY_PATH=$PWD/src/.libs make check 147 %if 0%{?os2_version} 148 LD_LIBRARY_PATH=$PWD/build 149 %endif 150 cd build 151 make -k test 152 148 153 149 154 %if !0%{?os2_version} … … 174 179 %{_bindir}/sndfile-salvage 175 180 %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 177 191 %endif 178 192 %{_mandir}/man1/sndfile-cmp.1* … … 197 211 %{_libdir}/*.a 198 212 %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 199 218 %{_libdir}/pkgconfig/sndfile.pc 200 219 201 220 202 221 %changelog 222 * Sun Apr 10 2022 Elbert Pol <elbert.pol@gmail.com> - 1.0.1-1 223 - Updated to latest version 224 203 225 * Sun Jan 31 2021 Elbert Pol <elbert.pol@gmail.com> - 1.0.21-2 204 226 - Update the spec more to Fedora style
Note:
See TracChangeset
for help on using the changeset viewer.
