Commits

Bryan O'Sullivan  committed c286a8a

Fix macro usage. Bump release number.

  • Participants
  • Parent commits cf610f9

Comments (0)

Files changed (1)

File netplug.spec

 %define version 1.2
-%define release 1
-%define sysconfig /etc/sysconfig/network-scripts
+%define release 2
+%define sysconfig %{_sysconfdir}/sysconfig/network-scripts
 
 Summary: Daemon that responds to network cables being plugged in and out
 Name: netplug
 %setup -q
 
 %build
-make
+make CFLAGS="%{_global_cflags} %{_optflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(-,root,root,-)
+%config %{_sysconfdir}/netplug/netplugd.conf
+%{_sysconfdir}/netplug.d
+%{_sysconfdir}/netplug
+%{_initrddir}/netplugd
 /sbin/netplugd
-%config /etc/netplug/netplugd.conf
-/etc/netplug.d
-/etc/rc.d/init.d/netplugd
-%docdir /usr/share/man/*
-/usr/share/man/*/*
+%{_mandir}/man*/*
 
 %doc COPYING ChangeLog README TODO