+%include /usr/lib/rpm/macros.perl
Summary: RPM Auto-Installer or FTP Mirrorer
Summary(pl): Auto instalator i ftp mirror pakietow rpm
Name: autorpm
-Version: 1.8
-Release: 1
-Copyright: GPL
-Group: Utilities/System
-Group(pl): Narzêdzia/System
-Source: ftp://ftp.kaybee.org/pub/linux/%{name}-%{version}.tar.gz
+Version: 3.3.2
+Release: 0.1
+License: GPL
+Group: Applications/System
+Source0: ftp://ftp.kaybee.org/pub/linux/%{name}-%{version}.tar.gz
+# Source0-md5: c1c69f35c3655783f1071b5d855925f6
+Source1: %{name}-pld-updates.conf
+Source2: %{name}-pld-updates
+Patch0: %{name}-config.patch
URL: http://www.kaybee.org/~kirk/html/linux.html
-Requires: rpm
-Requires: dialog
-Requires: libnet
-Requires: mailx
-BuildRoot: /tmp/%{name}-%{version}-root
+Requires: whiptail
+Requires: /bin/rpm
+Requires: /usr/bin/whiptail
+Requires: /bin/mail
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
-AutoRPM is a program that can do any combination of the following: mirror
-RPMs from an FTP site, keep installed RPMs consistent with an FTP site or
-local directory, and keep installed RPMs in a cluster or network of systems
-consistent. It is highly flexible and even contains a very nice, menu-driven
-Interactive-Install mode.
+AutoRPM is a program that can do any combination of the following:
+mirror RPMs from an FTP site, keep installed RPMs consistent with an
+FTP site or local directory, and keep installed RPMs in a cluster or
+network of systems consistent. It is highly flexible and even contains
+a very nice, menu-driven Interactive-Install mode.
%description -l pl
AutoRPM jest programem, który mo¿e wykonywaæ dowoln± kombinacjê
-nastêpuj±cych czynno¶ci: mirrorowanie pakietów rpm z podanego adresu serwea
-ftp, aktualizowanie bazy zainstalowanych pakietów wzglêdem zawarto¶ci
-serwera ftp lub katalogu lokalnego. Autorpm jest do¶æ ³±two konfigurowalny i
-posiada do¶æ du¿e mo¿liwo¶ci. Mo¿na go u¿ywaæ w trybie wsadowym i
-interakcyjnym gdzie posiada do¶æ przyjemny interfejs.
+nastêpuj±cych czynno¶ci: mirrorowanie pakietów rpm z podanego adresu
+serwera ftp, aktualizowanie bazy zainstalowanych pakietów wzglêdem
+zawarto¶ci serwera ftp lub katalogu lokalnego. Autorpm jest do¶æ ³atwo
+konfigurowalny i posiada do¶æ du¿e mo¿liwo¶ci. Mo¿na go u¿ywaæ w
+trybie wsadowym i interakcyjnym gdzie posiada do¶æ przyjemny
+interfejs.
%prep
%setup -q
-
-%build
+%patch0 -p1
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{/etc/cron.daily,%{_mandir}/man{5,8},%{_sbindir}} \
- $RPM_BUILD_ROOT/var/spool/autorpm
-
-install autorpm.pl $RPM_BUILD_ROOT%{_sbindir}/autorpm
-install autorpm.conf $RPM_BUILD_ROOT/etc/autorpm.conf.sample
+ $RPM_BUILD_ROOT{/var/spool/autorpm,%{_sysconfdir}/autorpm.d/pools} \
+ $RPM_BUILD_ROOT%{_sysconfdir}/autorpm.d/addons
-install autorpm.conf.5 $RPM_BUILD_ROOT%{_mandir}/man5
-install autorpm.8 $RPM_BUILD_ROOT%{_mandir}/man8
+install autorpm.pl $RPM_BUILD_ROOT%{_sbindir}/autorpm
+install autorpm.d/sample_configs/autorpm.conf-sample $RPM_BUILD_ROOT%{_sysconfdir}/autorpm.d/autorpm.conf
-ln -sf ../..%{_sbindir}/autorpm $RPM_BUILD_ROOT/etc/cron.daily/autorpm
+install man/autorpm.conf.5 $RPM_BUILD_ROOT%{_mandir}/man5
+install man/autorpm.8 $RPM_BUILD_ROOT%{_mandir}/man8
+install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/autorpm.d/pld-updates.conf
+install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/autorpm.d/pools/pld-updates
-gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
- README CHANGES CREDITS TODO
+sed -e "s=/bin/bash=/bin/sh=" autorpm.cron > $RPM_BUILD_ROOT/etc/cron.daily/autorpm
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc {README,CHANGES,CREDITS,TODO}.gz
-%dir /var/spool/autorpm
-%attr(600,root,root) %config(missingok) /etc/autorpm.conf.sample
-%attr(750,root,root) %{_sbindir}/autorpm
-%attr(750,root,root) /etc/cron.daily/autorpm
+%doc docs/{README,CREDITS,queue.format} project/{CHANGES,TODO} autorpm.d/support/{tips,introduction.txt}
+%doc autorpm.d/sample_configs
%{_mandir}/man[58]/*
+%defattr(640,root,root,750)
+%dir /var/spool/autorpm
+%dir %{_sysconfdir}/autorpm.d
+%dir %{_sysconfdir}/autorpm.d/pools
+%dir %{_sysconfdir}/autorpm.d/addons
+%config(missingok) %verify(not mtime,md5,size) %{_sysconfdir}/autorpm.d/autorpm.conf
+%config(missingok) %verify(not mtime,md5,size) %{_sysconfdir}/autorpm.d/pld-updates.conf
+%config(missingok) %verify(not mtime,md5,size) %{_sysconfdir}/autorpm.d/pools/pld-updates
-%changelog
-* Wed Jan 26 1999 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
- [1.7.1-1d]
-- added gzipping man pages,
-- added bzipping2 %doc,
-
-* Wed Nov 13 1998 Tomasz K³oczko <kloczek@rudy.mif.pg.gda.pl>
- [1.6.1-2]
-- added -q %setup parameter,
-- changed Buildroot to /tmp/%%{name}-%%{version}-root,
-- added using %%{name} and %%{version} in Source,
-- removed %postun,
-- added pl translation,
-- simplification in %install and %files,
-- added %attr and %defattr macros in %files (allows build package from
- non-root account).
-
-* Sun Mar 08 1998 Kirk Bauer <kirk@kaybee.org>
-- initial release
+%attr(755,root,root) %{_sbindir}/autorpm
+%attr(750,root,root) /etc/cron.daily/autorpm