From 16f16ce4ffde2b38f7e90c0406faa492d2adfaf8 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 22 Sep 2017 08:54:14 +0200 Subject: allow build on mageia --- qelectrotech.spec | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/qelectrotech.spec b/qelectrotech.spec index a609069..8b66400 100644 --- a/qelectrotech.spec +++ b/qelectrotech.spec @@ -53,8 +53,16 @@ Source0: http://download.tuxfamily.org/qet/tags/%{rdate}/qelectrotech-%{upver %endif BuildRequires: desktop-file-utils -BuildRequires: qt5-qtbase-devel -BuildRequires: qt5-qtsvg-devel +BuildRequires: pkgconfig(Qt5Concurrent) +BuildRequires: pkgconfig(Qt5Core) +BuildRequires: pkgconfig(Qt5Gui) +BuildRequires: pkgconfig(Qt5Network) +BuildRequires: pkgconfig(Qt5PrintSupport) +BuildRequires: pkgconfig(Qt5Sql) +BuildRequires: pkgconfig(Qt5Svg) +BuildRequires: pkgconfig(Qt5Widgets) +BuildRequires: pkgconfig(Qt5Xml) + Requires: qelectrotech-symbols = %{version}-%{release} %if 0%{?fedora} Recommends: electronics-menu @@ -210,7 +218,11 @@ desktop-file-install --vendor="" \ # QT translation provided by QT. rm -f %{buildroot}%{_datadir}/%{name}/lang/qt_*.qm +%if 0%{?mageia} +echo '%{_datadir}/%{name}/lang/*' >qet.lang +%else %find_lang qet --with-qt +%endif %find_lang qelectrotech --with-man cat qet.lang >>qelectrotech.lang -- cgit