Hi Hugo,
unfortunately not, because the procedure we use to build an RPM is a little different.
There is some software in OpenSUSE which creates RPMs, and the main issue is to create a "spec" file, which is something like such a "make_rpm_package script", and includes the cmake settings for compiling the project. You can access such a spec file at
https://build.opensuse.org/package/show?package=hiawatha&project=home%3AFisiu%3Abranches%3Aserver%3Ahttp
- it is the file hiawatha.spec
Then it is very convenient to not create the rpm on your own system, but to use the OpenSUSE Build Service. There you just
- upload the spec file and the ini scripts (plus may be some other configuration files), then you
- point it to the hiawatha download link,
- then you select the OpenSUSE versions you want it built for, plus Red Hat, Centos, Mandriva, if you like
and then it builds the RPMs for all selected versions (takes 10 minutes to 1 hour).
After any change you make to any config file it automatically rebuilds it.
This way you can cover all current OpenSUSE versions without having to have them installed.
in the case of Hiawatha and starting with OpenSUSE 12.2 (and I assume with other Linux distros too) the position independent code became an issue. The setting in the spec file, which Fisiu applied, does take effect for hiawatha but apparently not for the included PolarSSL.
I think setting the environment variable "set(CMAKE_POSITION_INDEPENDENT_CODE ON)" would take effect also for the included PolarSSL, I simply don't know how to include it in the spec file. Possibly "export CMAKE_POSITION_INDEPENDENT_CODE=ON" will do it, I'll test it sooner or later (latest with your next release
) . The beauty of that would be that you would not have to change anything in the hiawatha package.