RPM: fix some build issues on OBS

pull/92/head
François Andriot 4 years ago
parent a815976a0a
commit 1a41c9170b

@ -83,6 +83,16 @@ BuildRequires: gamin-devel
# OPENSSL support
BuildRequires: openssl-devel
# SUSE desktop files utility
%if 0%{?suse_version}
BuildRequires: update-desktop-files
%endif
%if 0%{?opensuse_bs} && 0%{?suse_version}
# for xdg-menu script
BuildRequires: brp-check-trinity
%endif
%description
AbaKus is a complex calculator, which provides

@ -77,6 +77,20 @@ BuildRequires: openssl-devel
# XKBFILES support
BuildRequires: libxkbfile-devel
# XMU support
%if 0%{?suse_version} == 1140
BuildRequires: xorg-x11-libXmu-devel
%endif
%if 0%{?rhel} || 0%{?fedora} || 0%{?suse_version} >= 1210
BuildRequires: libXmu-devel
%endif
%if 0%{?mdkversion} || 0%{?mgaversion} >= 4
BuildRequires: libxmu-devel
%endif
%if 0%{?mgaversion} == 2 || 0%{?mgaversion} == 3
BuildRequires: %{_lib}xmu%{?mgaversion:6}-devel
%endif
# SUSE desktop files utility
%if 0%{?suse_version}
BuildRequires: update-desktop-files

@ -89,6 +89,10 @@ United States by Bally, Pacman is an icon of 1980's popular culture
%build
unset QTDIR QTINC QTLIB
export PATH="%{tde_bindir}:${PATH}"
export PKG_CONFIG_PATH="%{tde_libdir}/pkgconfig"
if ! rpm -E %%cmake|grep -q "cd build"; then
%__mkdir_p build
cd build

Loading…
Cancel
Save