commit e3dcdb9dcf240721495759f5758a03808a97d9b4a4811bcc91bc962f5abd9f21 Author: Marcus Meissner Date: Sat May 9 10:55:05 2015 +0000 Accepting request 305830 from home:XRevan86 OBS-URL: https://build.opensuse.org/request/show/305830 OBS-URL: https://build.opensuse.org/package/show/network/syncthing?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/syncthing-0.11.2.tar.gz b/syncthing-0.11.2.tar.gz new file mode 100644 index 0000000..616e058 --- /dev/null +++ b/syncthing-0.11.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:59784b57e54c2271f9d8d5544e03cbbb2413d41e72929f11e75ec46c0e4c4549 +size 3127112 diff --git a/syncthing.changes b/syncthing.changes new file mode 100644 index 0000000..70e1a19 --- /dev/null +++ b/syncthing.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Thu May 7 19:34:43 UTC 2015 - sor.alexei@meowr.ru + +- Initial package. diff --git a/syncthing.spec b/syncthing.spec new file mode 100644 index 0000000..8493c96 --- /dev/null +++ b/syncthing.spec @@ -0,0 +1,79 @@ +# +# spec file for package syncthing +# +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +Name: syncthing +Version: 0.11.2 +Release: 0 +Summary: FOSS Continuous File Synchronization +License: MIT +Group: Productivity/Networking/File-Sharing +Url: https://syncthing.net/ +Source: https://github.com/%{name}/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +BuildRequires: go >= 1.3 +BuildRequires: systemd +BuildRequires: systemd-rpm-macros +%go_exclusivearch + +%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 +%setup -q + +%build +%goprep github.com/%{name}/%{name} +go run build.go -no-upgrade build + +%install +install -Dm 0755 %{name} %{buildroot}%{_bindir}/%{name} +install -Dm 0644 etc/linux-systemd/system/%{name}@.service \ + %{buildroot}%{_unitdir}/%{name}@.service +install -Dm 0644 etc/linux-systemd/user/%{name}.service \ + %{buildroot}%{_userunitdir}/%{name}.service + +mkdir -p %{buildroot}%{_sbindir}/ +ln -sf %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name} + +%pre +%service_add_pre %{name}@.service + +%post +%service_add_post %{name}@.service +%systemd_user_post %{name}.service + +%preun +%service_del_preun %{name}@.service +%systemd_user_preun %{name}.service + +%postun +%service_del_postun %{name}@.service +%systemd_user_postun %{name}.service + +%files +%defattr(-,root,root) +%doc AUTHORS LICENSE README.md +%{_bindir}/%{name} +%{_sbindir}/rc%{name} +%{_unitdir}/%{name}@.service +%{_userunitdir}/%{name}.service + +%changelog