]> git.pld-linux.org Git - packages/whoson.git/blob - whoson.spec
67222819685e8b20c12d7cae3380960b1e652286
[packages/whoson.git] / whoson.spec
1 Summary:        Protocol for Keeping Track of Dynamically Allocated IP
2 Summary(pl.UTF-8):      Protokołu śledzenia dynamicznie przydzielanych adresów IP
3 Name:           whoson
4 Version:        2.05
5 Release:        1
6 License:        Public Domain
7 Group:          Networking
8 Source0:        http://dl.sourceforge.net/whoson/%{name}-%{version}.tar.gz
9 # Source0-md5:  5c36fbaca0f8a618af2433fc92b3e5b2
10 Source1:        %{name}.init
11 Source2:        %{name}.conf
12 URL:            http://whoson.sourceforge.net/
13 BuildRequires:  autoconf
14 BuildRequires:  automake
15 BuildRequires:  rpmbuild(macros) >= 1.268
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %define         _libexecdir     %{_sbindir}
19
20 %description
21 Simple method for Internet server programs to know if a particular
22 (dynamically allocated) IP address is currently allocated to a known
23 (trusted) user and, optionally, the identity of the said user.
24
25 %description -l pl.UTF-8
26 Program oraz biblioteka będące implementacją protokołu WHOSON
27 pozwalającego innym programom na śledzenie dynamicznie przydzielanych
28 IP używanych przez znanych (zaufanych) użytkowników.
29
30 %package server
31 Summary:        Whoson server binary and scripts
32 Summary(pl.UTF-8):      Plik binarny i skrypty serwera whoson
33 Group:          Networking/Daemons
34 Requires(post,preun):   /sbin/chkconfig
35 Requires:       %{name} = %{version}-%{release}
36 Requires:       rc-scripts
37
38 %description server
39 Whoson server binary and scripts.
40
41 %description server -l pl.UTF-8
42 Plik binarny i skrypty serwera whoson.
43
44 %package devel
45 Summary:        Header files and development docomentation for whoson
46 Summary(pl.UTF-8):      Pliki nagłówkowe i dokumentacja dla dla programistów do whosona
47 Group:          Development/Libraries
48 Requires:       %{name} = %{version}-%{release}
49
50 %description devel
51 This is whoson development package. It includes files and development
52 docomentation for whoson.
53
54 %description devel -l pl.UTF-8
55 To jest pakiet dla programistów. Zawiera pliki nagłówkowe i
56 dokumentację do whosona.
57
58 %package static
59 Summary:        Static whoson library
60 Summary(pl.UTF-8):      Biblioteka statyczna whosona
61 Group:          Development/Libraries
62 Requires:       %{name}-devel = %{version}-%{release}
63
64 %description static
65 Static whoson library.
66
67 %description static -l pl.UTF-8
68 Biblioteka statyczna whosona.
69
70 %prep
71 %setup -q
72
73 %build
74 cp -f /usr/share/automake/config.* .
75 %{__autoconf}
76 %configure
77
78 %{__make} -j1
79
80 %install
81 rm -rf $RPM_BUILD_ROOT
82 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,/var/lib/whosond}
83
84 %{__make} install \
85         DESTDIR=$RPM_BUILD_ROOT
86
87 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/whosond
88 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}
89
90 for i in wso_login wso_logout wso_query wso_version; do
91         rm -f $RPM_BUILD_ROOT%{_mandir}/man3/$i.3
92         echo ".so whoson.3" > $RPM_BUILD_ROOT%{_mandir}/man3/$i.3
93 done
94
95 %clean
96 rm -rf $RPM_BUILD_ROOT
97
98 %post   -p /sbin/ldconfig
99 %postun -p /sbin/ldconfig
100
101 %post server
102 /sbin/chkconfig --add whosond
103 %service whosond restart "whosond daemon"
104
105 %preun server
106 if [ "$1" = "0" ]; then
107         %service whosond stop
108         /sbin/chkconfig --del whosond
109 fi
110
111 %files
112 %defattr(644,root,root,755)
113 %doc README whoson.txt
114 %attr(755,root,root) %{_sbindir}/whoson
115 %attr(755,root,root) %{_libdir}/lib*.so.*.*
116 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/whoson.conf
117 %{_mandir}/man[58]/*
118
119 %files server
120 %defattr(644,root,root,755)
121 %attr(755,root,root) %{_sbindir}/whosond
122 %attr(754,root,root) /etc/rc.d/init.d/whosond
123 %dir /var/lib/whosond
124
125 %files devel
126 %defattr(644,root,root,755)
127 %attr(755,root,root) %{_libdir}/lib*.so
128 %{_libdir}/lib*.la
129 %{_includedir}/*
130 %{_mandir}/man3/*
131
132 %files static
133 %defattr(644,root,root,755)
134 %{_libdir}/lib*.a
This page took 0.072224 seconds and 3 git commands to generate.