Name: sourcetrail Version: 2020.2.43 Release: 1%{?dist} Summary: a free and open-source interactive source explorer License: GPLv3 URL: https://www.sourcetrail.com/ Source0: https://github.com/CoatiSoftware/Sourcetrail/archive/%{version}.tar.gz Patch0: install.patch Patch3: dylib.patch BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: ninja-build BuildRequires: boost-devel BuildRequires: qt5-qtbase-devel BuildRequires: qt5-qtsvg-devel BuildRequires: systemd-devel BuildRequires: libXxf86vm-devel BuildRequires: openssl-devel BuildRequires: libdrm-devel BuildRequires: mesa-libGL-devel BuildRequires: libXdamage-devel BuildRequires: libXfixes-devel BuildRequires: libXrender-devel BuildRequires: libXi-devel BuildRequires: ImageMagick BuildRequires: clang-devel BuildRequires: llvm-devel BuildRequires: desktop-file-utils BuildRequires: ImageMagick Requires: boost-system Requires: boost-program-options Requires: boost-filesystem Requires: boost-date-time Requires: qt5-qtbase Requires: qt5-qtsvg %description Sourcetrail is a free and open-source cross-platform source explorer that helps you get productive on unfamiliar source code. %prep %autosetup -n Sourcetrail-%{version} -p1 %build mkdir -p "%{_vpath_builddir}" && cd "%{_vpath_builddir}" %cmake .. -GNinja -DBoost_USE_STATIC_LIBS=OFF -DBUILD_SHARED_LIBS=OFF\ -DBUILD_CXX_LANGUAGE_PACKAGE=ON -DCMAKE_SKIP_RPATH=ON %ninja_build -j1 %check %install mkdir -p %{buildroot}/%{_bindir} cp "%{_vpath_builddir}"/app/Sourcetrail %{buildroot}/%{_bindir}/sourcetrail cp "%{_vpath_builddir}"/app/sourcetrail_indexer %{buildroot}/%{_bindir}/ desktop-file-install --dir=%{buildroot}%{_datadir}/applications setup/Linux/data/sourcetrail.desktop mkdir -p %{buildroot}/%{_datadir}/mime/packages cp setup/Linux/data/sourcetrail-mime.xml %{buildroot}/%{_datadir}/mime/packages/ for sz in 48 64 128 256 512 do mkdir -p %{buildroot}/%{_datadir}/icons/hicolor/${sz}x${sz}/apps/ convert bin/app/data/gui/icon/logo_1024_1024.png -resize ${sz}x${sz} %{buildroot}/%{_datadir}/icons/hicolor/${sz}x${sz}/apps/sourcetrail.png done %files %{_bindir}/sourcetrail %{_bindir}/sourcetrail_indexer %{_datadir}/applications/sourcetrail.desktop %{_datadir}/icons/hicolor/*/apps/sourcetrail.png %{_datadir}/mime/packages/sourcetrail-mime.xml %changelog * Fri Jun 19 2020 sguelton@redhat.com 2020.1.117-1 - Initial version