diff --git a/SPECS/syncthing.spec b/SPECS/syncthing.spec new file mode 100644 index 0000000..a9dd408 --- /dev/null +++ b/SPECS/syncthing.spec @@ -0,0 +1,43 @@ +Name: syncthing +Version: 0.12.18 +Release: 0%{?dist} +Summary: Open, trustworthy and decentralized sync + +Group: Applications/System +License: MPLv2 +URL: https://github.com/syncthing/syncthing +Source0: https://github.com/syncthing/syncthing/releases/download/v0.12.17/syncthing-linux-386-v%{version}.tar.gz + +Requires: policycoreutils-python + +%description +Syncthing replaces proprietary sync and cloud services with something open, +trustworthy and decentralized. Your data is your data alone and you deserve +to choose where it is stored, if it is shared with some third party and how +it's transmitted over the Internet. + +%prep +tar -zxf %{SOURCE0} +cd syncthing-linux-386-v%{version}/ + +%install +mkdir -p %{buildroot}/usr/bin/ +cd syncthing-linux-386-v%{version}/ +cp syncthing %{buildroot}/usr/bin/ + +mkdir -p %{buildroot}/etc/systemd/system/ +cp etc/linux-systemd/system/syncthing\@.service %{buildroot}/etc/systemd/system/ +mkdir -p %{buildroot}/etc/systemd/user/ +cp etc/linux-systemd/user/syncthing.service %{buildroot}/etc/systemd/user/ + + +%files +%defattr(-,root,root) +/usr/bin/syncthing +/etc/systemd/system/syncthing@.service +/etc/systemd/user/syncthing.service + +%changelog +* Mon Feb 08 2016 Martin Lazarov +- Initial spec version +