SPECS: dhcpv6.spec - added -Makefile patch - use __make install, f...

darekr darekr at pld-linux.org
Tue Sep 20 11:03:41 CEST 2005


Author: darekr                       Date: Tue Sep 20 09:03:40 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added -Makefile patch
- use __make install, fix %files
- rel. 0.5, NFY

---- Files affected:
SPECS:
   dhcpv6.spec (1.7 -> 1.8) 

---- Diffs:

================================================================
Index: SPECS/dhcpv6.spec
diff -u SPECS/dhcpv6.spec:1.7 SPECS/dhcpv6.spec:1.8
--- SPECS/dhcpv6.spec:1.7	Sun Sep 18 23:03:22 2005
+++ SPECS/dhcpv6.spec	Tue Sep 20 11:03:35 2005
@@ -3,22 +3,20 @@
 Summary(pl):	DHCPv6 - serwer i klient DHCP dla IPv6
 Name:		dhcpv6
 Version:	0.10
-Release:	0.2
+Release:	0.5
 License:	GPL
 Group:		Networking/Daemons
 Source0:	http://dl.sourceforge.net/dhcpv6/dhcp-%{version}.tgz
 # Source0-md5:	72b802d6c89e15e5cf6b0aecf46613f2
 Patch0:		%{name}-initscripts.patch
-#Patch1:		%{name}-0.10-change_resolv_conf.patch
 Patch1:		%{name}-DESTDIR.patch
+Patch2:		%{name}-Makefile.patch
 URL:		http://dhcpv6.sourceforge.net/
 BuildRequires:	bison
 BuildRequires:	flex
 Requires(post,preun):	/sbin/chkconfig
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define		_sbindir	/sbin
-
 %description
 Implements the Dynamic Host Configuration Protocol (DHCP) for Internet
 Protocol version 6 (IPv6) networks in accordance with RFC 3315 :
@@ -59,6 +57,7 @@
 %setup -q -n dhcp-%{version}
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
 %configure \
@@ -69,17 +68,11 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_sbindir},/etc/sysconfig,%{_localstatedir}/lib/dhcpv6,/etc/rc.d/init.d}
+install -d $RPM_BUILD_ROOT%{_localstatedir}/lib/dhcpv6
 
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
 
-install dhcp6s.sysconfig	$RPM_BUILD_ROOT/etc/sysconfig/dhcp6s
-install dhcp6c.sysconfig	$RPM_BUILD_ROOT/etc/sysconfig/dhcp6c
-install server6_addr.conf dhcp6s.conf dhcp6c.conf		$RPM_BUILD_ROOT%{_sysconfdir}
-install dhcp6s.sh	$RPM_BUILD_ROOT/etc/rc.d/init.d/dhcp6s
-install dhcp6c.sh	$RPM_BUILD_ROOT/etc/rc.d/init.d/dhcp6c
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -100,10 +93,11 @@
 %files
 %defattr(644,root,root,755)
 %doc ReadMe docs/* dhcp6s.conf
-%attr(754,root,root) %{_sbindir}/dhcp6s
+%attr(755,root,root) %{_sbindir}/dhcp6s
 %attr(754,root,root) /etc/rc.d/init.d/dhcp6s
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/dhcp6s
-%attr(644,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.conf
+%attr(644,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dhcp6s.conf
+%attr(644,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/server6_addr.conf
 %{_mandir}/man8/dhcp6s.8*
 %{_mandir}/man5/dhcp6s.conf.5*
 %attr(754,root,root) %dir %{_localstatedir}/lib/dhcpv6
@@ -111,7 +105,7 @@
 %files -n dhcpv6_client
 %defattr(644,root,root,755)
 %doc ReadMe dhcp6c.conf
-%attr(750,root,root) %{_sbindir}/dhcp6c
+%attr(755,root,root) %{_sbindir}/dhcp6c
 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/dhcp6c
 %attr(754,root,root) /etc/rc.d/init.d/dhcp6c
 %attr(644,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/dhcp6c.conf
@@ -125,6 +119,11 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.8  2005/09/20 09:03:35  darekr
+- added -Makefile patch
+- use __make install, fix %files
+- rel. 0.5, NFY
+
 Revision 1.7  2005/09/18 21:03:22  darekr
 - use _sbindir macro
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/dhcpv6.spec?r1=1.7&r2=1.8&f=u




More information about the pld-cvs-commit mailing list