RPM: add build workarounds for kvirc, piklab, qalculate and tderadio

pull/3/head
François Andriot 8 years ago
parent 608d97009e
commit 3ed93e42cb

@ -181,6 +181,10 @@ export PATH="%{tde_bindir}:${PATH}"
%__make symlinks -C src/kvilib/build
%__make symlinks -C src/kvirc/build
%if 0%{?mgaversion} >= 6
%__sed -i "src/modules/"*"/Makefile" -e "s|-Wl,--no-undefined||"
%endif
%__make %{?_smp_mflags}

@ -114,7 +114,6 @@ are supported. A command-line programmer and debugger are also available.
%__cp -f "/usr/share/libtool/"*"/ltmain.sh" "admin/ltmain.sh" || %__cp -f "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
%__make -f "admin/Makefile.common"
%build
unset QTDIR QTINC QTLIB
export PATH="%{tde_bindir}:${PATH}"
@ -141,8 +140,16 @@ export PATH="%{tde_bindir}:${PATH}"
--disable-libreadline \
%endif
%if 0%{?mgaversion} >= 6
touch "src/devices/pic/xml_data/Makefile.in" "src/devices/mem24/xml_data/Makefile.in"
%endif
%__make %{?_smp_mflags}
%if 0%{?mgaversion} >= 6
touch "src/devices/pic/xml_data/Makefile.in" "src/devices/mem24/xml_data/Makefile.in"
%endif
%install
export PATH="%{tde_bindir}:${PATH}"

@ -126,6 +126,10 @@ export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig:${PKG_CONFIG_PATH}"
--enable-rpath \
--disable-gcc-hidden-visibility
%if 0%{?mgaversion} >= 6
%__sed -i "src/Makefile" -e "s|-Wl,--no-undefined||"
%endif
%__make %{?_smp_mflags} || %__make

@ -167,6 +167,10 @@ export PATH="%{tde_bindir}:${PATH}"
--enable-alsa \
--enable-oss
%if 0%{?mgaversion} >= 6
%__sed -i "tderadio3/plugins/"*"/Makefile" -e "s|-Wl,--no-undefined||"
%endif
%__make %{?_smp_mflags}

@ -102,6 +102,10 @@ export CPPFLAGS="${CPPFLAGS} -I%{tde_tdeincludedir} -I%{_includedir}/tqt -I%{_in
--kdeincludes=%{tde_tdeincludedir}
./waf
%__sed -i \
-e "s|KDE Desktop Entry|Desktop Entry|" \
-e "s|KDE|TDE|g" \
"src/appdata/kdissert.desktop"
%install

Loading…
Cancel
Save