forked from pool/syncthing
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
This commit is contained in:
commit
e3dcdb9dcf
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
syncthing-0.11.2.tar.gz
Normal file
3
syncthing-0.11.2.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:59784b57e54c2271f9d8d5544e03cbbb2413d41e72929f11e75ec46c0e4c4549
|
||||
size 3127112
|
4
syncthing.changes
Normal file
4
syncthing.changes
Normal file
@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu May 7 19:34:43 UTC 2015 - sor.alexei@meowr.ru
|
||||
|
||||
- Initial package.
|
79
syncthing.spec
Normal file
79
syncthing.spec
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user