]> git.pld-linux.org Git - packages/unison.git/blob - unison.spec
- updated to 2.40.102
[packages/unison.git] / unison.spec
1 # TODO
2 # - gtk ui
3 # - make calls missing etags
4 Summary:        Program for bidirectional synchronization
5 Summary(pl.UTF-8):      Program do synchronizacji dwukierunkowej
6 Name:           unison
7 Version:        2.40.102
8 Release:        1
9 License:        GPL
10 Group:          Daemons
11 Source0:        http://www.cis.upenn.edu/~bcpierce/unison/download/releases/stable/%{name}-%{version}.tar.gz
12 # Source0-md5:  42caf869f40440ed0e75eef07a605b2e
13 Source1:        %{name}.init
14 URL:            http://www.cis.upenn.edu/~bcpierce/unison/
15 BuildRequires:  ocaml
16 BuildRequires:  rpmbuild(macros) >= 1.228
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
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
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
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.
32
33 %package init
34 Summary:        Init script for system-wide unison service
35 Summary(pl.UTF-8):      Skrypt init dla ogólnosystemowej usługi unison
36 Group:          Daemons
37 Requires(post,preun):   /sbin/chkconfig
38 Requires:       %{name} = %{version}-%{release}
39 Requires:       rc-scripts
40
41 %description init
42 Init script for system-wide unison service. Don't run this unless you
43 know the security risks involved.
44
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.
49
50 %prep
51 %setup -q
52
53 %build
54 %{__make} -j1 \
55         UISTYLE=text
56
57 %install
58 rm -rf $RPM_BUILD_ROOT
59 install -d $RPM_BUILD_ROOT{%{_bindir},/etc/rc.d/init.d}
60 install -p unison $RPM_BUILD_ROOT%{_bindir}
61 install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
62
63 %clean
64 rm -rf $RPM_BUILD_ROOT
65
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
76 %files
77 %defattr(644,root,root,755)
78 %doc README BUGS.txt CONTRIB NEWS ROADMAP.txt TODO.txt
79 %attr(755,root,root) %{_bindir}/%{name}
80
81 %files init
82 %defattr(644,root,root,755)
83 %attr(754,root,root) /etc/rc.d/init.d/%{name}
This page took 0.373132 seconds and 3 git commands to generate.