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
14 BuildRoot: /tmp/%{name}-%{version}-root
17 AutoRPM is a program that can do any combination of the following: mirror
18 RPMs from an FTP site, keep installed RPMs consistent with an FTP site or
19 local directory, and keep installed RPMs in a cluster or network of systems
20 consistent. It is highly flexible and even contains a very nice, menu-driven
21 Interactive-Install mode.
24 AutoRPM jest programem, który mo¿e wykonywaæ dowoln± kombinacjê
25 nastêpuj±cych czynno¶ci: mirrorowanie pakietów rpm z podanego adresu serwea
26 ftp, aktualizowanie bazy zainstalowanych pakietów wzglêdem zawarto¶ci
27 serwera ftp lub katalogu lokalnego. Autorpm jest do¶æ ³±two konfigurowalny i
28 posiada do¶æ du¿e mo¿liwo¶ci. Mo¿na go u¿ywaæ w trybie wsadowym i
29 interakcyjnym gdzie posiada do¶æ przyjemny interfejs.
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT{/etc/cron.daily,%{_mandir}/man{5,8},%{_sbindir}} \
39 $RPM_BUILD_ROOT{/var/spool/autorpm,/etc/autorpm.d/pools}
41 install autorpm.pl $RPM_BUILD_ROOT%{_sbindir}/autorpm
42 install autorpm.conf $RPM_BUILD_ROOT/etc/autorpm.d/autorpm.conf.sample
43 touch $RPM_BUILD_ROOT/etc/autorpm.d/autorpm.conf
44 install autorpm.d/* $RPM_BUILD_ROOT/etc/autorpm.d/
45 install pools/* $RPM_BUILD_ROOT/etc/autorpm.d/pools/
47 install autorpm.conf.5 $RPM_BUILD_ROOT%{_mandir}/man5
48 install autorpm.8 $RPM_BUILD_ROOT%{_mandir}/man8
50 sed -e "s=/bin/bash=/bin/sh=" autorpm.cron > $RPM_BUILD_ROOT/etc/cron.daily/autorpm
52 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
53 README CHANGES CREDITS TODO
56 rm -rf $RPM_BUILD_ROOT
59 %defattr(644,root,root,755)
60 %doc {README,CHANGES,CREDITS,TODO}.gz
62 %defattr(640,root,root,750)
63 %dir /var/spool/autorpm
65 %dir /etc/autorpm.d/pools
66 %config(missingok) %verify(not mtime,md5,size) /etc/autorpm.d/autorpm.conf.sample
67 %ghost /etc/autorpm.d/autorpm.conf
68 %config(missingok) %verify(not mtime,md5,size) /etc/autorpm.d/*updates
69 %config(missingok) %verify(not mtime,md5,size) /etc/autorpm.d/pools/*updates
71 %attr(750,root,root) %{_sbindir}/autorpm
72 %attr(750,root,root) /etc/cron.daily/autorpm