File hstr.spec of Package hstr

#
# Spec File
#

Name:           hstr
Version:        3.1
Release:        0
Summary:        BASH History Suggest Box
License:        Apache-2.0
Group:          System/Console
URL:            https://github.com/dvorka/hstr
Source0:        %{name}-%{version}.tar.gz
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(ncurses)

%if 0%{?suse_version} >= 1550
BuildRequires:  pkgconfig(readline)
%else
BuildRequires:  readline-devel
%endif


%description
Easily view, navigate, search and use your command history
with shell history suggest box for Bash and ZSH


%prep
%setup -q


%build
export CFLAGS="%{optflags}"
pushd ./build/tarball
./tarball-automake.sh
popd
./configure
make %{?_smp_mflags}


%install
make install prefix=%{buildroot}%{_prefix}


%files
%license LICENSE
%doc CONFIGURATION.md README.md doc/*
%{_bindir}/%{name}
%{_bindir}/hh
%attr(0755,root,root) %{_datadir}/bash-completion/completions/%{name}
%{_mandir}/man1/%{name}.1%{?ext_man}
openSUSE Build Service is sponsored by