On 2012-05-10 16:16:53 (+0100), Nelson Marques <nmo.marques@gmail.com> wrote:
First lines of the Makefile:
prefix = /usr/local libdir = $(prefix)/lib/nut bindir = $(prefix)/bin mandir = $(prefix)/man/man1
Patch it, so that:
prefix = /usr
that should do the trick.
Much easier, overwrite them by passing them to make. Any variable assignment you pass to make will supersede whatever the Makefile sets: ---8<------------------------------------------- %build make %{?_smp_mflags} \ prefix="%{_prefix}" \ mandir="%{_mandir}/man1" %install make \ prefix="%{buildroot}%{_prefix}" \ mandir="%{buildroot}%{_mandir}/man1" %files %defattr(-,root,root) %{_bindir}/nut %{_libdir}/nut %doc %{_mandir}/man1/nut.1* ---8<------------------------------------------- cheers -- -o) Pascal Bleser /\\ http://opensuse.org -- we haz green _\_v http://fosdem.org -- we haz conf