|
Lines 2-8
Link Here
|
| 2 |
|
2 |
|
| 3 |
Name: qgroundcontrol |
3 |
Name: qgroundcontrol |
| 4 |
Version: 5.0.8 |
4 |
Version: 5.0.8 |
| 5 |
Release: alt5 |
5 |
Release: alt6 |
| 6 |
|
6 |
|
| 7 |
Summary: Ground Control Station (GCS) designed for UAVs |
7 |
Summary: Ground Control Station (GCS) designed for UAVs |
| 8 |
License: Apache-2.0 |
8 |
License: Apache-2.0 |
|
Lines 28-33
Requires: libOpenGL
Link Here
|
| 28 |
BuildRequires(pre): rpm-macros-cmake |
28 |
BuildRequires(pre): rpm-macros-cmake |
| 29 |
BuildRequires: cmake |
29 |
BuildRequires: cmake |
| 30 |
BuildRequires: gcc gcc-c++ |
30 |
BuildRequires: gcc gcc-c++ |
|
|
31 |
%ifarch %e2k |
| 32 |
BuildRequires: clang |
| 33 |
%endif |
| 31 |
BuildRequires: packagekit-qt6-devel |
34 |
BuildRequires: packagekit-qt6-devel |
| 32 |
BuildRequires: qt6-charts-devel |
35 |
BuildRequires: qt6-charts-devel |
| 33 |
BuildRequires: qt6-5compat-devel |
36 |
BuildRequires: qt6-5compat-devel |
|
Lines 66-76
BuildRequires: zlib-devel
Link Here
|
| 66 |
BuildRequires: libmount-devel |
69 |
BuildRequires: libmount-devel |
| 67 |
BuildRequires: libblkid-devel |
70 |
BuildRequires: libblkid-devel |
| 68 |
BuildRequires: libselinux-devel |
71 |
BuildRequires: libselinux-devel |
|
|
72 |
%ifnarch %e2k |
| 69 |
BuildRequires: libunwind-devel |
73 |
BuildRequires: libunwind-devel |
|
|
74 |
%endif |
| 70 |
BuildRequires: libSDL2-devel |
75 |
BuildRequires: libSDL2-devel |
| 71 |
BuildRequires: libSDL3-devel |
76 |
BuildRequires: libSDL3-devel |
| 72 |
BuildRequires: libsystemd-devel |
77 |
BuildRequires: libsystemd-devel |
| 73 |
BuildRequires: patchelf |
|
|
| 74 |
BuildRequires: libsoundio-devel |
78 |
BuildRequires: libsoundio-devel |
| 75 |
BuildRequires: libpulseaudio-devel |
79 |
BuildRequires: libpulseaudio-devel |
| 76 |
BuildRequires: libwayland-client-devel |
80 |
BuildRequires: libwayland-client-devel |
|
Lines 110-160
mission planning, making it the go-to solution for any MAVLink-enabled drone.
Link Here
|
| 110 |
cp -r %_datadir/ParameterRepository/* src/FirmwarePlugin/APM/ArduPilot-Parameter-Repository/ |
114 |
cp -r %_datadir/ParameterRepository/* src/FirmwarePlugin/APM/ArduPilot-Parameter-Repository/ |
| 111 |
|
115 |
|
| 112 |
%build |
116 |
%build |
| 113 |
export LC_ALL=ru_RU.UTF-8 |
117 |
export LC_ALL=C.UTF-8 |
| 114 |
qt-cmake-qt6 -B build -G Ninja \ |
118 |
export QTDIR=%_qt6_prefix |
| 115 |
-DCMAKE_BUILD_TYPE=Release \ |
119 |
export PATH="%{_qt6_bindir}:$PATH" |
| 116 |
-DCMAKE_PROJECT_INCLUDE=%SOURCE1 \ |
120 |
%cmake \ |
| 117 |
-DCMAKE_SKIP_INSTALL_RPATH=ON \ |
121 |
%ifarch %e2k |
| 118 |
-DCMAKE_INSTALL_RPATH="%_libdir" \ |
122 |
-DCMAKE_C{_COMPILER=clang,XX_COMPILER=clang++} \ |
| 119 |
-DCMAKE_PREFIX_PATH=%_libdir/cmake/ \ |
123 |
-DCMAKE_C{,XX}_FLAGS_RELEASE="-O2 -g -DNDEBUG" \ |
| 120 |
-DBUILD_SHARED_LIBS=ON \ |
124 |
%endif |
| 121 |
-DLIB_PREFIX=%_libdir \ |
125 |
-DCMAKE_AUTOGEN_PARALLEL=%__nprocs \ |
| 122 |
-DLIB_DIR_NAME=%_lib \ |
126 |
-DCMAKE_BUILD_TYPE=Release \ |
| 123 |
-DUSE_SYSTEM_ULOG_CPP=ON \ |
127 |
-DCMAKE_PROJECT_INCLUDE=%SOURCE1 \ |
| 124 |
-DUSE_SYSTEM_QMDNSENGINE=ON \ |
128 |
-DCMAKE_BUILD_RPATH:STRING='' \ |
| 125 |
-DUSE_SYSTEM_PX4-GPSDRIVERS=ON \ |
129 |
-DCMAKE_SKIP_INSTALL_RPATH=ON \ |
| 126 |
-DUSE_SYSTEM_SDL_GAMECONTROLLERDB=ON \ |
130 |
-DCMAKE_PREFIX_PATH=%_libdir/cmake/ \ |
| 127 |
-DUSE_SYSTEM_SDL2=ON \ |
131 |
-DBUILD_SHARED_LIBS=ON \ |
| 128 |
-DUSE_SYSTEM_MAVLINK=ON \ |
132 |
-DLIB_PREFIX=%_libdir \ |
| 129 |
-DUSE_SYSTEM_LIBEVENTS=ON \ |
133 |
-DLIB_DIR_NAME=%_lib \ |
| 130 |
-DUSE_SYSTEM_ZLIB=ON \ |
134 |
-DUSE_SYSTEM_ULOG_CPP=ON \ |
| 131 |
-DUSE_SYSTEM_XZ-EMBEDDED=ON \ |
135 |
-DUSE_SYSTEM_QMDNSENGINE=ON \ |
| 132 |
-DUSE_SYSTEM_GEOGRAPHICLIB=ON \ |
136 |
-DUSE_SYSTEM_PX4-GPSDRIVERS=ON \ |
| 133 |
-DUSE_SYSTEM_SHAPE=ON \ |
137 |
-DUSE_SYSTEM_SDL_GAMECONTROLLERDB=ON \ |
| 134 |
-DUSE_SYSTEM_GSTQML6=ON \ |
138 |
-DUSE_SYSTEM_SDL2=ON \ |
| 135 |
# |
139 |
-DUSE_SYSTEM_MAVLINK=ON \ |
| 136 |
|
140 |
-DUSE_SYSTEM_LIBEVENTS=ON \ |
| 137 |
cmake --build build --config Release |
141 |
-DUSE_SYSTEM_ZLIB=ON \ |
| 138 |
patchelf --set-rpath '' build/Release/QGroundControl # Clear wrong paths in rpath. |
142 |
-DUSE_SYSTEM_XZ-EMBEDDED=ON \ |
|
|
143 |
-DUSE_SYSTEM_GEOGRAPHICLIB=ON \ |
| 144 |
-DUSE_SYSTEM_SHAPE=ON \ |
| 145 |
-DUSE_SYSTEM_GSTQML6=ON \ |
| 146 |
# |
| 147 |
|
| 148 |
%cmake_build |
| 139 |
|
149 |
|
| 140 |
%install |
150 |
%install |
| 141 |
mkdir -pv %buildroot |
151 |
install -Dm 755 {%_cmake__builddir/Release,%buildroot%_bindir}/QGroundControl |
| 142 |
mkdir -pv %buildroot%_bindir |
152 |
install -Dm 644 {%_cmake__builddir,%buildroot%_desktopdir}/org.mavlink.qgroundcontrol.desktop |
| 143 |
install -Dm 755 build/Release/QGroundControl %buildroot%_bindir/QGroundControl |
153 |
install -Dm 644 resources/icons/qgroundcontrol.png %buildroot/%_iconsdir/hicolor/128x128/apps/QGroundControl.png |
| 144 |
|
|
|
| 145 |
mkdir -pv %buildroot%_datadir/applications |
| 146 |
install -Dm 644 build/org.mavlink.qgroundcontrol.desktop %buildroot%_datadir/applications/org.mavlink.qgroundcontrol.desktop |
| 147 |
|
| 148 |
install -Dm 644 resources/icons/qgroundcontrol.png %buildroot/%_datadir/icons/hicolor/128x128/apps/QGroundControl.png |
| 149 |
|
154 |
|
| 150 |
%find_lang --without-mo --with-qt qgc |
155 |
%find_lang --without-mo --with-qt qgc |
| 151 |
|
156 |
|
| 152 |
%files -f qgc.lang |
157 |
%files -f qgc.lang |
| 153 |
%_bindir/QGroundControl |
158 |
%_bindir/QGroundControl |
| 154 |
%_datadir/applications/org.mavlink.qgroundcontrol.desktop |
159 |
%_desktopdir/org.mavlink.qgroundcontrol.desktop |
| 155 |
%_datadir/icons/hicolor/128x128/apps/QGroundControl.png |
160 |
%_iconsdir/hicolor/*/apps/QGroundControl.png |
| 156 |
|
161 |
|
| 157 |
%changelog |
162 |
%changelog |
|
|
163 |
* Tue May 12 2026 Ilya Kurdyukov <ilyakurdyukov@altlinux.org> 5.0.8-alt6 |
| 164 |
- e2k build fix and spec cleanup |
| 165 |
|
| 158 |
* Thu Apr 23 2026 Ilya Muhamadeev <nicourced@altlinux.org> 5.0.8-alt5 |
166 |
* Thu Apr 23 2026 Ilya Muhamadeev <nicourced@altlinux.org> 5.0.8-alt5 |
| 159 |
- Replace Yandex Tiles with Esri, MapTiler, Stadia providers; |
167 |
- Replace Yandex Tiles with Esri, MapTiler, Stadia providers; |
| 160 |
- Add libcurl tile downloader. |
168 |
- Add libcurl tile downloader. |
| 161 |
- |
|
|