kozec, after a lot of messing about I managed to get a first RPM going, though there are a few draw-backs…
- It only works when building on the local machine and the resulting RPM is only for the current architecture (in my case x86_64).
- It does NOT build on the openSUSE Build Service (OBS). I tried setting up a repo but the build bombs with some error near the end in regard to a syntax error in the .desktop file, and since openSUSE doesn’t seem to give a rats ass about providing a meaningful documentation I won’t bother (if the OBS build would work it would spit out i586 and x86_64 RPMS in the “Home” project repo).
Now …
I whipped the stuff I did into a file on copy.com
The file contains the readily built x86_64 RPM for openSUSE 13.2 as well as as .sh file to run the build (having run “sudo zypper install rpm-build” prior to launching the script is a must) along with the required spec file - it’s meant for version 0.5 ONLY! Also, if you compare the “Requires” to the “Depends” of Andrew’s DEB please know that the “gir1.2*” libraries do NOT exist in openSUSE, but that doesn’t seem to keep syncthing-gtk from working. Also, the fancy tar extracting and tar creating I do in the build script is necessary … the -gui in the directory name of the tarball doesn’t really go very well with the -gtk project name, that’s why I need to extract to rename the directory to wrap it up into a new tarball … otherwise the build would bomb (yet again).
If you, kozec, or someone knows how to fix the OBS problem up (it’s complaining about the icon resource in the .desktop file) so it can be built on the OBS I’m more than willing to maintain a repo - for now I had enough of the RPM idiocy. If the exact error message the OBS throws needs to be known I happily provide a log.