library rfid master will not upload do to library errors

i have bod the RFID-RC522 module
and i have instated the proper library (Arduino Playground - MFRC522)
every thing shows up in the arduino ide but when i want to upload it, it gives just a bunch of errors

(/home/gerjan/sketchbook/libraries/rfidmaster/MFRC522.cpp: In member function ‘void MFRC522::PCD_WriteRegister(byte, byte)’:
/home/gerjan/sketchbook/libraries/rfidmaster/MFRC522.cpp:41:6: error: ‘class SPIClass’ has no member named ‘beginTransaction’
SPI.beginTransaction(SPISettings(SPI_CLOCK_DIV4, MSBFIRST, SPI_MODE0)); // Set the settings to work with SPI bus
^
/home/gerjan/sketchbook/libraries/rfidmaster/MFRC522.cpp:41:70: error: ‘SPISettings’ was not declared in this scope
SPI.beginTransaction(SPISettings(SPI_CLOCK_DIV4, MSBFIRST, SPI_MODE0)); // Set the settings to work with SPI bus
^
/home/gerjan/sketchbook/libraries/rfidmaster/MFRC522.cpp:46:6: error: ‘class SPIClass’ has no member named ‘endTransaction’
SPI.endTransaction(); // Stop using the SPI bus
^
/home/gerjan/sketchbook/libraries/rfidmaster/MFRC522.cpp: In member function ‘void MFRC522::PCD_WriteRegister(byte, byte, byte*)’:
/home/gerjan/sketchbook/libraries/rfidmaster/MFRC522.cpp:57:6: error: ‘class SPIClass’ has no member named ‘beginTransaction’
SPI.beginTransaction(SPISettings(SPI_CLOCK_DIV4, MSBFIRST, SPI_MODE0)); // Set the settings to work with SPI bus
^
/home/gerjan/sketchbook/libraries/rfidmaster/MFRC522.cpp:57:70: error: ‘SPISettings’ was not declared in this scope
SPI.beginTransaction(SPISettings(SPI_CLOCK_DIV4, MSBFIRST, SPI_MODE0)); // Set the settings to work with SPI bus
^
/home/gerjan/sketchbook/libraries/rfidmaster/MFRC522.cpp:64:6: error: ‘class SPIClass’ has no member named ‘endTransaction’
SPI.endTransaction(); // Stop using the SPI bus
^
/home/gerjan/sketchbook/libraries/rfidmaster/MFRC522.cpp: In member function ‘byte MFRC522::PCD_ReadRegister(byte)’:
/home/gerjan/sketchbook/libraries/rfidmaster/MFRC522.cpp:74:6: error: ‘class SPIClass’ has no member named ‘beginTransaction’
SPI.beginTransaction(SPISettings(SPI_CLOCK_DIV4, MSBFIRST, SPI_MODE0)); // Set the settings to work with SPI bus
^
/home/gerjan/sketchbook/libraries/rfidmaster/MFRC522.cpp:74:70: error: ‘SPISettings’ was not declared in this scope
SPI.beginTransaction(SPISettings(SPI_CLOCK_DIV4, MSBFIRST, SPI_MODE0)); // Set the settings to work with SPI bus
^
/home/gerjan/sketchbook/libraries/rfidmaster/MFRC522.cpp:79:6: error: ‘class SPIClass’ has no member named ‘endTransaction’
SPI.endTransaction(); // Stop using the SPI bus
^
/home/gerjan/sketchbook/libraries/rfidmaster/MFRC522.cpp: In member function ‘void MFRC522::PCD_ReadRegister(byte, byte, byte*, byte)’:
/home/gerjan/sketchbook/libraries/rfidmaster/MFRC522.cpp:98:6: error: ‘class SPIClass’ has no member named ‘beginTransaction’
SPI.beginTransaction(SPISettings(SPI_CLOCK_DIV4, MSBFIRST, SPI_MODE0)); // Set the settings to work with SPI bus
^
/home/gerjan/sketchbook/libraries/rfidmaster/MFRC522.cpp:98:70: error: ‘SPISettings’ was not declared in this scope
SPI.beginTransaction(SPISettings(SPI_CLOCK_DIV4, MSBFIRST, SPI_MODE0)); // Set the settings to work with SPI bus
^
/home/gerjan/sketchbook/libraries/rfidmaster/MFRC522.cpp:121:6: error: ‘class SPIClass’ has no member named ‘endTransaction’
SPI.endTransaction(); // Stop using the SPI bus
^
)

i am on linux lubuntu (ubuntu)
i have download the ide from the ubuntu software center (version 1:1.0.5+dfsg2-2)