forked from pool/syncthing
Dirk Mueller
de4ea60232
Update to version 0.14.49 Bugfixes: (gh#syncthing/syncthing#4925): Deleted files within deleted directories aren't detected with FS watcher (gh#syncthing/syncthing#4944): Edit Folder UI displays default "Full Rescan Interval (s)" value instead of the actual one (gh#syncthing/syncthing#4981): Race on folder restart (gh#syncthing/syncthing#4983): Impossible to edit folder with path "/" (gh#syncthing/syncthing#4990): Incorrect large block size chosen for large files on 32 bit archs (gh#syncthing/syncthing#4994): Database schema from the future should be rejected (gh#syncthing/syncthing#5002): v0.14.48 panic: runtime error: index out of range (gh#syncthing/syncthing#5025): Stuck in CPU consuming accept loop when out of file descriptors (gh#syncthing/syncthing#5050): Filesystem watcher doesn't notify changes on Windows when the file size remains the same Enhancements: (gh#syncthing/syncthing#4863): Snap package could use removable-media slot (gh#syncthing/syncthing#4953): Speed up delete propagation when it's not a rename (gh#syncthing/syncthing#4969): Executable files edited on Windows should retain execute bit on Unixes (gh#syncthing/syncthing#4977): Disable rescan button while scanning instead of hiding it and add a bug ref OBS-URL: https://build.opensuse.org/request/show/628525 OBS-URL: https://build.opensuse.org/package/show/network/syncthing?expand=0&rev=143
101 lines
3.3 KiB
RPMSpec
101 lines
3.3 KiB
RPMSpec
#
|
|
# spec file for package syncthing
|
|
#
|
|
# Copyright (c) 2018 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.14.49
|
|
Release: 0
|
|
Summary: Continuous File Synchronisation
|
|
License: MPL-2.0
|
|
Group: Productivity/Networking/File-Sharing
|
|
Url: https://syncthing.net/
|
|
Source: https://github.com/%{name}/%{name}/releases/download/v%{version}/%{name}-source-v%{version}.tar.gz
|
|
Source1: https://github.com/%{name}/%{name}/releases/download/v%{version}/%{name}-source-v%{version}.tar.gz.asc
|
|
Source2: %{name}.keyring
|
|
Source3: %{name}.firewall
|
|
BuildRequires: go >= 1.8
|
|
BuildRequires: systemd
|
|
BuildRequires: systemd-rpm-macros
|
|
|
|
%description
|
|
Syncthing is an application that synchronises files across multiple
|
|
devices. This means the creation, modification or deletion of files
|
|
on one machine will automatically be replicated to other devices.
|
|
|
|
%prep
|
|
%setup -q -n %{name}
|
|
|
|
cp -f %{SOURCE3} %{name}.firewall
|
|
|
|
%build
|
|
export BUILD_HOST=openSUSE
|
|
export BUILD_USER=$BUILD_HOST
|
|
mkdir -p build/src/ build/vendor/
|
|
export GOPATH="$PWD/build:$PWD/build/vendor"
|
|
|
|
mkdir -p build/src/github.com/%{name}/%{name}
|
|
ls | sed '/^build$/d' | xargs cp -at build/src/github.com/%{name}/%{name}
|
|
cp -a vendor build/vendor/src
|
|
|
|
pushd build/src/github.com/%{name}/%{name}/
|
|
go run build.go -no-upgrade -version v%{version} install all
|
|
popd
|
|
|
|
%install
|
|
install -Dpm 0755 build/src/github.com/%{name}/%{name}/bin/%{name} \
|
|
%{buildroot}%{_bindir}/%{name}
|
|
install -Dpm 0644 etc/linux-systemd/system/%{name}@.service \
|
|
%{buildroot}%{_unitdir}/%{name}@.service
|
|
install -Dpm 0644 etc/linux-systemd/system/%{name}-resume.service \
|
|
%{buildroot}%{_unitdir}/%{name}-resume.service
|
|
%if 0%{?suse_version} > 1320 || 0%{?sle_version} >= 120200
|
|
install -Dpm 0644 etc/linux-systemd/user/%{name}.service \
|
|
%{buildroot}%{_userunitdir}/%{name}.service
|
|
%endif
|
|
install -Dpm 0644 %{name}.firewall \
|
|
%{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/%{name}
|
|
|
|
%pre
|
|
%service_add_pre %{name}-resume.service
|
|
|
|
%post
|
|
%service_add_post %{name}-resume.service
|
|
%systemd_user_post %{name}.service
|
|
|
|
%preun
|
|
%service_del_preun %{name}@.service %{name}-resume.service
|
|
%systemd_user_preun %{name}.service
|
|
|
|
%postun
|
|
%service_del_postun %{name}-resume.service
|
|
%systemd_user_postun %{name}.service
|
|
|
|
%files
|
|
%if 0%{?suse_version} >= 1500
|
|
%license LICENSE
|
|
%else
|
|
%doc LICENSE
|
|
%endif
|
|
%doc AUTHORS CONDUCT.md CONTRIBUTING.md README.md
|
|
%config %{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/%{name}
|
|
%{_bindir}/%{name}
|
|
%{_unitdir}/%{name}@.service
|
|
%{_unitdir}/%{name}-resume.service
|
|
%{_userunitdir}/%{name}.service
|
|
|
|
%changelog
|