File sam.spec of Package sam

#
# spec file for package sam
#
# 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 https://bugs.opensuse.org/
#


Name:           sam
Version:        1594739959.5d8acb3
Release:        0
Summary:        A line-oriented text editor
License:        ISC
Group:          Productivity/Text/Editors
URL:            https://github.com/deadpixi/sam
Source0:        sam-%{version}.tar.xz
# PATCH-FIX-UPSTREAM manpage-build.patch mcepl@suse.com
# Don't create absolute pathnames in %%{_mandir}
Patch0:         manpage-build.patch
BuildRequires:  gcc
BuildRequires:  pkgconfig(xft)
BuildRequires:  pkgconfig(xi)
BuildRequires:  pkgconfig(xt)
Recommends:     openssh

%description
A minimalist text editor with a graphical user interface,
a very powerful command language and remote editing capabilities.

%prep
%autosetup -p1
cp config.mk.def config.mk
make clean

%build
make MODE=system

%install
make MODE=system DESTDIR=%{buildroot}%{_prefix} install

%files
%license LICENSE
%doc README.rst
%{_bindir}/%{name}
%{_bindir}/s%{name}
%{_bindir}/%{name}term
%{_bindir}/B
%{_mandir}/man1/%{name}.1%{?ext_man}
%{_mandir}/man1/%{name}.save.1%{?ext_man}
%{_mandir}/man1/%{name}term.1%{?ext_man}
%{_mandir}/man1/r%{name}.1%{?ext_man}
%{_mandir}/man1/B.1%{?ext_man}
%{_mandir}/man5/%{name}rc.5%{?ext_man}

%changelog
openSUSE Build Service is sponsored by