ucspi-unix/ucspi-unix.spec

62 lines
1.9 KiB
RPMSpec
Raw Normal View History

Name: ucspi-unix
Version: 0.36
Release: 2mamba
Summary: UNIX-domain socket client-server command-line tools
Group: System/Tools
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://untroubled.org/ucspi-unix/
Source: http://untroubled.org/ucspi-unix/ucspi-unix-%{version}.tar.gz
Patch0: ucspi-unix-0.36-fixbuild.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
## AUTOBUILDREQ-END
BuildRequires: libbg-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%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 -q
%patch0 -p1
%build
echo %{_bindir} >conf-bin
echo %{_mandir} >conf-man
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
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
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/unixcat
%{_bindir}/unixclient
%{_bindir}/unixserver
%{_mandir}/man1/unixclient.1.gz
%{_mandir}/man1/unixserver.1.gz
%doc COPYING NEWS README TODO
%changelog
* Sun Aug 11 2013 Automatic Build System <autodist@mambasoft.it> 0.36-2mamba
- automatic rebuild by autodist
* Tue Sep 22 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 0.36-1mamba
- package created by autospec