]>
Commit | Line | Data |
---|---|---|
0a596378 ER |
1 | # TODO |
2 | # - gtk ui | |
3 | # - make calls missing etags | |
2adacf0b | 4 | Summary: Program for bidirectional synchronization |
56eb0c1b | 5 | Summary(pl.UTF-8): Program do synchronizacji dwukierunkowej |
2adacf0b | 6 | Name: unison |
5cd1d72b | 7 | Version: 2.40.102 |
e9450c63 | 8 | Release: 1 |
2adacf0b | 9 | License: GPL |
10 | Group: Daemons | |
76e23d43 | 11 | Source0: http://www.cis.upenn.edu/~bcpierce/unison/download/releases/stable/%{name}-%{version}.tar.gz |
5cd1d72b | 12 | # Source0-md5: 42caf869f40440ed0e75eef07a605b2e |
d492035c | 13 | Source1: %{name}.init |
2adacf0b | 14 | URL: http://www.cis.upenn.edu/~bcpierce/unison/ |
9453fae2 | 15 | BuildRequires: ocaml |
0a596378 | 16 | BuildRequires: rpmbuild(macros) >= 1.228 |
2adacf0b | 17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
2adacf0b | 19 | %description |
9121cce2 JB |
20 | Unison is a file-synchronization tool for Unix and Windows. It allows |
21 | two replicas of a collection of files and directories to be stored on | |
22 | different hosts (or different disks on the same host), modified | |
23 | separately, and then brought up to date by propagating the changes in | |
24 | each replica to the other. | |
25 | ||
cdd1c2c2 JR |
26 | %description -l pl.UTF-8 |
27 | Unison to narzędzie do synchronizacji plików dla uniksów i Windows. | |
28 | Pozwala na przechowywanie dwóch kopii zbioru plików i katalogów na | |
0a596378 ER |
29 | różnych maszynach (lub różnych dyskach tej samej maszyny), oddzielne |
30 | modyfikowanie ich, a następnie uaktualnianie poprzez propagowanie | |
31 | zmian z każdej z kopii do drugiej. | |
2adacf0b | 32 | |
d492035c | 33 | %package init |
610a19ae | 34 | Summary: Init script for system-wide unison service |
56eb0c1b | 35 | Summary(pl.UTF-8): Skrypt init dla ogólnosystemowej usługi unison |
610a19ae | 36 | Group: Daemons |
0a596378 | 37 | Requires(post,preun): /sbin/chkconfig |
610a19ae | 38 | Requires: %{name} = %{version}-%{release} |
0a596378 | 39 | Requires: rc-scripts |
d492035c | 40 | |
41 | %description init | |
610a19ae JB |
42 | Init script for system-wide unison service. Don't run this unless you |
43 | know the security risks involved. | |
44 | ||
cdd1c2c2 JR |
45 | %description init -l pl.UTF-8 |
46 | Skrypt init dla ogólnosystemowej usługi unison. Nie należy go | |
47 | uruchamiać nie zdając sobie sprawy ze związanych z tym zagrożeń | |
48 | bezpieczeństwa. | |
d492035c | 49 | |
2adacf0b | 50 | %prep |
51 | %setup -q | |
52 | ||
53 | %build | |
0a596378 | 54 | %{__make} -j1 \ |
9121cce2 | 55 | UISTYLE=text |
2adacf0b | 56 | |
57 | %install | |
58 | rm -rf $RPM_BUILD_ROOT | |
6db5d200 | 59 | install -d $RPM_BUILD_ROOT{%{_bindir},/etc/rc.d/init.d} |
0a596378 ER |
60 | install -p unison $RPM_BUILD_ROOT%{_bindir} |
61 | install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} | |
2adacf0b | 62 | |
63 | %clean | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
0a596378 ER |
66 | %post init |
67 | /sbin/chkconfig --add %{name} | |
68 | %service %{name} restart | |
69 | ||
70 | %preun init | |
71 | if [ "$1" = "0" ]; then | |
72 | %service -q %{name} stop | |
73 | /sbin/chkconfig --del %{name} | |
74 | fi | |
75 | ||
2adacf0b | 76 | %files |
77 | %defattr(644,root,root,755) | |
e722fecf | 78 | %doc README BUGS.txt CONTRIB NEWS ROADMAP.txt TODO.txt |
0a596378 | 79 | %attr(755,root,root) %{_bindir}/%{name} |
d492035c | 80 | |
81 | %files init | |
610a19ae | 82 | %defattr(644,root,root,755) |
6db5d200 | 83 | %attr(754,root,root) /etc/rc.d/init.d/%{name} |