There seem to be a couple of problems with the Courier IMAP .spec file
under SuSE Linux:

   The .spec wants RPM >= 4.0.2, but SuSE uses a heavily patched 3.x
   version of RPM.  The version provided with SuSE 8.0 is rpm-3.0.6-278.

   The .spec wants the "sed" package.  In SuSE this is part of the base
   package.

So, changes that might work would be to do something like:

   #  detect if we're running under SuSE
   %define platform_suse %( if [ -f /etc/SuSE-release ]; then echo 1; else %echo 0; fi 
)
   %if %{platform_suse}
   Requires: rpm >= 3.0.6-278
   Requires: /usr/bin/sed
   %else
   Requires: rpm >= 4.0.2
   Requires: /bin/sed
   %endif

With these changes, Courier IMAP seems to build as an RPM.

Sean
-- 
 Thieves broke into Scotland Yard yesterday and stole all the toilets.
 Detectives say they have nothing to go on.
Sean Reifschneider, Inimitably Superfluous <[EMAIL PROTECTED]>
tummy.com, ltd. - Linux Consulting since 1995.  Qmail, Python, SysAdmin


-------------------------------------------------------
This SF.NET email is sponsored by: AMD - Your access to the experts
on Hammer Technology! Open Source & Linux Developers, register now
for the AMD Developer Symposium. Code: EX8664
http://www.developwithamd.com/developerlab
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to