Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mlazarov committed Feb 8, 2016
0 parents commit cc8637a
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions SPECS/syncthing.spec
Original file line number Diff line number Diff line change
@@ -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 <martin@lazarov.bg>
- Initial spec version

0 comments on commit cc8637a

Please sign in to comment.