File hexer.spec of Package hexer
#
# spec file for package hexer
#
# 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: hexer
Version: 1.0.6
Release: 0
Summary: A multi-buffer editor for binary files
License: BSD-3-Clause
URL: https://gitlab.com/hexer/hexer
Source0: %{name}-%{version}.tar.xz
Patch0: 0001-fix-makefile.patch
BuildRequires: gcc
BuildRequires: pkgconfig
BuildRequires: pkgconfig(ncurses)
%description
Hexer is a multi-buffer editor for binary files for Unix-like systems
that displays its buffer(s) as a hex dump. The user interface is kept
similar to vi/ex.
%package myc
Summary: A simple command-line calculator
Enhances: hexer
%description myc
Myc is a simple calculator capable of all operations available in C. Commands
are entered in infix notation. It is possible to use parentheses. If a
myc-command is specified on the command-line, the result is echoed and myc
exits immediately. If invoked with no arguments, myc starts reading commands
from standard-in.
%prep
%autosetup
%build
%if 0%{?suse_version} >= 1600
export CFLAGS="%{optflags} -std=gnu17"
%endif
%make_build hexer myc
%install
%make_install
%files
%license COPYRIGHT
%doc CHANGES README
%{_bindir}/hexer
%{_mandir}/man1/hexer.1%{?ext_man}
%files myc
%license COPYRIGHT
%doc CHANGES README
%{_bindir}/myc
%{_mandir}/man1/myc.1%{?ext_man}
%changelog