aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavel Pisa <pisa@cmp.felk.cvut.cz>2019-03-21 20:53:18 +0100
committerPavel Pisa <pisa@cmp.felk.cvut.cz>2019-03-21 20:53:18 +0100
commitfeba49b9aaf6af240e5ebe03077e90df63328e64 (patch)
tree75cb40919fd219f9424fcbf54f14fe1e99c6b436
parentb2f551889a10de5334e727b8f34007b388896161 (diff)
downloadqtmips-feba49b9aaf6af240e5ebe03077e90df63328e64.tar.gz
qtmips-feba49b9aaf6af240e5ebe03077e90df63328e64.tar.bz2
qtmips-feba49b9aaf6af240e5ebe03077e90df63328e64.zip
OBS: use appropriate dependencies for Suse.
The Qt5 and libelf development packages differs between Fedora and Suse. Signed-off-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
-rw-r--r--qtmips.spec8
1 files changed, 7 insertions, 1 deletions
diff --git a/qtmips.spec b/qtmips.spec
index 411fdd3..21dedfd 100644
--- a/qtmips.spec
+++ b/qtmips.spec
@@ -26,12 +26,18 @@ Url: https://github.com/cvut/QtMips/
Source: qtmips-%{version}.tar.gz
+%if 0%{?suse_version}
+BuildRequires: libqt5-qtbase-devel
+BuildRequires: libelf-devel
+%endif
+%if 0%{?fedora} || 0%{?centos_version} || 0%{?rhel_version} || 0%{?scientificlinux_version}
BuildRequires: gcc-c++
BuildRequires: qt5-qtbase-devel >= 5.3
BuildRequires: elfutils-libelf-devel
-
Requires: qt5-qtbase
+%endif
+
# Qt devel packages
%define qmake /usr/bin/qmake-qt5