I had to change Buildrequires to include qt5qml-devel but it seems the package lib64qt5qml-devel “does not know” it provides qt5qml-devel. Thus I had to write lib64qt5qml-devel in Buildrequires list(??).
In this case you may use pkgconfig(Qt5Qml) or cmake(Qt5Qml). In general ‘%{_lib}qt5qml-devel’ it is only last chance and it will cause a warning.
In .spec file macro %{SOURCE11} refers to SOURCE11. If you remove Source11: you should also change/remove any lines containing %{SOURCE11} or it claims for a missing sources. Do you?
In this forum please post pieces of code as code, which is here on purpose.
Also, not sure if QA is the proper category, maybe move your build attempts discussions to ABF for beginners?
You commented out the Source11 field then you have to comment out or modify lines where Source 11 is used or it will claim for undefined source. Each SourceXX field are generate a macro named _%{SOURCEXX} so try to look for %{SOURCE11} macro in your spec.
I guess _miconsdir refers to mini icons and _liconsdir to large icons. The point is that now I have 5 icons to handle as SOURCE11 to SOURCE15. How to define two more files for icons?
By now, building stops because it is not found the directories for mini, regular and large files. I intend to correct for that and include two more directories for extra files. The alternative would be commenting the lines to _miconsdir, _iconsdir, and _liconsdir above and not using extra sources.
or with with install -dm 0755 instead of mkdir -p. If you have several sized high color you should put them into %{buildroot}%{_iconsdir}/hicolor/${d}x${d}/apps where ${d} is the dimension of the icon.
That is the point, why do I have to use extra icons if the source itself have a directory named as you suggest with all of the required icons? The availability of these icons in the source made me try to ignore extra icons.
I now think that if I comment the references to the macros,
The rpm is packages starting from ~/rpmbuild/BUILDROOT/flightgear-2017.2.1/ directory. You may try to find if make install put icons in a not standard path otherwise you have to install the by hand.
Buildrequires dependency on Qt5Qml was set by cmake(Qt5Qml).
The flightgear icon can now be seen upon launching flightgear via
applauncher => applications => games => others => flightgear
A directory called icons now can be seen with midnight commander in
flightgear-2017.2.1-1-omv2015.0.x86_64.rpm
in /usr/share/icons.
But(???) no icons directory at /usr/share/flightgear/ after installation with --replacepkgs --replacefiles. Where are those icons? Do I still have something to correct for in flightgear spec?