The correct way would be to properly patch the software, maybe including support for DESTDIR and submit upstream... That sort of fixes is in my humble opinion 'the way of the slacker'... Wouldnt it be more benefic for all if this changes would be applied by upstream? I would suppose so... but what would I know about it ;) 2012/5/10 Pascal Bleser <pascal.bleser@opensuse.org>:
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
-- Nelson Marques // I've stopped trying to understand sandwiches with a third piece of bread in the middle... -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org