SPECS: openlldp.spec - pldize (illegal use of _sysconfdir macro)
glen
glen at pld-linux.org
Tue Jan 22 13:39:02 CET 2008
Author: glen Date: Tue Jan 22 12:39:02 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- pldize (illegal use of _sysconfdir macro)
---- Files affected:
SPECS:
openlldp.spec (1.6 -> 1.7)
---- Diffs:
================================================================
Index: SPECS/openlldp.spec
diff -u SPECS/openlldp.spec:1.6 SPECS/openlldp.spec:1.7
--- SPECS/openlldp.spec:1.6 Tue Jan 22 13:35:08 2008
+++ SPECS/openlldp.spec Tue Jan 22 13:38:57 2008
@@ -1,6 +1,6 @@
# $Revision$, $Date$
%define subver alpha
-%define rel 1
+%define rel 1.1
Summary: Open Source implementation of IEEE 802.1AB
Name: openlldp
Version: 0.3
@@ -48,16 +48,14 @@
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_mandir}/man8
-install -d $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig
-install -d $RPM_BUILD_ROOT%{_sysconfdir}/init.d
+install -d $RPM_BUILD_ROOT{/etc/{sysconfig,rc.d/init.d},%{_mandir}/man8}
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/man8/lldp.8
-cp -a %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/init.d/lldpd
-cp -a %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/lldpd
+cp -a %{SOURCE3} $RPM_BUILD_ROOT/etc/sysconfig/lldpd
+install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/lldpd
%clean
rm -rf $RPM_BUILD_ROOT
@@ -65,9 +63,9 @@
%files
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog LICENSE README
+%attr(754,root,root) /etc/rc.d/init.d/lldpd
+%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/lldpd
%attr(755,root,root) %{_sbindir}/lldpd
-%attr(754,root,root) %{_sysconfdir}/init.d/lldpd
-%{_sysconfdir}/sysconfig/lldpd
%{_mandir}/man8/*.8*
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -76,6 +74,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.7 2008-01-22 12:38:57 glen
+- pldize (illegal use of _sysconfdir macro)
+
Revision 1.6 2008-01-22 12:35:08 glen
- raw update by Ilja Bobkevič
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/openlldp.spec?r1=1.6&r2=1.7&f=u
More information about the pld-cvs-commit
mailing list