[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Fedora-packaging] Makefile questions



Hello-

I am familiar with packaging for other *nixes but this is my first RPM
attempt and I have a couple of questions.  I have read the various
packaging docs on the Fedora Project site, but have been unable to find
a precise answer.  If there is another document to read or another list
where I should be directing these questions, please let me know.

1.  The Makefile sets PREFIX to /usr/local.  In %install, is it ok
to use:

make install PREFIX=/usr DESTDIR=$RPM_BUILD_ROOT

2.  The Makefile also attempts to install and set user/group ownership
and permissions, i.e. it does 'INSTALLBIN= install -g bin -o root -m
555'.  Is it ok to address this by patching the line so it reads
'INSTALLBIN= install' seeing as how ownership and permissions are later
set in %files?

3.  Similarly, the Makefile also hardcodes the manpage directory, i.e.
in install, it has: '$(INSTALLDIR) $(DESTDIR)$(PREFIX)/man/man1.
Again, is it ok to patch this line so it reads '$(INSTALLDIR)
$(DESTDIR)$PREFIX/share/man/man1'?  This package has no ./configure
stage and just uses make and make install, and does not appear to
respect MANDIR.

I have done all these in my draft spec file and the package clears
rpmlint and builds fine with mock, but I wanted to know if what I did
followed convention.

Thanks!

-- 
Chess Griffin

Attachment: signature.asc
Description: PGP signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]