Use %cmake_build/%cmake_install
This commit is contained in:
parent
ad0d826a3e
commit
1414d4cddb
|
@ -55,6 +55,8 @@ gImageReader is a simple front-end to tesseract. Features include:
|
|||
|
||||
%package gtk
|
||||
Summary: A Gtk+ front-end to tesseract-ocr
|
||||
# For glib networking operations
|
||||
Requires: gvfs-client
|
||||
Requires: %{name}-common = %{version}-%{release}
|
||||
Obsoletes: %{name} < 2.94-1
|
||||
|
||||
|
@ -102,19 +104,19 @@ mkdir build_gtk
|
|||
(
|
||||
cd build_gtk
|
||||
%cmake -DINTERFACE_TYPE=gtk -DENABLE_VERSIONCHECK=0 -DMANUAL_DIR="%{_defaultdocdir}/%{name}-common" ..
|
||||
%make_build
|
||||
%cmake_build
|
||||
)
|
||||
mkdir build_qt
|
||||
(
|
||||
cd build_qt
|
||||
%cmake -DINTERFACE_TYPE=qt5 -DENABLE_VERSIONCHECK=0 -DMANUAL_DIR="%{_defaultdocdir}/%{name}-common" ..
|
||||
%make_build
|
||||
%cmake_build
|
||||
)
|
||||
|
||||
|
||||
%install
|
||||
%make_install -C build_gtk
|
||||
%make_install -C build_qt
|
||||
(cd build_gtk && %cmake_install)
|
||||
(cd build_qt && %cmake_install)
|
||||
%{_bindir}/desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}-gtk.desktop
|
||||
%{_bindir}/desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}-qt5.desktop
|
||||
%{_bindir}/appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/%{name}-gtk.appdata.xml
|
||||
|
|
Loading…
Reference in New Issue