SHA256
1
0
forked from pool/codec2

Accepting request 922800 from home:mnhauke:sdr-devel

- Drop handcrafted generation of the pkgconfig file
- Remove "-Wno-dev"

OBS-URL: https://build.opensuse.org/request/show/922800
OBS-URL: https://build.opensuse.org/package/show/hardware:sdr/codec2?expand=0&rev=20
This commit is contained in:
Martin Pluskal
2021-10-04 07:56:46 +00:00
committed by Git OBS Bridge
parent c460a005a0
commit 5ac5edbcb9
2 changed files with 8 additions and 19 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Oct 2 15:58:11 UTC 2021 - Martin Hauke <mardnh@gmx.de>
- Drop handcrafted generation of the pkgconfig file
- Remove "-Wno-dev"
-------------------------------------------------------------------
Mon Sep 27 16:41:28 UTC 2021 - Wojciech Kazubski <wk@ire.pw.edu.pl>

View File

@@ -1,7 +1,7 @@
#
# spec file for package codec2
#
# Copyright (c) 2020-2021 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -76,29 +76,12 @@ Example code for Codec 2, including test voices and matlab/octave files.
%build
%cmake \
-DINSTALL_EXAMPLES=TRUE \
-DUNITTEST=TRUE \
-Wno-dev
-DUNITTEST=TRUE
%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/%{name}
libdir=\${exec_prefix}/%{_lib}
Name: codec2
Version: %{version}
License: GPL-2.0 and LGPL-2.1
Description: Low bit rate speech codec for two-way radio
Cflags: -I\${includedir}
Libs: -L\${libdir} -l%{name}
EOF
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig