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 |
5 |
|
|
6 |
Name: dhcp |
Name: dhcp |
7 |
Epoch: 3 |
Epoch: 3 |
8 |
Version: %{major_version}%{patch_version} |
Version: %{major_version}%{patch_version} |
9 |
Release: %mkrel 5 |
Release: %mkrel 1 |
10 |
Summary: The ISC DHCP (Dynamic Host Configuration Protocol) server/relay agent/client |
Summary: The ISC DHCP (Dynamic Host Configuration Protocol) server/relay agent/client |
11 |
License: Distributable |
License: Distributable |
12 |
Group: System/Servers |
Group: System/Servers |
40 |
Patch18: dhcp-4.2.4-64_bit_lease_parse.patch |
Patch18: dhcp-4.2.4-64_bit_lease_parse.patch |
41 |
BuildRequires: groff-for-man |
BuildRequires: groff-for-man |
42 |
BuildRequires: openldap-devel |
BuildRequires: openldap-devel |
|
BuildRequires: bind-devel |
|
43 |
Requires(post): rpm-helper >= 0.24.8-1 |
Requires(post): rpm-helper >= 0.24.8-1 |
44 |
Requires(preun): rpm-helper >= 0.24.8-1 |
Requires(preun): rpm-helper >= 0.24.8-1 |
45 |
|
|
254 |
find -size 0 |grep ldap | xargs rm -rf |
find -size 0 |grep ldap | xargs rm -rf |
255 |
|
|
256 |
# remove unwanted file |
# remove unwanted file |
257 |
rm -f %{buildroot}%{_sysconfdir}/dhclient.conf |
rm -f %{buildroot}%{_sysconfdir}/dhclient.conf.example |
258 |
|
rm -f %{buildroot}%{_sysconfdir}/dhcpd.conf.example |
259 |
rm -f %{buildroot}%{_libdir}/*.a |
rm -f %{buildroot}%{_libdir}/*.a |
260 |
|
|
261 |
%pre server |
%pre server |
295 |
%doc doc/* |
%doc doc/* |
296 |
|
|
297 |
%files server |
%files server |
298 |
%doc server/dhcpd.conf tests/failover contrib/ldap/dhcp.schema |
%doc server/dhcpd.conf.example tests/failover contrib/ldap/dhcp.schema |
299 |
%{_unitdir}/dhcpd.service |
%{_unitdir}/dhcpd.service |
300 |
%{_unitdir}/dhcpd6.service |
%{_unitdir}/dhcpd6.service |
301 |
%{_tmpfilesdir}/dhcpd.conf |
%{_tmpfilesdir}/dhcpd.conf |
324 |
%{_mandir}/man8/dhcrelay.8* |
%{_mandir}/man8/dhcrelay.8* |
325 |
|
|
326 |
%files client |
%files client |
327 |
%doc client/dhclient.conf |
%doc client/dhclient.conf.example |
328 |
%attr (0755,root,root) /sbin/dhclient-script |
%attr (0755,root,root) /sbin/dhclient-script |
329 |
%{_tmpfilesdir}/dhclient.conf |
%{_tmpfilesdir}/dhclient.conf |
330 |
/sbin/dhclient |
/sbin/dhclient |