1 %include /usr/lib/rpm/macros.perl
2 Summary: RPM Auto-Installer or FTP Mirrorer
3 Summary(pl): Auto instalator i ftp mirror pakietow rpm
8 Group: Utilities/System
9 Group(pl): Narzêdzia/System
10 Source: ftp://ftp.kaybee.org/pub/linux/%{name}-%{version}.tar.gz
11 URL: http://www.kaybee.org/~kirk/html/linux.html
13 Requires: /usr/bin/whiptail
15 BuildRoot: /tmp/%{name}-%{version}-root
18 AutoRPM is a program that can do any combination of the following: mirror
19 RPMs from an FTP site, keep installed RPMs consistent with an FTP site or
20 local directory, and keep installed RPMs in a cluster or network of systems
21 consistent. It is highly flexible and even contains a very nice, menu-driven
22 Interactive-Install mode.
25 AutoRPM jest programem, który mo¿e wykonywaæ dowoln± kombinacjê
26 nastêpuj±cych czynno¶ci: mirrorowanie pakietów rpm z podanego adresu serwea
27 ftp, aktualizowanie bazy zainstalowanych pakietów wzglêdem zawarto¶ci
28 serwera ftp lub katalogu lokalnego. Autorpm jest do¶æ ³atwo konfigurowalny i
29 posiada do¶æ du¿e mo¿liwo¶ci. Mo¿na go u¿ywaæ w trybie wsadowym i
30 interakcyjnym gdzie posiada do¶æ przyjemny interfejs.
38 rm -rf $RPM_BUILD_ROOT
39 install -d $RPM_BUILD_ROOT{/etc/cron.daily,%{_mandir}/man{5,8},%{_sbindir}} \
40 $RPM_BUILD_ROOT{/var/spool/autorpm,/etc/autorpm.d/pools}
42 install autorpm.pl $RPM_BUILD_ROOT%{_sbindir}/autorpm
43 install autorpm.conf $RPM_BUILD_ROOT/etc/autorpm.d/autorpm.conf.sample
44 touch $RPM_BUILD_ROOT/etc/autorpm.d/autorpm.conf
45 install autorpm.d/* $RPM_BUILD_ROOT/etc/autorpm.d/
46 install pools/* $RPM_BUILD_ROOT/etc/autorpm.d/pools/
48 install autorpm.conf.5 $RPM_BUILD_ROOT%{_mandir}/man5
49 install autorpm.8 $RPM_BUILD_ROOT%{_mandir}/man8
51 sed -e "s=/bin/bash=/bin/sh=" autorpm.cron > $RPM_BUILD_ROOT/etc/cron.daily/autorpm
53 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
54 README CHANGES CREDITS TODO
57 rm -rf $RPM_BUILD_ROOT
60 %defattr(644,root,root,755)
61 %doc {README,CHANGES,CREDITS,TODO}.gz
63 %defattr(640,root,root,750)
64 %dir /var/spool/autorpm
66 %dir /etc/autorpm.d/pools
67 %config(missingok) %verify(not mtime,md5,size) /etc/autorpm.d/autorpm.conf.sample
68 %ghost /etc/autorpm.d/autorpm.conf
69 %config(missingok) %verify(not mtime,md5,size) /etc/autorpm.d/*updates*
70 %config(missingok) %verify(not mtime,md5,size) /etc/autorpm.d/pools/*updates*
72 %attr(750,root,root) %{_sbindir}/autorpm
73 %attr(750,root,root) /etc/cron.daily/autorpm