Luca Olivetti wrote:
While packaging a new release of the cyrus imapd server, I'd like to make rpmlint happy (or at least happier), but I'm having these problems I don't know how to fix:dunno, maybe the license is something similar to what's already in common-licenses? eg. BSD-like, GPL-like etcetc.
W: cyrus-imapd invalid-license OSI Approved
Well, I know it's not in the list of licenses, but none of them applies.
The license is at http://asg.web.cmu.edu/cyrus/imapd/license.html, what should I use?
Probably the licenses list should be expanded (hey, there's a "Vovida Software License" and a "CVW License", why not a "CMU license"?)
yes, bzip2 compresses much better, and it's also for consistency, read http://www.linux-mandrake.com/en/howtos/mdk-rpm/
W: cyrus-imapd source-or-patch-not-bzipped
this is easy to fix, but isn't the srpm already compressed? does it really make a difference?
http://www.pathname.com/fhs/
E: cyrus-imapd configure-without-libdir-spec
???
that's probably because there are 2 configure, one of them isn't using the %configure macro (if I use it it won't compile).
BTW, while speaking of libdir, when will be mandrake's rpm fixed to use /usr/libexec as %libexecdir instead of /usr/lib ?
it's not supposed to be used anymore(or whatever, read the fhs), so /usr/lib is correct for %_libexecdir
then extract them to the appropriate place, eg. bzip2 -dc %{SOURCE3} > cyrus-user-procmailrc.template in the install stage or something, then you can
E: cyrus-imapd use-of-RPM_SOURCE_DIR
that's funny, since I replaced all $RPM_SOURCE_DIR/something with the corresponding %{SOURCEXX}, the problem is that for a couple of files in %doc, rpm would look for them under the buildroot and obviously failing, so I had to change that back to use $RPM_SOURCE_DIR:
just add it with %doc cyrus-user-procmailrc.template
or you could also make an own dir for it to make stuff cleaner, eg.
mkdir docs
bzip2 -dc %{SOURCE3} > docs/cyrus-user-procmailrc.template
bzip2 -dc %{SOURCE9} > docs/cyrus-imapd-procmail+cyrus.mc
and then in the %files section:
%files
%doc docs/*
# cyrus-procmailrc %{SOURCE1} %doc $RPM_SOURCE_DIR/cyrus-procmailrc # cyrus-user-procmailrc.template %{SOURCE3} %doc $RPM_SOURCE_DIR/cyrus-user-procmailrc.template # cyrus-imapd-procmail+cyrus.mc %{SOURCE9} %doc $RPM_SOURCE_DIR/cyrus-imapd-procmail+cyrus.mc TIA
-- Mvh Per Øyvind Karlsen Delonic Technology Group AS Sysadmin, developer, greasemonkey www.delonic.no - +47 41681061