Re: RPM spec file for RH9
> While we're at spec files, man pages go into share, i.e. /usr/share/man.
> I didn't want to bother with a separate patch for this, so put this into
> the spec file:
>
> cp -p Makefile.m4 Makefile.m4.orig
> sed <Makefile.m4.orig >Makefile.m4 \
> -e 's:$(prefix)/man/:$(prefix)/share/man/:g'
/usr/local/share/man? Does anybody have this? It's probably more
appropriate something as
--- Makefile.m4.orig Sat Aug 9 20:00:40 2003
+++ Makefile.m4 Sat Sep 6 12:08:49 2003
@@ -81,11 +81,12 @@
prefix?=/usr/local
bin_mode?=0755 # yes, default is *no* set-uid
minus_o:=$(shell [[ `id -u` == 0 ]] && echo "-o root")
+manprefix:=$(shell case $(prefix) in (*/usr/?*) echo $(prefix)/man/man1 ;; (*) echo $(prefix)/share/man/man1 ;; esac)
install: dvd+rw-tools
[[ -d $(prefix)/bin ]] || mkdir -p $(prefix)/bin
install $(minus_o) -m $(bin_mode) $(CHAIN) $(prefix)/bin
- [[ -d $(prefix)/man/man1 ]] || mkdir -p $(prefix)/man/man1
- install $(minus_o) -m 0644 growisofs.1 $(prefix)/man/man1
+ [[ -d $(manprefix) ]] || mkdir -p $(manprefix)
+ install $(minus_o) -m 0644 growisofs.1 $(manprefix)
])
# common section
[
A.
Reply to: