UPDATE 1-Spirit AeroSystems reaches deal with Boeing, shares rise

(Adds details)

Aug 2 (Reuters) - Aircraft parts maker Spirit AeroSystems Holdings Inc said it reached a deal with Boeing Co , its biggest customer, on pricing terms related to aircraft such as the 787 Dreamliner.

Spirit Aero shares were up about 5 percent at $64.00 in premarket trading on Wednesday.

By addressing a range of programs, not just 787 pricing, the agreement reduces much uncertainty that has long existed with Spirit Aero's largest customer and preserves its ability to meet long-term cash flow goals, Chief Executive Tom Gentile said.

Spirit Aero reported a quarterly loss in the second quarter ended June 29, compared with a profit a year earlier, hurt by a $353 million charge related to Boeing's 787 Dreamliner program.

The company posted a loss of $56.8 million, or 48 cents per share, in the quarter, compared with a profit of $44.8 million, or 35 cents per share, a year earlier.

Last year's profit included a $135.7 million accounting charge related to the Airbus SE A350 XWB program.

On an adjusted basis, Spirit Aero earned $1.57 per share in the quarter, compared with $1.21 per share a year earlier.

Total revenue was little changed at $1.83 billion. (Reporting by Ankit Ajmera in Bengaluru; Editing by Martina D'Couto)