]>
Commit | Line | Data |
---|---|---|
fee59d64 | 1 | Summary: RPM Auto-Installer or FTP Mirrorer |
14af214e | 2 | Summary(pl.UTF-8): Automatyczny instalator i mirror FTP pakietów rpm |
fee59d64 | 3 | Name: autorpm |
0ee7a494 | 4 | Version: 3.3.3 |
ba703764 | 5 | Release: 0.2 |
bdaecd23 | 6 | License: GPL |
f26eabc0 | 7 | Group: Applications/System |
bdaecd23 | 8 | Source0: ftp://ftp.kaybee.org/pub/linux/%{name}-%{version}.tar.gz |
0ee7a494 | 9 | # Source0-md5: 7d81dd57443223a184694378ab72b57b |
464ba72c RW |
10 | Source1: %{name}-pld-updates.conf |
11 | Source2: %{name}-pld-updates | |
12 | Patch0: %{name}-config.patch | |
fee59d64 | 13 | URL: http://www.kaybee.org/~kirk/html/linux.html |
c618ae8d | 14 | BuildRequires: rpm-perlprov |
e0d7b228 | 15 | Requires: /bin/rpm |
bd77e25a | 16 | Requires: whiptail |
ba703764 | 17 | # any reason for whiptail being duplicate? should be mentioned here. |
4a5790a1 | 18 | Requires: /bin/mail |
bd77e25a | 19 | Requires: /usr/bin/whiptail |
b16236ad | 20 | BuildArch: noarch |
3d475c31 | 21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
5bb5e101 | 22 | |
23 | %description | |
e1e12805 | 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. | |
5bb5e101 | 29 | |
3d71c6e6 JR |
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 | |
e1e12805 | 37 | interfejs. |
5bb5e101 | 38 | |
39 | %prep | |
40 | %setup -q | |
464ba72c | 41 | %patch0 -p1 |
5bb5e101 | 42 | |
5bb5e101 | 43 | %install |
44 | rm -rf $RPM_BUILD_ROOT | |
2cea22c2 | 45 | install -d $RPM_BUILD_ROOT{/etc/cron.daily,%{_mandir}/man{5,8},%{_sbindir}} \ |
8f30b8d5 RW |
46 | $RPM_BUILD_ROOT{/var/spool/autorpm,%{_sysconfdir}/autorpm.d/pools} \ |
47 | $RPM_BUILD_ROOT%{_sysconfdir}/autorpm.d/addons | |
5bb5e101 | 48 | |
013a7877 | 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 | |
5bb5e101 | 51 | |
013a7877 | 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 | |
5bb5e101 | 56 | |
e0d7b228 | 57 | sed -e "s=/bin/bash=/bin/sh=" autorpm.cron > $RPM_BUILD_ROOT/etc/cron.daily/autorpm |
5bb5e101 | 58 | |
59 | %clean | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %files | |
fee59d64 | 63 | %defattr(644,root,root,755) |
013a7877 | 64 | %doc docs/{README,CREDITS,queue.format} project/{CHANGES,TODO} autorpm.d/support/{tips,introduction.txt} |
65 | %doc autorpm.d/sample_configs | |
e0d7b228 AF |
66 | %{_mandir}/man[58]/* |
67 | %defattr(640,root,root,750) | |
5bb5e101 | 68 | %dir /var/spool/autorpm |
bdaecd23 | 69 | %dir %{_sysconfdir}/autorpm.d |
70 | %dir %{_sysconfdir}/autorpm.d/pools | |
8f30b8d5 | 71 | %dir %{_sysconfdir}/autorpm.d/addons |
7de02c3a ER |
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 | |
e0d7b228 | 75 | |
bf6a2499 | 76 | %attr(755,root,root) %{_sbindir}/autorpm |
fee59d64 | 77 | %attr(750,root,root) /etc/cron.daily/autorpm |