1 Summary: Protocol for Keeping Track of Dynamically Allocated IP
2 Summary(pl.UTF-8): Protokołu śledzenia dynamicznie przydzielanych adresów IP
8 Source0: http://downloads.sourceforge.net/whoson/%{name}-%{version}.tar.gz
9 # Source0-md5: 5c36fbaca0f8a618af2433fc92b3e5b2
12 URL: http://whoson.sourceforge.net/
13 BuildRequires: autoconf
14 BuildRequires: automake
15 BuildRequires: libtool
16 BuildRequires: rpmbuild(macros) >= 1.268
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 %define _libexecdir %{_sbindir}
22 Simple method for Internet server programs to know if a particular
23 (dynamically allocated) IP address is currently allocated to a known
24 (trusted) user and, optionally, the identity of the said user.
26 %description -l pl.UTF-8
27 Program oraz biblioteka będące implementacją protokołu WHOSON
28 pozwalającego innym programom na śledzenie dynamicznie przydzielanych
29 IP używanych przez znanych (zaufanych) użytkowników.
32 Summary: Whoson server binary and scripts
33 Summary(pl.UTF-8): Plik binarny i skrypty serwera whoson
34 Group: Networking/Daemons
35 Requires(post,preun): /sbin/chkconfig
36 Requires: %{name} = %{version}-%{release}
40 Whoson server binary and scripts.
42 %description server -l pl.UTF-8
43 Plik binarny i skrypty serwera whoson.
46 Summary: Header files and development docomentation for whoson
47 Summary(pl.UTF-8): Pliki nagłówkowe i dokumentacja dla dla programistów do whosona
48 Group: Development/Libraries
49 Requires: %{name} = %{version}-%{release}
52 This is whoson development package. It includes files and development
53 docomentation for whoson.
55 %description devel -l pl.UTF-8
56 To jest pakiet dla programistów. Zawiera pliki nagłówkowe i
57 dokumentację do whosona.
60 Summary: Static whoson library
61 Summary(pl.UTF-8): Biblioteka statyczna whosona
62 Group: Development/Libraries
63 Requires: %{name}-devel = %{version}-%{release}
66 Static whoson library.
68 %description static -l pl.UTF-8
69 Biblioteka statyczna whosona.
85 rm -rf $RPM_BUILD_ROOT
86 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,/var/lib/whosond}
89 DESTDIR=$RPM_BUILD_ROOT
91 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/whosond
92 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}
94 for i in wso_login wso_logout wso_query wso_version; do
95 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/$i.3
96 echo ".so whoson.3" > $RPM_BUILD_ROOT%{_mandir}/man3/$i.3
100 rm -rf $RPM_BUILD_ROOT
102 %post -p /sbin/ldconfig
103 %postun -p /sbin/ldconfig
106 /sbin/chkconfig --add whosond
107 %service whosond restart "whosond daemon"
110 if [ "$1" = "0" ]; then
111 %service whosond stop
112 /sbin/chkconfig --del whosond
116 %defattr(644,root,root,755)
117 %doc README whoson.txt
118 %attr(755,root,root) %{_sbindir}/whoson
119 %attr(755,root,root) %{_libdir}/libwhoson.so.*.*.*
120 %attr(755,root,root) %ghost %{_libdir}/libwhoson.so.0
121 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/whoson.conf
122 %{_mandir}/man5/whoson.conf.5*
123 %{_mandir}/man8/whoson.8*
126 %defattr(644,root,root,755)
127 %attr(755,root,root) %{_sbindir}/whosond
128 %attr(754,root,root) /etc/rc.d/init.d/whosond
129 %dir /var/lib/whosond
130 %{_mandir}/man8/whosond.8*
133 %defattr(644,root,root,755)
134 %attr(755,root,root) %{_libdir}/libwhoson.so
135 %{_libdir}/libwhoson.la
136 %{_includedir}/whoson.h
137 %{_mandir}/man3/whoson.3*
138 %{_mandir}/man3/wso_*.3*
141 %defattr(644,root,root,755)
142 %{_libdir}/libwhoson.a