|
|
@ -71,8 +71,8 @@ BuildRequires: desktop-file-utils
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
|
|
|
|
|
|
|
|
# AUTOTOOLS
|
|
|
|
# CMAKE
|
|
|
|
BuildRequires: automake autoconf libtool
|
|
|
|
BuildRequires: cmake libtool
|
|
|
|
%if 0%{?mgaversion} || 0%{?mdkversion}
|
|
|
|
%if 0%{?mgaversion} || 0%{?mdkversion}
|
|
|
|
BuildRequires: %{_lib}ltdl-devel
|
|
|
|
BuildRequires: %{_lib}ltdl-devel
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
@ -244,6 +244,8 @@ This package contains the runtime libraries for KSquirrel.
|
|
|
|
%{tde_libdir}/ksquirrel-libs/libkls_mdl.so.0.8.0
|
|
|
|
%{tde_libdir}/ksquirrel-libs/libkls_mdl.so.0.8.0
|
|
|
|
%{tde_libdir}/ksquirrel-libs/libkls_mng.so.0
|
|
|
|
%{tde_libdir}/ksquirrel-libs/libkls_mng.so.0
|
|
|
|
%{tde_libdir}/ksquirrel-libs/libkls_mng.so.0.8.0
|
|
|
|
%{tde_libdir}/ksquirrel-libs/libkls_mng.so.0.8.0
|
|
|
|
|
|
|
|
%{tde_libdir}/ksquirrel-libs/libkls_msp.so.0
|
|
|
|
|
|
|
|
%{tde_libdir}/ksquirrel-libs/libkls_msp.so.0.8.0
|
|
|
|
%{tde_libdir}/ksquirrel-libs/libkls_mtv.so.0
|
|
|
|
%{tde_libdir}/ksquirrel-libs/libkls_mtv.so.0
|
|
|
|
%{tde_libdir}/ksquirrel-libs/libkls_mtv.so.0.8.0
|
|
|
|
%{tde_libdir}/ksquirrel-libs/libkls_mtv.so.0.8.0
|
|
|
|
%{tde_libdir}/ksquirrel-libs/libkls_neo.so.0
|
|
|
|
%{tde_libdir}/ksquirrel-libs/libkls_neo.so.0
|
|
|
@ -311,7 +313,7 @@ This package contains the runtime libraries for KSquirrel.
|
|
|
|
%{tde_libdir}/ksquirrel-libs/libkls_xwd.so.0
|
|
|
|
%{tde_libdir}/ksquirrel-libs/libkls_xwd.so.0
|
|
|
|
%{tde_libdir}/ksquirrel-libs/libkls_xwd.so.0.8.0
|
|
|
|
%{tde_libdir}/ksquirrel-libs/libkls_xwd.so.0.8.0
|
|
|
|
%{tde_libdir}/libksquirrel-libs-png.so.0
|
|
|
|
%{tde_libdir}/libksquirrel-libs-png.so.0
|
|
|
|
%{tde_libdir}/libksquirrel-libs-png.so.0.0.0
|
|
|
|
%{tde_libdir}/libksquirrel-libs-png.so.0.8.0
|
|
|
|
%{tde_libdir}/libksquirrel-libs.so.0
|
|
|
|
%{tde_libdir}/libksquirrel-libs.so.0
|
|
|
|
%{tde_libdir}/libksquirrel-libs.so.0.8.0
|
|
|
|
%{tde_libdir}/libksquirrel-libs.so.0.8.0
|
|
|
|
%dir %{tde_datadir}/ksquirrel-libs
|
|
|
|
%dir %{tde_datadir}/ksquirrel-libs
|
|
|
@ -418,6 +420,8 @@ This package contains the development libraries for KSquirrel.
|
|
|
|
%{tde_libdir}/ksquirrel-libs/libkls_mdl.so
|
|
|
|
%{tde_libdir}/ksquirrel-libs/libkls_mdl.so
|
|
|
|
%{tde_libdir}/ksquirrel-libs/libkls_mng.la
|
|
|
|
%{tde_libdir}/ksquirrel-libs/libkls_mng.la
|
|
|
|
%{tde_libdir}/ksquirrel-libs/libkls_mng.so
|
|
|
|
%{tde_libdir}/ksquirrel-libs/libkls_mng.so
|
|
|
|
|
|
|
|
%{tde_libdir}/ksquirrel-libs/libkls_msp.la
|
|
|
|
|
|
|
|
%{tde_libdir}/ksquirrel-libs/libkls_msp.so
|
|
|
|
%{tde_libdir}/ksquirrel-libs/libkls_mtv.la
|
|
|
|
%{tde_libdir}/ksquirrel-libs/libkls_mtv.la
|
|
|
|
%{tde_libdir}/ksquirrel-libs/libkls_mtv.so
|
|
|
|
%{tde_libdir}/ksquirrel-libs/libkls_mtv.so
|
|
|
|
%{tde_libdir}/ksquirrel-libs/libkls_neo.la
|
|
|
|
%{tde_libdir}/ksquirrel-libs/libkls_neo.la
|
|
|
@ -544,44 +548,46 @@ if [ -r /usr/include/freetype2/ftbitmap.h ]; then
|
|
|
|
%__sed -i "kernel/kls_ttf/ttf2pnm.cpp" -e "s|freetype/config/|freetype2/config/|"
|
|
|
|
%__sed -i "kernel/kls_ttf/ttf2pnm.cpp" -e "s|freetype/config/|freetype2/config/|"
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
%__cp "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
|
|
|
|
|
|
|
|
%__cp "/usr/share/libtool/"*"/ltmain.sh" "admin/ltmain.sh" || %__cp "/usr/share/libtool/ltmain.sh" "admin/ltmain.sh"
|
|
|
|
|
|
|
|
%__make -f "admin/Makefile.common"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
%build
|
|
|
|
unset QTDIR QTINC QTLIB
|
|
|
|
unset QTDIR QTINC QTLIB
|
|
|
|
export PATH="%{tde_bindir}:${PATH}"
|
|
|
|
export PATH="%{tde_bindir}:${PATH}"
|
|
|
|
|
|
|
|
export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig"
|
|
|
|
|
|
|
|
|
|
|
|
%if 0%{?suse_version} >= 1550 || 0%{?mgaversion} >= 8 || 0%{?fedora} >= 34
|
|
|
|
if ! rpm -E %%cmake|grep -q "cd build"; then
|
|
|
|
CXXFLAGS="${CXXFLAGS} -std=c++11"
|
|
|
|
%__mkdir_p build
|
|
|
|
%endif
|
|
|
|
cd build
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
%configure \
|
|
|
|
%cmake \
|
|
|
|
--prefix=%{tde_prefix} \
|
|
|
|
-DCMAKE_BUILD_TYPE="RelWithDebInfo" \
|
|
|
|
--exec-prefix=%{tde_prefix} \
|
|
|
|
-DCMAKE_C_FLAGS="${RPM_OPT_FLAGS}" \
|
|
|
|
--bindir=%{tde_bindir} \
|
|
|
|
-DCMAKE_CXX_FLAGS="${RPM_OPT_FLAGS}" \
|
|
|
|
--datadir=%{tde_datadir} \
|
|
|
|
-DCMAKE_SKIP_RPATH=OFF \
|
|
|
|
--libdir=%{tde_libdir} \
|
|
|
|
-DCMAKE_SKIP_INSTALL_RPATH=OFF \
|
|
|
|
--includedir=%{tde_includedir} \
|
|
|
|
-DCMAKE_INSTALL_RPATH="%{tde_libdir}" \
|
|
|
|
|
|
|
|
-DCMAKE_VERBOSE_MAKEFILE=ON \
|
|
|
|
|
|
|
|
-DWITH_GCC_VISIBILITY=OFF \
|
|
|
|
|
|
|
|
\
|
|
|
|
|
|
|
|
-DCMAKE_INSTALL_PREFIX="%{tde_prefix}" \
|
|
|
|
|
|
|
|
-DSHARE_INSTALL_PREFIX="%{tde_datadir}" \
|
|
|
|
|
|
|
|
-DINCLUDE_INSTALL_DIR="%{tde_includedir}" \
|
|
|
|
|
|
|
|
-DLIB_INSTALL_DIR="%{tde_libdir}" \
|
|
|
|
\
|
|
|
|
\
|
|
|
|
--disable-dependency-tracking \
|
|
|
|
-DWITH_ALL_OPTIONS=ON \
|
|
|
|
--disable-debug \
|
|
|
|
-DWITH_GCC_VISIBILITY=ON \
|
|
|
|
--enable-new-ldflags \
|
|
|
|
|
|
|
|
--enable-final \
|
|
|
|
|
|
|
|
--enable-closure \
|
|
|
|
|
|
|
|
--enable-rpath \
|
|
|
|
|
|
|
|
--disable-gcc-hidden-visibility \
|
|
|
|
|
|
|
|
\
|
|
|
|
\
|
|
|
|
%{?with_djvu:--enable-djvu}
|
|
|
|
-DBUILD_ALL=ON \
|
|
|
|
|
|
|
|
-DBUILD_PICT=OFF \
|
|
|
|
|
|
|
|
..
|
|
|
|
|
|
|
|
|
|
|
|
%__make %{?_smp_mflags}
|
|
|
|
%__make %{?_smp_mflags} || %__make
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
%install
|
|
|
|
export PATH="%{tde_bindir}:${PATH}"
|
|
|
|
export PATH="%{tde_bindir}:${PATH}"
|
|
|
|
%__rm -rf %{buildroot}
|
|
|
|
%__rm -rf %{buildroot}
|
|
|
|
%__make install DESTDIR=%{buildroot}
|
|
|
|
%__make -C build install DESTDIR=%{buildroot}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
%clean
|
|
|
|