RPM: switch gwenview-i18n to cmake

pull/92/head
François Andriot 6 years ago
parent ff601ccbfd
commit 18bae30db6

@ -66,7 +66,7 @@ BuildRequires: desktop-file-utils
BuildRequires: gettext BuildRequires: gettext
BuildRequires: autoconf automake libtool m4 BuildRequires: cmake
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: pkgconfig BuildRequires: pkgconfig
@ -107,32 +107,31 @@ KIPI image framework.
%prep %prep
%setup -q -n %{name}-%{tde_version}%{?preversion:~%{preversion}} %setup -q -n %{name}-%{tde_version}%{?preversion:~%{preversion}}
%__cp -f "/usr/share/aclocal/libtool.m4" "admin/libtool.m4.in"
%__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 %build
unset QTDIR QTINC QTLIB unset QTDIR QTINC QTLIB
export PATH="%{tde_bindir}:${PATH}" export PATH="%{tde_bindir}:${PATH}"
./configure \ if ! rpm -E %%cmake|grep -q "cd build"; then
--prefix=%{tde_prefix} \ %__mkdir_p build
--exec-prefix=%{tde_prefix} \ cd build
--bindir=%{tde_bindir} \ fi
--datadir=%{tde_datadir} \
--docdir=%{tde_tdedocdir} \ %cmake \
--includedir=%{tde_tdeincludedir} \ -DCMAKE_BUILD_TYPE="RelWithDebInfo" \
--libdir=%{tde_libdir} \ -DCMAKE_VERBOSE_MAKEFILE=ON \
--mandir=%{tde_mandir} \
\ \
--disable-dependency-tracking \ -DCMAKE_INSTALL_PREFIX="%{tde_prefix}" \
--disable-debug \ -DBIN_INSTALL_DIR="%{tde_bindir}" \
--enable-new-ldflags \ -DINCLUDE_INSTALL_DIR="%{tde_tdeincludedir}" \
--enable-final \ -DLIB_INSTALL_DIR="%{tde_libdir}" \
--enable-closure \ -DPKGCONFIG_INSTALL_DIR="%{tde_libdir}/pkgconfig" \
--enable-rpath \ -DSHARE_INSTALL_PREFIX="%{tde_datadir}" \
--disable-gcc-hidden-visibility \
-DBUILD_ALL=ON \
-DBUILD_DOC=ON \
-DBUILD_TRANSLATIONS=ON \
..
%__make %{?_smp_mflags} %__make %{?_smp_mflags}
@ -140,14 +139,11 @@ export PATH="%{tde_bindir}:${PATH}"
%install %install
export PATH="%{tde_bindir}:${PATH}" export PATH="%{tde_bindir}:${PATH}"
%__rm -rf %{buildroot} %__rm -rf %{buildroot}
%__make install DESTDIR=%{buildroot} %__make install DESTDIR=%{buildroot} -C build
## File lists ## File lists
%find_lang gwenview %find_lang gwenview
# Removes useless files (-devel ?)
%__rm -f %{?buildroot}%{tde_libdir}/libgwenviewcore.so
%clean %clean
%__rm -rf %{buildroot} %__rm -rf %{buildroot}
Loading…
Cancel
Save