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