I packaged up a .spec file and a command line to build the Syncthing 2 rpm for Fedora 42. There have been 2 bug fixes, so I’ve added a command to rebuild and update it as well. It’s mainly for me until it gets in the official Fedora repos, but someone else may find it useful. This was originally done in the early hours of the morning, so review my code and don’t use it on production.
Build it with rpmbuild -bb syncthing2.spec and install it from ~/rpmbuild/RPMS/x86_64
For the updates, I’ve been running this:
ver=2.0.7 ; old=2.0.6 ; \
sed -i "s/$old/$ver/" ~/rpmbuild/SPECS/syncthing.spec ; \
wget -O ~/rpmbuild/SOURCES/syncthing-source-v$ver.tar.gz \
https://github.com/syncthing/syncthing/releases/download/v$ver/syncthing-source-v$ver.tar.gz ; \
rpmbuild --bb ~/rpmbuild/SPECS/syncthing.spec ; sudo dnf update ~/rpmbuild/RPMS/x86_64/syncthing-$ver-*.rpm
If I have anything to update for it, I’ll put it at my miscellaneous scripts repo kalakllanar/meikscripts
I’m glad to make changes, but this is a stopgap, so I won’t be putting a lot of work into it. I’m sure someone with more talent will make a copr or get it in the official repos.