Merge pull request #19 from ciz/master

%{_docdir} path should be %{_datadir}/doc/packages
Fix year replacement.
Add detection if we use lowercase defined dirs and then glue next to them rather than going to top.
Add test for huge macro i wrote in libreoffice.
Fix breaking of the hugedefine test.
Drop versiondefine test as the order does not matter to rpm. Place of use does.
Fix conditonal packages parsing at least for most cases.
Ignore lang_package macro for bracketing.
Do not add curly brackets around cmake macros.
Do not bracket install_info calls that have arguments.
Take Enhances variable into account.
Add new license
Include test for one more format of rpm query. issue#22
Add test for no new line at the end of the file.
Fix issue #21 where we removed last trailing char if there was no newline at the end.
Add test for issue #22 where we fail to parse rpm command within conditional.
Fix issue #22 when we broke rpm calls if there was comment above the call.
Simplify iterating over file lines

The file object is iterating by lines by default, so there is no need to
do that explicitely.
Fixed stripping of last character in the line

In case of last line, there might be no \n and thus removing last char
will lead to losing it.
Remove unused variable