packaging
[profile/ivi/dhcp.git] / packaging / dhcp.spec
index 8ba5d6f..637bf07 100644 (file)
@@ -5,22 +5,22 @@
 %global dhcpconfdir %{_sysconfdir}/dhcp
 
 # Patch version 
-#%global patchver P2
+%global patchver P2
 # Pre-Release version
 #%%global prever rc1
 
 #%%global VERSION %{version}%{prever}
 #%%global VERSION %{version}
-#%global VERSION %{version}-%{patchver}
+%global VERSION %{version}-%{patchver}
 
 Summary:  Dynamic host configuration protocol software
 Name:     dhcp
 Version:  4.2.3
-Release:  1
+Release:  1.%{patchver}%{?dist}
 License:  ISC
 Group:    System Environment/Daemons
 URL:      http://isc.org/products/DHCP/
-Source0:  dhcp-%{version}.tar.gz
+Source0:  ftp://ftp.isc.org/isc/dhcp/dhcp-%{VERSION}.tar.gz
 Source1:  dhclient-script
 Source2:  README.dhclient.d
 Source3:  11-dhclient
@@ -152,7 +152,7 @@ Header files and API documentation for using the ISC DHCP libraries.  The
 libdhcpctl and libomapi static libraries are also included in this package.
 
 %prep
-%setup -q 
+%setup -q -n dhcp-%{VERSION}
 
 # Remove bundled BIND source
 #rm bind/bind.tar.gz