Name: ucspi-unix
Summary: UNIX-domain socket client-server command-line tools
Version: 0.36
Release: 1
License: GPL
Group: Utilities/System
Source: http://em.ca/~bruceg/ucspi-unix/%{version}/ucspi-unix-%{version}.tar.gz
BuildRoot: %{_tmppath}/ucspi-unix-root
URL: http://em.ca/~bruceg/ucspi-unix/
BuildRequires: bglibs bglibs-devel

%description
unixclient and unixserver are command-line tools for building UNIX
domain client-server applications.  unixclient connects to a UNIX domain
socket and runs a program of your choice.  unixserver creates a UNIX
domain socket, waits for incoming connections and, for each connection,
runs a program of your choice.

unixclient and unixserver conform to UCSPI, the UNIX Client-Server
Program Interface, using UNIX domain sockets.  UCSPI tools are available
for several different networks.

%prep
%setup

%build
echo %{_bindir} >conf-bin
echo %{_mandir} >conf-man
make programs

%install
rm -fr %{buildroot}
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}
echo %{buildroot}%{_bindir} >conf-bin
echo %{buildroot}%{_mandir} >conf-man
make installer instcheck
./installer
./instcheck

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc COPYING NEWS PROTOCOL README TODO VERSION
%{_bindir}/*
%{_mandir}/*/*