Name: mapper Version: 0.9.5 Release: 1 Summary: OpenOrienteering Mapper URL: https://www.openorienteering.org/apps/mapper Source0: https://github.com/OpenOrienteering/mapper/archive/v%{version}/%{name}-%{version}.tar.gz Source1: mapper-rosa-licensing.cmake Source100: https://abf.io/import/libreoffice/raw/rosa2016.1/loffice-libcxx-wrapper.sh Patch0: 0001-Use-system-QtSingleApplication.patch License: GPLv3 Group: Geography BuildRequires: cmake BuildRequires: clang BuildRequires: pkgconfig(polyclipping) BuildRequires: pkgconfig(proj) BuildRequires: pkgconfig(gdal) BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(Qt5PrintSupport) BuildRequires: pkgconfig(Qt5Positioning) BuildRequires: pkgconfig(Qt5Sql) BuildRequires: pkgconfig(Qt5Help) BuildRequires: pkgconfig(Qt5Concurrent) BuildRequires: pkgconfig(Qt5Network) BuildRequires: pkgconfig(Qt5Gui) BuildRequires: pkgconfig(Qt5Test) BuildRequires: pkgconfig(Qt5Widgets) BuildRequires: pkgconfig(Qt5Sensors) BuildRequires: pkgconfig(Qt5SerialPort) BuildRequires: pkgconfig(Qt5Positioning) BuildRequires: %{_lib}qtsingleapplication-qt5-devel BuildRequires: qt5-linguist-tools BuildRequires: qt5-tools BuildRequires: cups-devel BuildRequires: iwyu >= 0.12 BuildRequires: doxygen BuildRequires: stdc++-gcc10-devel BuildRequires: gdal %description OpenOrienteering Mapper is an orienteering mapmaking program and provides a free and open source alternative to existing commercial software. OpenOrienteering Mapper runs on Android, Windows, macOS and Linux. %prep %setup -q install -Dpm644 %{SOURCE1} doc/licensing/rosa-licensing.cmake %patch -p1 install -m0755 %{SOURCE100} . sed 's/clang++/clang/' loffice-libcxx-wrapper.sh > loffice-libc-wrapper.sh chmod +x *.sh %build %cmake_qt5 \ -DMapper_BUILD_CLIPPER:BOOL=OFF \ -DMapper_BUILD_DOXYGEN:BOOL=OFF \ -DCMAKE_CXX_COMPILER="$RPM_BUILD_DIR/%{name}-%{version}/loffice-libcxx-wrapper.sh" \ -DCMAKE_C_COMPILER="$RPM_BUILD_DIR/%{name}-%{version}/loffice-libc-wrapper.sh" \ -DCMAKE_CXX_FLAGS="-nostdinc++ -I/usr/include/libstdc++-gcc10 -I/usr/include/libstdc++-gcc10/%{_host}" \ -DCMAKE_C_FLAGS="-nostdinc++ -I/usr/include/libstdc++-gcc10 -I/usr/include/libstdc++-gcc10/%{_host}" \ -DCMAKE_EXE_LINKER_FLAGS="-lstdc++-gcc10" \ -DCMAKE_MODULE_LINKER_FLAGS="-lstdc++-gcc10" \ -DCMAKE_SHARED_LINKER_FLAGS="-lstdc++-gcc10" \ -DCMAKE_INSTALL_PREFIX="%{_prefix}" \ -DCMAKE_INSTALL_LIBDIR="%{_lib}". %make %install %makeinstall -C build DESTDIR=%{buildroot} %files %doc README.md COPYING %{_bindir}/Mapper %{_datadir}/applications/Mapper.desktop %{_docdir}/openorienteering-mapper/* %{_iconsdir}/hicolor/*/apps/Mapper.png %{_iconsdir}/hicolor/*/mimetypes/*.png %{_mandir}/man1/Mapper.1.xz %{_datadir}/mime/packages/openorienteering-mapper.xml %{_datadir}/openorienteering-mapper/*