Пакет zita-resampler: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 | # Unpackaged files in buildroot should terminate build %define _unpackaged_files_terminate_build 1 %define sover 1 Summary: Fast, high-quality sample rate conversion library Name: zita-resampler Version: 1.11.2 Release: alt1 License: GPL-3.0-or-later Group: Sound Url: http://kokkinizita.linuxaudio.org/linuxaudio/zita-resampler/resampler.html # Source-url: http://kokkinizita.linuxaudio.org/linuxaudio/downloads/zita-resampler-%version.tar.xz Source: %name-%version.tar BuildRequires: gcc-c++ libsndfile-devel Requires: lib%name%sover = %EVR %description zita-resampler is a C++ library for resampling audio signals. It is designed to be used within a real-time processing context, to be fast, and to provide high-quality sample rate conversion. The library operates on signals represented in single-precision floating point format. For multichannel operation both the input and output signals are assumed to be stored as interleaved samples. The API allows a trade-off between quality and CPU load. For the latter a range of approximately 1:6 is available. Even at the highest quality setting zita-resampler will be faster than most similar libraries, e.g. libsamplerate. %package -n lib%name%sover Summary: Convolution engine library Group: System/Libraries Conflicts: %name < 1.6.2 %description -n lib%name%sover %name is a fast, partitioned convolution engine library. %package devel Summary: Development libraries and headers for %name Group: Development/Other Requires: lib%name%sover = %EVR %description devel This package contains the headers and development libraries for %name. %prep %setup %autopatch -p1 # To make sure to have the correct ALT specific flags: sed -i -e 's|-O[23]||' -e 's|ldconfig||' -e 's|-march=native||' -e '/^CPPFLAGS += -DENABLE_SSE2/d' source/Makefile sed -i -e 's|-O[23]||' -e 's|-march=native||' apps/Makefile %build # Disable avx %ifarch %ix86 x86_64 export CXXFLAGS+=' -mno-avx' %endif # Enable SSE2 on x86_64 %ifarch x86_64 CXXFLAGS+=" -DENABLE_SSE2" export CXXFLAGS %endif %make_build -C source ln -sf libzita-resampler.so.%version source/libzita-resampler.so export CXXFLAGS+=" -I../source" export LDFLAGS+=" -L../source" %make_build -C apps %install %makeinstall_std PREFIX=%prefix LIBDIR=%_libdir -C source %makeinstall_std MANDIR=%_man1dir PREFIX=%prefix LIBDIR=%_libdir -C apps %files %doc AUTHORS COPYING %_bindir/zresample %_bindir/zretune %_man1dir/zresample.1.* %_man1dir/zretune.1.* %files -n lib%name%sover %_libdir/lib%name.so.%sover %_libdir/lib%name.so.%sover.* %files devel %doc docs/* %_includedir/%name %_libdir/lib%name.so %changelog * Tue Jan 02 2024 Anton Midyukov <antohami@altlinux.org> 1.11.2-alt1 - new version (1.11.2) with rpmgs script * Tue Jan 02 2023 Anton Midyukov <antohami@altlinux.org> 1.10.1-alt1 - new version (1.10.1) with rpmgs script * Sun Jun 27 2021 Anton Midyukov <antohami@altlinux.org> 1.8.0-alt1 - new version (1.8.0) with rpmgs script * Mon May 13 2019 Anton Midyukov <antohami@altlinux.org> 1.6.2-alt3 - Fix optflags * Sun Jan 20 2019 Anton Midyukov <antohami@altlinux.org> 1.6.2-alt2 - compilation with avx breaks work of package with older or lower Intel CPUs such as Atom. Recompilation with avx disabled (Thanks Denis Medvedev <nbr@altlinux.org>) * Sun Nov 25 2018 Anton Midyukov <antohami@altlinux.org> 1.6.2-alt1 - new version 1.6.2 * Thu May 18 2017 Anton Midyukov <antohami@altlinux.org> 1.3.0-alt1 - Initial build for ALT Linux Sisyphus. |