Use %{_sbindir} instead of '/sbin'

This commit is contained in:
Jan Synacek 2012-11-19 09:16:53 +01:00
parent d058f304bc
commit aa1c4819c2

View File

@ -26,17 +26,18 @@ make clean
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS"
%install %install
make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT SBIN_DIR=$RPM_BUILD_ROOT/sbin MANDIR=$RPM_BUILD_ROOT%{_mandir} make install INSTALL="%{__install} -p" DESTDIR=$RPM_BUILD_ROOT SBIN_DIR=$RPM_BUILD_ROOT%{_sbindir} MANDIR=$RPM_BUILD_ROOT%{_mandir}
%files %files
%doc README %doc README
/sbin/sgpio %{_sbindir}/sgpio
%{_mandir}/man1/sgpio.* %{_mandir}/man1/sgpio.*
%changelog %changelog
* Mon Nov 19 2012 Jan Synáček <jsynacek@redhat.com> - 1.2.0.10-9 * Mon Nov 19 2012 Jan Synáček <jsynacek@redhat.com> - 1.2.0.10-9
- dos2unix'ed the patch - dos2unix'ed the patch
- Call dos2unix before patching and dos2unix Makefile as well - Call dos2unix before patching and dos2unix Makefile as well
- Use %%{_sbindir} instead of '/sbin'
* Thu Aug 23 2012 Jan Synáček <jsynacek@redhat.com> - 1.2.0.10-8 * Thu Aug 23 2012 Jan Synáček <jsynacek@redhat.com> - 1.2.0.10-8
- Improve spec - Improve spec