French lawmakers gave final approval Friday to legislation that could force Apple Computer Inc. (AAPL) to make its iPod and iTunes Music Store compatible with rivals' music players and online services.

Both the Senate and the National Assembly, France's lower house, voted in favor of the copyright bill, which some analysts said could cause Apple and others to pull their music players and online download stores from France.

Currently, songs bought on iTunes can be played only on iPods, and an iPod can't play downloads from other stores that rival the extensive iTunes music catalog from major artists and labels — like Sony's (SNE) Connect and Napster (NAPS).

Apple described the original version of the copyright bill as "state-sponsored piracy" earlier this year, but a company spokesman was not immediately available to comment on Friday's vote.

In a statement issued after lawmakers hashed out the final compromise text last week, Apple said it hoped the market would be left to decide "which music players and online music stores are offered to consumers."

The vote was the last legislative step before the bill becomes law, barring the success of a last-ditch procedural challenge filed in the constitutional court last week by the opposition Socialists and Greens.

The law would take effect only after that challenge is exhausted — a process expected to take several weeks.

The law states that companies are expected to share the required technical data with any rival that wants to offer compatible music players and stores.

"Any artist's work that is legally acquired should be playable on any digital device," Culture Minister Renaud Donnedieu de Vabres told lawmakers before the vote.

The final compromise asserts that companies should share the required technical data with any rival that wants to offer compatible music players and online stores, but it toned down many of the tougher measures backed by lower-house lawmakers early on.

It also maintained a loophole introduced by senators, which could allow Cupertino, Calif.-based Apple and others to dodge the data-sharing demands by striking new deals with record labels and artists.

A new regulatory authority will have the power to order companies to license their exclusive file formats to rivals on request — but only if the compatibility restrictions they impose are "additional to, or independent of, those explicitly decided by the copyright holders."

Lawyers say this means Apple and Sony could avoid sharing their FairPlay and ATRAC3 copy-protection systems, providing they obtained permission from the artists whose music they sell.

The increased say for artists could strengthen the hand of recording companies in their recurrent negotiations with Apple, as they seek more flexible iTunes pricing — currently the same 99 cents for every standard-length track.

The final vote in France comes as several other European nations are considering action to force Apple to open iTunes to rivals' players.

In a joint letter this month, consumer agencies in Norway, Sweden and Denmark accused Apple of violating contract and copyright laws.

The French law will also introduce new penalties for a range of online piracy offenses — up to a maximum three-year jail term and $380,000 fine for knowingly offering or advertising a download service for pirated music or videos.