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