packaging: added dependency for rpm building

Change-Id: I55f27108bee1afd1d66c1b1a272fffc5f010d09c
Merge pull request #5 from lukyn17/packaging

packaging: added dependency for rpm building
Treat version components as integers

>>> '1.0.1'.split('.')[1]
'0'
>>> '1.0.1'.split('.')[1] >= 1
True
>>> int('1.0.1'.split('.')[1]) >= 1
False
Merge pull request #6 from ekohl/version-check

Treat version components as integers
Fixed version detection with non-admin user
Merge pull request #11 from david-caro/fix-#10

Fixed version detection with non-admin user
Generate foreman sdk from api json

- Preserved old interface for methods: index, show, update, destroy
- Preserved plugin's interface
- You can choose to use the cache (files) or try the server first
- Ability to add more version definitions without having to change code

Change-Id: Ia03c48aeea493a9a90cbeeaeebbe478eaec1030c
Fixed travis icon
Fixing the api generation

* Added 1.4.2 and 1.5.0 cache files (compatible with for 1.4.* 1.5.* foreman
  instances)
* Added missing create_* methods
* Improved the cache logic
* Added json cache files to the package
* Api v1 is the default to be backwards compatible, adding a warning to
* let people adjust, next version will have the version 2 as default
Merge pull request #15 from david-caro/apiv2

Added apiv2 support and other improvements
Fixed typo in the plugins def
Added some docs
Fixing api version docstring
Merge pull request #18 from IluxaMe/fixing_default_api_version_doc

Fixing api version docstring
Bumped version 0.2.2
fixed typos in comments
use builtin string formatter of logger
Merge pull request #19 from rbaier/typos

fixed typos in comments
Merge pull request #20 from rbaier/logging

use builtin string formatter of logger