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 %{nil} |
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 3 |
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 |
13 |
URL: http://www.isc.org/software/dhcp |
URL: http://www.isc.org/software/dhcp |
14 |
Source0: ftp://ftp.isc.org/isc/%{name}/%{major_version}-%{patch_version}/%{name}-%{major_version}-%{patch_version}.tar.gz |
Source0: ftp://ftp.isc.org/isc/%{name}/%{major_version}/%{name}-%{major_version}.tar.gz |
15 |
Source1: ftp://ftp.isc.org/isc/%{name}/%{major_version}-%{patch_version}/%{name}-%{major_version}-%{patch_version}.tar.gz.sha512.asc |
Source1: ftp://ftp.isc.org/isc/%{name}/%{major_version}/%{name}-%{major_version}.tar.gz.sha512.asc |
16 |
Source2: dhcpd.conf |
Source2: dhcpd.conf |
17 |
Source4: dhcp-dynamic-dns-examples.tar.bz2 |
Source4: dhcp-dynamic-dns-examples.tar.bz2 |
18 |
Source7: dhcpreport.pl |
Source7: dhcpreport.pl |
31 |
Patch101: dhcp-4.2.2-fix-format-errors.patch |
Patch101: dhcp-4.2.2-fix-format-errors.patch |
32 |
# prevents needless deassociation, working around mdv bug #43441 |
# prevents needless deassociation, working around mdv bug #43441 |
33 |
Patch102: dhcp-4.1.1-prevent_wireless_deassociation.patch |
Patch102: dhcp-4.1.1-prevent_wireless_deassociation.patch |
34 |
Patch103: dhcp-4.2.4-P2-man.patch |
Patch103: dhcp-4.2.5-man.patch |
35 |
# fedora patches |
# fedora patches |
36 |
Patch7: dhcp-4.2.0-default-requested-options.patch |
Patch7: dhcp-4.2.0-default-requested-options.patch |
37 |
Patch8: dhcp-4.2.2-xen-checksum.patch |
Patch8: dhcp-4.2.2-xen-checksum.patch |
143 |
Internet Software Consortium (ISC) dhcpctl API. |
Internet Software Consortium (ISC) dhcpctl API. |
144 |
|
|
145 |
%prep |
%prep |
146 |
%setup -q -n %{name}-%{major_version}-%{patch_version} |
%setup -q |
147 |
%patch100 -p1 -b .ifup |
%patch100 -p1 -b .ifup |
148 |
%patch101 -p1 -b .format_not_a_string_literal_and_no_format_arguments |
%patch101 -p1 -b .format_not_a_string_literal_and_no_format_arguments |
149 |
%patch102 -p1 -b .prevent_wireless_deassociation |
%patch102 -p1 -b .prevent_wireless_deassociation |
253 |
find -size 0 |grep ldap | xargs rm -rf |
find -size 0 |grep ldap | xargs rm -rf |
254 |
|
|
255 |
# remove unwanted file |
# remove unwanted file |
256 |
rm -f %{buildroot}%{_sysconfdir}/dhclient.conf |
rm -f %{buildroot}%{_sysconfdir}/dhclient.conf.example |
257 |
|
rm -f %{buildroot}%{_sysconfdir}/dhcpd.conf.example |
258 |
rm -f %{buildroot}%{_libdir}/*.a |
rm -f %{buildroot}%{_libdir}/*.a |
259 |
|
|
260 |
%pre server |
%pre server |
294 |
%doc doc/* |
%doc doc/* |
295 |
|
|
296 |
%files server |
%files server |
297 |
%doc server/dhcpd.conf tests/failover contrib/ldap/dhcp.schema |
%doc server/dhcpd.conf.example tests/failover contrib/ldap/dhcp.schema |
298 |
%{_unitdir}/dhcpd.service |
%{_unitdir}/dhcpd.service |
299 |
%{_unitdir}/dhcpd6.service |
%{_unitdir}/dhcpd6.service |
300 |
%{_tmpfilesdir}/dhcpd.conf |
%{_tmpfilesdir}/dhcpd.conf |
323 |
%{_mandir}/man8/dhcrelay.8* |
%{_mandir}/man8/dhcrelay.8* |
324 |
|
|
325 |
%files client |
%files client |
326 |
%doc client/dhclient.conf |
%doc client/dhclient.conf.example |
327 |
%attr (0755,root,root) /sbin/dhclient-script |
%attr (0755,root,root) /sbin/dhclient-script |
328 |
%{_tmpfilesdir}/dhclient.conf |
%{_tmpfilesdir}/dhclient.conf |
329 |
/sbin/dhclient |
/sbin/dhclient |