File sourcetrail.spec of Package sourcetrail

# spec file for package sourcetrail
# Copyright (c) 2020 SUSE LLC
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

%define _smp_mflags "-j1"
%define _lto_cflags %{nil}
Name:           sourcetrail
Version:        2020.2
Release:        0
Summary:        Free and open-source cross-platform source explorer
License:        GPL-3.0-only
Patch0:         sourcetrail-dont-install-libs.patch
#BuildRequires:  gcc-c++
BuildRequires:  clang
BuildRequires:  cmake
BuildRequires:  libQt5Network-devel
BuildRequires:  libQt5PrintSupport-devel
BuildRequires:  libQt5Svg-devel
BuildRequires:  libQt5Widgets-devel
BuildRequires:  libXau-devel
BuildRequires:  libXi-devel
BuildRequires:  libboost_date_time-devel
BuildRequires:  libboost_filesystem-devel
BuildRequires:  libboost_program_options-devel
BuildRequires:  libboost_system-devel >= 1.67
BuildRequires:  libdrm-devel
BuildRequires:  libffi-devel
BuildRequires:  libxcb-devel
BuildRequires:  pthread-stubs-devel

Sourcetrail is a free and open-source cross-platform source explorer that helps you get productive on unfamiliar source code.

%autosetup -p1 -n Sourcetrail-%{version}

# get rid of bundled libs
rm -f lib/ lib/ lib/ lib/ lib/ \
      lib/ lib/libxcb* lib/ lib/ lib/ \
      lib/ lib/ lib/ lib/ lib/ \
      lib/ lib/ lib/ lib/ lib/ \
      lib/ lib/


mkdir -p %{buildroot}%{_bindir}
ln -s %{_prefix}/Sourcetrail/ %{buildroot}%{_bindir}/sourcetrail

%license LICENSE.txt

openSUSE Build Service is sponsored by