Rabat - Royal Air Maroc (RAM) has signed a long-term contract with Air France KLM for the maintenance of five Boeing 787s owned by the Moroccan flag carrier.