1 |
%define _catdir /var/cache/man |
%define _catdir /var/cache/man |
2 |
|
|
3 |
%define major_version 4.2.4 |
%define major_version 4.2.5 |
4 |
%define patch_version P2 |
%define patch_version P1 |
|
%define subrel 1 |
|
5 |
|
|
6 |
Name: dhcp |
Name: dhcp |
7 |
Epoch: 3 |
Epoch: 3 |
38 |
Patch18: dhcp-4.2.4-64_bit_lease_parse.patch |
Patch18: dhcp-4.2.4-64_bit_lease_parse.patch |
39 |
BuildRequires: groff-for-man |
BuildRequires: groff-for-man |
40 |
BuildRequires: openldap-devel |
BuildRequires: openldap-devel |
|
BuildRequires: bind-devel |
|
41 |
Requires(post): rpm-helper >= 0.24.8-1 |
Requires(post): rpm-helper >= 0.24.8-1 |
42 |
Requires(preun): rpm-helper >= 0.24.8-1 |
Requires(preun): rpm-helper >= 0.24.8-1 |
43 |
|
|
248 |
find -size 0 |grep ldap | xargs rm -rf |
find -size 0 |grep ldap | xargs rm -rf |
249 |
|
|
250 |
# remove unwanted file |
# remove unwanted file |
251 |
rm -f %{buildroot}%{_sysconfdir}/dhclient.conf |
rm -f %{buildroot}%{_sysconfdir}/dhclient.conf.example |
252 |
|
rm -f %{buildroot}%{_sysconfdir}/dhcpd.conf.example |
253 |
|
|
254 |
%pre server |
%pre server |
255 |
%_pre_useradd dhcpd /dev/null /bin/false |
%_pre_useradd dhcpd /dev/null /bin/false |
286 |
%doc doc/* |
%doc doc/* |
287 |
|
|
288 |
%files server |
%files server |
289 |
%doc server/dhcpd.conf tests/failover contrib/ldap/dhcp.schema |
%doc server/dhcpd.conf.example tests/failover contrib/ldap/dhcp.schema |
290 |
%{_initrddir}/dhcpd |
%{_initrddir}/dhcpd |
291 |
%{_initrddir}/dhcpd6 |
%{_initrddir}/dhcpd6 |
292 |
/lib/systemd/system/dhcpd.service |
/lib/systemd/system/dhcpd.service |
316 |
%{_mandir}/man8/dhcrelay.8* |
%{_mandir}/man8/dhcrelay.8* |
317 |
|
|
318 |
%files client |
%files client |
319 |
%doc client/dhclient.conf |
%doc client/dhclient.conf.example |
320 |
%config(noreplace) %ghost %{_var}/lib/dhcp/dhclient.leases |
%config(noreplace) %ghost %{_var}/lib/dhcp/dhclient.leases |
321 |
%attr (0755,root,root) /sbin/dhclient-script |
%attr (0755,root,root) /sbin/dhclient-script |
322 |
/sbin/dhclient |
/sbin/dhclient |
329 |
%{_includedir}/* |
%{_includedir}/* |
330 |
%{_libdir}/*.a |
%{_libdir}/*.a |
331 |
%{_mandir}/man3/* |
%{_mandir}/man3/* |
332 |
|
|
333 |
|
|