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