SHA256
1
0
forked from pool/audacity

Accepting request 817636 from home:plater

Fix .pc file

OBS-URL: https://build.opensuse.org/request/show/817636
OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/audacity?expand=0&rev=147
This commit is contained in:
Dave Plater 2020-06-29 08:08:22 +00:00 committed by Git OBS Bridge
parent 305b2afbd8
commit 55746f3e2a

View File

@ -70,8 +70,6 @@ Recommends: %{name}-lang
Requires: %{name}-plugins = %{version}
Requires: ffmpeg
Requires: libmp3lame0
#Doesn't build for 32 bit anymore
ExcludeArch: i586
%description
Audacity is a program that manipulates digital audio wave forms.
@ -102,23 +100,28 @@ rm -rf lib-src/{expat,libvamp,libsoxr,ffmpeg,lame}/
# This is a temporary workaround.
if ! test -e %{_libdir}/pkgconfig/lame.pc
then
echo "prefix=/usr" > lame.pc
echo "libdir=/usr/lib64" >> lame.pc
echo "includedir=/usr/include/lame" >> lame.pc
echo "" >> lame.pc
echo "Name: mp3lame" >> lame.pc
echo "Description: encoder that converts audio to the MP3 file format." >> lame.pc
echo "Requires: " >> lame.pc
echo "Version: 3.100" >> lame.pc
echo "Libs: -L${libdir} -lmp3lame " >> lame.pc
echo "Cflags: -I${includedir} " >> lame.pc
echo "creating lame.pc"
cat << EOF > lame.pc
prefix=%{_prefix}
libdir=%{_libdir}
includedir=%{_includedir}/lame
Name: mp3lame
Description: encoder that converts audio to the MP3 file format.
Version: 3.100
Libs: -L${libdir} -lmp3lame
Cflags: -I${includedir}
EOF
fi
#Included in src/AboutDialog.cpp but not supplied
touch include/RevisionIdent.h
%build
if ! test -e %{_libdir}/pkgconfig/lame.pc
then
export PKG_CONFIG_PATH="`echo $PWD`:%{_libdir}/pkgconfig"
fi
export CFLAGS="%{optflags} -fno-strict-aliasing -ggdb"
export CXXFLAGS="$CFLAGS -std=gnu++11"
%cmake \