I have trouble, which occurs only when i trying to build package for Fedora. I added BuildReqs: libqt4-devel and packages for OpenSuSE compiles, but qmake is missing in Fedora. I don’t want to install Fedora to check where this tool is included, so I ask here.
Hi
Add to your build requires;
BuildRequires: pkgconfig(QtCore)
The above is command for qt4 qmake in both distributions, makes life easier to use pkgconfig…
Else;
%if 0%{?suse_version}
BuildRequires: libqt4-devel
%else
BuildRequires: qt-devel
%endif
Peruse this if you get stuck on cross-distribution
https://en.opensuse.org/openSUSE:Build_Service_cross_distribution_howto
The main problem is qmake is called qmake-qt4 on Fedora systems, so I must rewrite Modules/Qt5/make.sh script. This script is using which command twice and command to detect, which name should been used.
I have build libgreattao2 package for Fedora!
On Sun 05 Jul 2015 08:26:01 AM CDT, Lachu wrote:
The main problem is qmake is called qmake-qt4 on Fedora systems, so I
must rewrite Modules/Qt5/make.sh script. This script is using which
command twice and command to detect, which name should been used.
I have build libgreattao2 package for Fedora!
Hi
So you modified the source? Is this your source or downloaded?
At the beginning of the spec file (before Name) add;
%if 0%{?suse_version}
%define qmake /usr/bin/qmake
%endif
%if 0%{?fedora}
%define qmake /usr/bin/qmake-qt4
%endif
and in your %build use;
%build
%{qmake}
–
Cheers Malcolm °¿° LFCS, SUSE Knowledge Partner (Linux Counter #276890)
SUSE Linux Enterprise Desktop 12 GNOME 3.10.1 Kernel
3.12.43-52.6-default If you find this post helpful and are logged into
the web interface, please show your appreciation and click on the star
below… Thanks!
I’m author of libgreattao2 and Qt4 backend, so the source is mine. Of course, before sending new tarball to OBS, I have update svn repository with new ./make.sh.
I didn’t prefer to modify spec file, because building my library from downloaded source should success on Fedora too. Thanks for help!