]> git.pld-linux.org Git - packages/autorpm.git/blobdiff - autorpm.spec
- release 4
[packages/autorpm.git] / autorpm.spec
index 3c0b4f16cd821bb62872b0482d1a709cf9629aa6..e6c7203643f66c45734dd642576953a2e780655b 100644 (file)
@@ -1,33 +1,35 @@
+%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
+Version:       1.9.8.4
+Release:       4
+License:       GPL
 Group:         Utilities/System
 Group(pl):     Narzêdzia/System
-Source:                ftp://ftp.kaybee.org/pub/linux/%{name}-%{version}.tar.gz
+Source0:       ftp://ftp.kaybee.org/pub/linux/%{name}-%{version}.tar.gz
 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
+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
+serwea 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
@@ -37,15 +39,18 @@ interakcyjnym gdzie posiada do
 %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
+       $RPM_BUILD_ROOT{/var/spool/autorpm,%{_sysconfdir}/autorpm.d/pools}
 
-install autorpm.pl $RPM_BUILD_ROOT%{_sbindir}/autorpm
-install autorpm.conf $RPM_BUILD_ROOT/etc/autorpm.conf.sample
+install autorpm.pl     $RPM_BUILD_ROOT%{_sbindir}/autorpm
+install autorpm.conf   $RPM_BUILD_ROOT%{_sysconfdir}/autorpm.d/autorpm.conf.sample
+touch $RPM_BUILD_ROOT%{_sysconfdir}/autorpm.d/autorpm.conf
+install autorpm.d/*    $RPM_BUILD_ROOT%{_sysconfdir}/autorpm.d/
+install pools/*        $RPM_BUILD_ROOT%{_sysconfdir}/autorpm.d/pools/
 
-install autorpm.conf.5 $RPM_BUILD_ROOT%{_mandir}/man5
-install autorpm.8 $RPM_BUILD_ROOT%{_mandir}/man8
+install autorpm.conf.5         $RPM_BUILD_ROOT%{_mandir}/man5
+install autorpm.8      $RPM_BUILD_ROOT%{_mandir}/man8
 
-ln -sf ../..%{_sbindir}/autorpm $RPM_BUILD_ROOT/etc/cron.daily/autorpm
+sed  -e "s=/bin/bash=/bin/sh=" autorpm.cron > $RPM_BUILD_ROOT/etc/cron.daily/autorpm
 
 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man*/* \
        README CHANGES CREDITS TODO
@@ -56,28 +61,15 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc {README,CHANGES,CREDITS,TODO}.gz
+%{_mandir}/man[58]/*
+%defattr(640,root,root,750)
 %dir /var/spool/autorpm
-%attr(600,root,root) %config(missingok) /etc/autorpm.conf.sample
+%dir %{_sysconfdir}/autorpm.d
+%dir %{_sysconfdir}/autorpm.d/pools
+%config(missingok) %verify(not mtime,md5,size) %{_sysconfdir}/autorpm.d/autorpm.conf.sample
+%ghost %{_sysconfdir}/autorpm.d/autorpm.conf
+%config(missingok) %verify(not mtime,md5,size) %{_sysconfdir}/autorpm.d/*updates*
+%config(missingok) %verify(not mtime,md5,size) %{_sysconfdir}/autorpm.d/pools/*updates*
+
 %attr(750,root,root) %{_sbindir}/autorpm
 %attr(750,root,root) /etc/cron.daily/autorpm
-%{_mandir}/man[58]/*
-
-%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
This page took 0.202776 seconds and 4 git commands to generate.