The following are some example .spec files I created to demonstrate how to deal with a more recent libudev version and the different naming of libcrypto on Fedora, via the use of compatibility symlinks. I do this in post install for maximum compatibility as the resultant rpms could also be used on systems where libudev and libcrypto naming matches what Opera expects.
To fetch all the .spec files:
git clone https://gist.github.com/f0183807a9f708067475.git
Place the version of Opera you wish to repackage in your sources directory (usually
~/rpmbuild/SOURCES). Tweak the Version field in the .spec file(s).
To repackage Opera stable:
rpmbuild -bb opera-stable.spec
To repackage Opera beta:
rpmbuild -bb opera-beta.spec
To repackage Opera developer:
rpmbuild -bb opera-developer.spec
Note: I have only done limited testing on the most recent versions of Fedora, OpenSUSE, PCLinuxOS and Mageia.