]> git.pld-linux.org Git - packages/rdist.git/blob - rdist.spec
- release 14
[packages/rdist.git] / rdist.spec
1 Summary:        Maintains identical copies of files on multiple machines
2 Name:           rdist
3 Version:        6.1.5
4 Release:        14
5 License:        BSD
6 Group:          Utilities/System
7 Group(pl):      Narzêdzia/System
8 Source0:        http://www.MagniComp.com/download/rdist/%{name}-%{version}.tar.gz
9 Source1:        rdist-eu-license.txt
10 Patch0:         rdist-linux.patch
11 Patch1:         rdist-links.patch
12 Patch2:         rdist-oldpath.patch
13 Patch3:         rdist-hardlink.patch
14 Patch4:         rdist-glibc.patch
15 Patch5:         rdist-ostype.patch
16 URL:            http://www.MagniComp.com/rdist
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 The rdist program maintains identical copies of files on multiple
21 hosts. If possible, rdist will preserve the owner, group, mode and
22 mtime of files and it can update programs that are executing.
23
24 %prep
25 %setup -q
26 %patch0 -p1
27 %patch1 -p1
28 %patch2 -p1
29 %patch3 -p1
30 %patch4 -p1
31 %patch5 -p1
32
33 %build
34 %{__make} OPT="$RPM_OPT_FLAGS"
35
36 %install
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man{1,8},%{_sbindir}}
39
40 install -s src/rdist $RPM_BUILD_ROOT%{_bindir}
41 install -s src/rdistd $RPM_BUILD_ROOT%{_sbindir}
42 ln -sf ../sbin/rdistd $RPM_BUILD_ROOT%{_bindir}/rdistd
43
44 install doc/rdist.man $RPM_BUILD_ROOT%{_mandir}/man1/rdist.1
45 install doc/rdistd.man $RPM_BUILD_ROOT%{_mandir}/man8/rdist.8
46
47 install %{SOURCE1} doc/
48
49 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* doc/rdist-eu-license.txt README
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 %files
55 %defattr(644,root,root,755)
56 %doc README.gz doc/rdist-eu-license.txt.gz
57 %attr(755,root,root) %{_bindir}/rdist
58 %attr(755,root,root) %{_bindir}/rdistd
59 %attr(755,root,root) %{_sbindir}/rdistd
60 %{_mandir}/man[18]/*
This page took 0.024709 seconds and 3 git commands to generate.