diff --git a/audacity.spec b/audacity.spec index 0fe4f8c..0ab574d 100644 --- a/audacity.spec +++ b/audacity.spec @@ -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 \