1
- %define alphatag 20140418
1
+ Name: gitsync
2
+ Version: 1.0.1
3
+ Release: 1%{?dist }
4
+ Summary: Automated git-based synchronization
2
5
3
- Name: gitsync
4
- Version: 0.0.2
5
- Release: 0.1.%{alphatag }git%{?dist }
6
- Summary: Automated git-based synchronization
7
-
8
- License: GPLv3+
9
- URL: http://ambre.pingoured.fr/cgit/gitsync.git
6
+ License: GPLv3+
7
+ URL: https://github.com/pypingou/gitsync
10
8
# The source was pulled from upstreams git scm. Use the following
11
9
# commands to generate the tarball
12
10
# git clone http://ambre.pingoured.fr/cgit/gitsync.git
13
11
# cd gitsync && git archive --format=tar --prefix=gitsync-0.0.1/ fd39ef44ed57a4ede4f586a852598479efa9db13 > ../gitsync-20120102.tar.bz2
14
- Source0: gitsync-%{alphatag }.tar.bz2
12
+ Source0: gitsync-1.0.1.tar.bz2
13
+
14
+ BuildArch: noarch
15
15
16
- Requires : python-pytgit2
17
- Requires : python-watchdog
16
+ BuildRequires : python2-devel
17
+ BuildRequires : systemd-devel
18
18
19
- BuildArch: noarch
20
- BuildRequires: python-devel
19
+ Requires: python2-pygit2
20
+ Requires: python2-watchdog
21
+ Requires(post): systemd
22
+ Requires(preun): systemd
23
+ Requires(postun): systemd
21
24
22
25
23
26
%description
@@ -28,7 +31,8 @@ folder and add/remove/commit the changes which are made there.
28
31
This way it kind of provide a similar service then dropbox or
29
32
sparkleshare but:
30
33
- in python (no mono-pile to install)
31
- - in cron (set your frequency as desired)
34
+ - in cron (set your frequency as desired) or in daemon mode (watches the
35
+ changes in the file-system and commit as needed)
32
36
- in git (get real track changes).
33
37
34
38
%prep
@@ -44,13 +48,28 @@ rm -rf %{buildroot}
44
48
mkdir -p %{buildroot }%{_bindir }
45
49
install -m 755 %{name }.py %{buildroot }%{_bindir }/%{name }
46
50
51
+ mkdir -p $RPM_BUILD_ROOT/%{_unitdir }
52
+ install -m 644 gitsync.service \
53
+ $RPM_BUILD_ROOT/%{_unitdir }/gitsync.service
54
+
55
+ %post
56
+ %systemd_post gitsync.service
57
+ %preun
58
+ %systemd_preun gitsync.service
59
+ %postun
60
+ %systemd_postun_with_restart gitsync.service
61
+
47
62
48
63
%files
49
64
%doc README LICENSE
50
65
%{_bindir }/%{name }
66
+ %{_unitdir }/gitsync.service
51
67
52
68
53
69
%changelog
70
+ *
Wed Jan 04 2017 Pierre-Yves Chibon <[email protected] > -
1.0.1-1
71
+ - Update to 1.0.1
72
+
54
73
* Fri April 18 2014 Pierre-Yves Chibon <pingou AT pingoured DOT fr> - 0.0.2-0.1.20140418git
55
74
- Bump to a 0.0.2 release
56
75
- Add dependency to python-watchdog and python-pygit2
0 commit comments