]> git.pld-linux.org Git - packages/whoson.git/blob - whoson.spec
- x32 rebuild
[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:        3
6 License:        Public Domain
7 Group:          Networking
8 Source0:        http://downloads.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:  libtool
16 BuildRequires:  rpmbuild(macros) >= 1.268
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %define         _libexecdir     %{_sbindir}
20
21 %description
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.
25
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.
30
31 %package server
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}
37 Requires:       rc-scripts
38
39 %description server
40 Whoson server binary and scripts.
41
42 %description server -l pl.UTF-8
43 Plik binarny i skrypty serwera whoson.
44
45 %package devel
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}
50
51 %description devel
52 This is whoson development package. It includes files and development
53 docomentation for whoson.
54
55 %description devel -l pl.UTF-8
56 To jest pakiet dla programistów. Zawiera pliki nagłówkowe i
57 dokumentację do whosona.
58
59 %package static
60 Summary:        Static whoson library
61 Summary(pl.UTF-8):      Biblioteka statyczna whosona
62 Group:          Development/Libraries
63 Requires:       %{name}-devel = %{version}-%{release}
64
65 %description static
66 Static whoson library.
67
68 %description static -l pl.UTF-8
69 Biblioteka statyczna whosona.
70
71 %prep
72 %setup -q
73
74 %build
75 %{__libtoolize}
76 %{__aclocal}
77 %{__autoconf}
78 %{__autoheader}
79 %{__automake}
80 %configure
81
82 %{__make} -j1
83
84 %install
85 rm -rf $RPM_BUILD_ROOT
86 install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,/var/lib/whosond}
87
88 %{__make} install \
89         DESTDIR=$RPM_BUILD_ROOT
90
91 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/whosond
92 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}
93
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
97 done
98
99 %clean
100 rm -rf $RPM_BUILD_ROOT
101
102 %post   -p /sbin/ldconfig
103 %postun -p /sbin/ldconfig
104
105 %post server
106 /sbin/chkconfig --add whosond
107 %service whosond restart "whosond daemon"
108
109 %preun server
110 if [ "$1" = "0" ]; then
111         %service whosond stop
112         /sbin/chkconfig --del whosond
113 fi
114
115 %files
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*
124
125 %files server
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*
131
132 %files devel
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*
139
140 %files static
141 %defattr(644,root,root,755)
142 %{_libdir}/libwhoson.a
This page took 0.060015 seconds and 4 git commands to generate.