Package whoson: Specfile

%def_disable static

Name: whoson
Version: 2.05
Release: alt2.1

Packager: Victor Forsyuk <>

Summary: Protocol for Keeping Track of Dynamically Allocated IP
License: Public Domain
Group: Networking/Other

Source1: whosond.init
Source2: whoson.conf

Requires: lib%name = %version-%release

# Automatically added by buildreq on Sun Oct 16 2011
BuildRequires: chrpath groff-base

Simple method for Internet server programs to know if a particular (dynamically
allocated) IP address is currently allocated to a known (trusted) user and,
optionally, the identity of the said user.

%package server
Summary: Whoson server binary and scripts
Group: Networking/Other
Requires: %name = %version-%release

%description server
Whoson server binary and scripts

%package -n lib%name
Summary: Whoson library
Group: Development/C

%description -n lib%name
This is whoson library package.

%package -n lib%name-devel
Summary: Header files and development documentation for whoson
Group: Development/C
Requires: lib%name = %version-%release

%description -n lib%name-devel
This is whoson development package. It includes files and development
documentation for whoson.

%package -n lib%name-devel-static
Summary: Static libraries for whoson
Group: Development/C
Requires: lib%name-devel = %version-%release

%description -n lib%name-devel-static
You should install the lib%name-devel-static package if you would like to
develop statically linked whoson applications.


%configure %{subst_enable static}
# Parallel make broken in whoson 2.03 :(

# Build with disabled static will insert rpath in whoson binary. Instead of
# patching build system we simply delete rpath from built executable.
chrpath -d whoson
chrpath -d .libs/whosond

install -d %buildroot{%_initdir,/var/lib/whosond}

%make_install DESTDIR=%buildroot install
install -m0755 %SOURCE1 %buildroot%_initdir/whosond
install -m0644 %SOURCE2 %buildroot%_sysconfdir/

for i in wso_login wso_logout wso_query wso_version; do
	rm -f %buildroot%_man3dir/$i.3
	echo ".so whoson.3" > %buildroot%_man3dir/$i.3

%post server
%post_service whosond

%preun server
%preun_service whosond

%config(noreplace) %verify(not size mtime md5) %_sysconfdir/whoson.conf

%files server
%dir /var/lib/whosond

%files -n lib%name

%files -n lib%name-devel

%if_enabled static
%files -n lib%name-devel-static

* Sun Oct 16 2011 Alexey Tourbin <> 2.05-alt2.1
- fixed circular dependencies

* Sun Oct 16 2011 Alexey Tourbin <> 2.05-alt2
- rebuilt for debuginfo and soname set-versioning

* Sat Jul 11 2009 Victor Forsyuk <> 2.05-alt1
- 2.05

* Thu Jan 08 2009 Victor Forsyuk <> 2.04-alt1
- 2.04
- Remove obsolete ldconfig calls.

* Thu May 13 2004 Victor Forsyuk <> 2.03-alt2
- libwhoson-devel depends on libwhoson package, not whoson.

* Wed Dec 31 2003 Victor Forsyuk <> 2.03-alt1
- New version.
- Removed *.la files.
- Do not build devel-static subpackage by default.

* Fri May 23 2003 Victor Forsyuk <> 2.02a-alt1
- Rewritten start/stop script to new rc scheme.

* Tue Jan 14 2003 Victor Forsyuk <> 2.02a-alt0
- Initial build for Sisyphus.