]>
Commit | Line | Data |
---|---|---|
1 | Summary: RPM Auto-Installer or FTP Mirrorer | |
2 | Summary(pl.UTF-8): Automatyczny instalator i mirror FTP pakietów rpm | |
3 | Name: autorpm | |
4 | Version: 3.3.3 | |
5 | Release: 0.2 | |
6 | License: GPL | |
7 | Group: Applications/System | |
8 | Source0: ftp://ftp.kaybee.org/pub/linux/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: 7d81dd57443223a184694378ab72b57b | |
10 | Source1: %{name}-pld-updates.conf | |
11 | Source2: %{name}-pld-updates | |
12 | Patch0: %{name}-config.patch | |
13 | URL: http://www.kaybee.org/~kirk/html/linux.html | |
14 | BuildRequires: rpm-perlprov | |
15 | Requires: /bin/rpm | |
16 | Requires: whiptail | |
17 | # any reason for whiptail being duplicate? should be mentioned here. | |
18 | Requires: /bin/mail | |
19 | Requires: /usr/bin/whiptail | |
20 | BuildArch: noarch | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | AutoRPM is a program that can do any combination of the following: | |
25 | mirror RPMs from an FTP site, keep installed RPMs consistent with an | |
26 | FTP site or local directory, and keep installed RPMs in a cluster or | |
27 | network of systems consistent. It is highly flexible and even contains | |
28 | a very nice, menu-driven Interactive-Install mode. | |
29 | ||
30 | %description -l pl.UTF-8 | |
31 | AutoRPM jest programem, który może wykonywać dowolną kombinację | |
32 | następujących czynności: mirrorowanie pakietów rpm z podanego adresu | |
33 | serwera FTP, aktualizowanie bazy zainstalowanych pakietów względem | |
34 | zawartości serwera FTP lub katalogu lokalnego. Autorpm jest dość łatwo | |
35 | konfigurowalny i posiada dość duże możliwości. Można go używać w | |
36 | trybie wsadowym i interakcyjnym gdzie posiada dość przyjemny | |
37 | interfejs. | |
38 | ||
39 | %prep | |
40 | %setup -q | |
41 | %patch0 -p1 | |
42 | ||
43 | %install | |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | install -d $RPM_BUILD_ROOT{/etc/cron.daily,%{_mandir}/man{5,8},%{_sbindir}} \ | |
46 | $RPM_BUILD_ROOT{/var/spool/autorpm,%{_sysconfdir}/autorpm.d/pools} \ | |
47 | $RPM_BUILD_ROOT%{_sysconfdir}/autorpm.d/addons | |
48 | ||
49 | install autorpm.pl $RPM_BUILD_ROOT%{_sbindir}/autorpm | |
50 | install autorpm.d/sample_configs/autorpm.conf-sample $RPM_BUILD_ROOT%{_sysconfdir}/autorpm.d/autorpm.conf | |
51 | ||
52 | install man/autorpm.conf.5 $RPM_BUILD_ROOT%{_mandir}/man5 | |
53 | install man/autorpm.8 $RPM_BUILD_ROOT%{_mandir}/man8 | |
54 | install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/autorpm.d/pld-updates.conf | |
55 | install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/autorpm.d/pools/pld-updates | |
56 | ||
57 | sed -e "s=/bin/bash=/bin/sh=" autorpm.cron > $RPM_BUILD_ROOT/etc/cron.daily/autorpm | |
58 | ||
59 | %clean | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
64 | %doc docs/{README,CREDITS,queue.format} project/{CHANGES,TODO} autorpm.d/support/{tips,introduction.txt} | |
65 | %doc autorpm.d/sample_configs | |
66 | %{_mandir}/man[58]/* | |
67 | %defattr(640,root,root,750) | |
68 | %dir /var/spool/autorpm | |
69 | %dir %{_sysconfdir}/autorpm.d | |
70 | %dir %{_sysconfdir}/autorpm.d/pools | |
71 | %dir %{_sysconfdir}/autorpm.d/addons | |
72 | %config(missingok) %verify(not md5 mtime size) %{_sysconfdir}/autorpm.d/autorpm.conf | |
73 | %config(missingok) %verify(not md5 mtime size) %{_sysconfdir}/autorpm.d/pld-updates.conf | |
74 | %config(missingok) %verify(not md5 mtime size) %{_sysconfdir}/autorpm.d/pools/pld-updates | |
75 | ||
76 | %attr(755,root,root) %{_sbindir}/autorpm | |
77 | %attr(750,root,root) /etc/cron.daily/autorpm |