47 lines
1.2 KiB
RPMSpec
47 lines
1.2 KiB
RPMSpec
|
|
#
|
||
|
|
# spec file for package hstr
|
||
|
|
#
|
||
|
|
|
||
|
|
Name: hstr
|
||
|
|
%define pkgname hh
|
||
|
|
Version: 1.3
|
||
|
|
Release: 0%{?dist}
|
||
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||
|
|
Summary: Demonstrates a simple TCP/IP echo server, using the Berkeley Sockets API.
|
||
|
|
Url: http://www.paulgriffiths.net/program/c/echoserv.php
|
||
|
|
Source: %{pkgname}-%{version}-src.tgz
|
||
|
|
License: GPL-2.0
|
||
|
|
Group: System/Shells
|
||
|
|
BuildRequires: readline-devel
|
||
|
|
|
||
|
|
%description
|
||
|
|
A command line utility that brings improved BASH command completion from the history.
|
||
|
|
It aims to make completion easier and more efficient than Ctrl-r.
|
||
|
|
|
||
|
|
%prep
|
||
|
|
%setup -q -n %{name}
|
||
|
|
|
||
|
|
%build
|
||
|
|
%{configure}
|
||
|
|
%{__make}
|
||
|
|
|
||
|
|
%install
|
||
|
|
%{__install} -d %{buildroot}%{_sysconfdir}/profile.d
|
||
|
|
# just generate the default configuration for bash environment:
|
||
|
|
./src/hh --show-configuration > %{buildroot}%{_sysconfdir}/profile.d/%{name}.sh
|
||
|
|
%{make_install}
|
||
|
|
|
||
|
|
%post
|
||
|
|
echo "To enable all options, just logout and login again (PROFILEREAD)"
|
||
|
|
|
||
|
|
|
||
|
|
%files
|
||
|
|
%defattr(-,root,root,-)
|
||
|
|
%{_mandir}/man1/hh.1.gz
|
||
|
|
%{_bindir}/%{pkgname}
|
||
|
|
%config %{_sysconfdir}/profile.d/%{name}.sh
|
||
|
|
|
||
|
|
%changelog
|
||
|
|
* Mon Apr 7 2014 Daniel Steiner <elpito@bluewin.ch>
|
||
|
|
- Initial setup.
|