Package libcodec2: 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 | %define soversion 1.2 Name: libcodec2 Version: 1.2.0 Release: alt1 Summary: libcodec2 is a library for the codec2 low bit rate speech codec License: LGPLv2.1 Group: System/Libraries Url: http://rowetel.com/codec2.html Source0: %name-%version.tar Source1: %name.watch BuildRequires: cmake gcc-c++ %description libcodec2 is a library for the codec2 low bit rate speech codec. %package devel Summary: codec2 development files Group: Development/C Requires: libcodec2_%soversion = %EVR %description devel codec2 development files. %package -n libcodec2_%soversion Summary: libcodec2 is a library for the codec2 low bit rate speech codec Group: System/Libraries %description -n libcodec2_%soversion libcodec2 is a library for the codec2 low bit rate speech codec. %prep %setup %ifarch %e2k # unsupported as of lcc 1.25.17 (mcst#5133) sed -i 's,-finstrument-functions,,' unittest/CMakeLists.txt sed -i '/#define USE_VECTOR_OPS 1/d' src/cohpsk.c sed -i 's/^inline void/static &/' src/cohpsk.c %endif %build %cmake %cmake_build %install %cmake_install # Create and install pkgconfig file mkdir -p %buildroot%_libdir/pkgconfig cat > %buildroot%_libdir/pkgconfig/codec2.pc << EOF prefix=%prefix exec_prefix=\${prefix} includedir=\${prefix}/include/codec2 libdir=\${exec_prefix}/%_lib Name: codec2 Description: Next-Generation Digital Voice for Two-Way Radio Version: %version Cflags: -I\${includedir} Libs: -L\${libdir} -lcodec2 EOF %files -n libcodec2_%soversion %_libdir/libcodec2.so.%soversion %files devel %_includedir/codec2 %_libdir/cmake/codec2 %_libdir/libcodec2.so %_libdir/pkgconfig/codec2.pc %changelog * Tue Feb 13 2024 Anton Farygin <rider@altlinux.ru> 1.2.0-alt1 - 1.0.5 -> 1.2.0 * Thu Oct 06 2022 Anton Farygin <rider@altlinux.ru> 1.0.5-alt1 - 1.0.3 -> 1.0.5 * Sat Jan 29 2022 Anton Farygin <rider@altlinux.ru> 1.0.3-alt1 - 1.0.1 -> 1.0.3 * Tue Jan 18 2022 Ilya Kurdyukov <ilyakurdyukov@altlinux.org> 1.0.1-alt1.1 - fixed build for Elbrus * Wed Sep 29 2021 Anton Farygin <rider@altlinux.ru> 1.0.1-alt1 - 1.0.1 * Fri Aug 13 2021 Michael Shigorin <mike@altlinux.org> 0.9.2-alt1.2 - E2K: avoid lcc-unsupported option * Tue Apr 27 2021 Arseny Maslennikov <arseny@altlinux.org> 0.9.2-alt1.1 - NMU: spec: adapted to new cmake macros. * Mon Jun 29 2020 Anton Farygin <rider@altlinux.ru> 0.9.2-alt1 - 0.9.2 * Thu Aug 09 2018 Anton Farygin <rider@altlinux.ru> 0.8.1-alt1 - 0.8.1 * Tue Oct 03 2017 Anton Farygin <rider@altlinux.ru> 0.7-alt1 - 0.7 * Fri Oct 21 2016 Anton Farygin <rider@altlinux.ru> 0.5.1-alt1 - new version * Thu Feb 18 2016 Anton Farygin <rider@altlinux.ru> 0.5-alt1 - first build for Sisyphus |