File neovim-qt.spec of Package neovim-qt

#
# spec file for package neovim-qt
#
# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#


Name:           neovim-qt
Version:        0.2.18
Release:        0
Summary:        Neovim client library and GUI, in Qt5
License:        ISC
Group:          Productivity/Editors/Vi
Url:            https://github.com/equalsraf/neovim-qt
Source:         https://github.com/equalsraf/neovim-qt/archive/v%{version}.tar.gz
BuildRequires:  neovim
BuildRequires:  msgpack-cxx-devel
BuildRequires:  libqt5-qtbase-devel
BuildRequires:  libqt5-qtsvg-devel
Requires:       neovim

%description
Simple cross-platform GUI and client library for neovim based on Qt5.

%prep
%setup -q

%build
%cmake -DUSE_SYSTEM_MSGPACK=ON -DCMAKE_BUILD_TYPE=Release -DENABLE_TESTS=OFF
%make_build

%install
%cmake_install

# somehow cmake_install misses this library:
pushd build
install -D -m664 lib/libneovim-qt-gui.so %{buildroot}/%{_libdir}/libneovim-qt-gui.so
popd

%post
%postun
%files
%defattr(-,root,root)
%doc CONTRIBUTING.md LICENSE README.md
%{_bindir}/nvim-qt
%{_datadir}/applications/nvim-qt.desktop
%{_datadir}/icons/hicolor/
%{_datadir}/nvim-qt/
%{_libdir}/libneovim-qt-gui.so
openSUSE Build Service is sponsored by