]> git.pld-linux.org Git - packages/autorpm.git/blobdiff - autorpm.spec
- rel 0.2
[packages/autorpm.git] / autorpm.spec
index 5651ba556dca7cbbbcbe0f38423164f595f665c5..ba6a2a4fb675c58e7a6f173531b16d9258e43e69 100644 (file)
@@ -1,72 +1,78 @@
 %include       /usr/lib/rpm/macros.perl
 Summary:       RPM Auto-Installer or FTP Mirrorer
-Summary(pl):   Auto instalator i ftp mirror pakietow rpm
+Summary(pl):   Automatyczny instalator i mirror FTP pakietów rpm
 Name:          autorpm
-Version:       1.9.8.1
-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.3
+Release:       0.2
+License:       GPL
+Group:         Applications/System
+Source0:       ftp://ftp.kaybee.org/pub/linux/%{name}-%{version}.tar.gz
+# Source0-md5: 7d81dd57443223a184694378ab72b57b
+Source1:       %{name}-pld-updates.conf
+Source2:       %{name}-pld-updates
+Patch0:                %{name}-config.patch
 URL:           http://www.kaybee.org/~kirk/html/linux.html
+BuildRequires: rpm-perlprov
+Requires:      whiptail
 Requires:      /bin/rpm
+# any reason for whiptail being duplicate? should be mentioned here.
 Requires:      /usr/bin/whiptail
-BuildRoot:     /tmp/%{name}-%{version}-root
+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,/etc/autorpm.d/pools}
+       $RPM_BUILD_ROOT{/var/spool/autorpm,%{_sysconfdir}/autorpm.d/pools} \
+       $RPM_BUILD_ROOT%{_sysconfdir}/autorpm.d/addons
 
-install autorpm.pl $RPM_BUILD_ROOT%{_sbindir}/autorpm
-install autorpm.conf $RPM_BUILD_ROOT/etc/autorpm.d/autorpm.conf.sample
-touch $RPM_BUILD_ROOT/etc/autorpm.d/autorpm.conf
-install autorpm.d/* $RPM_BUILD_ROOT/etc/autorpm.d/
-install pools/* $RPM_BUILD_ROOT/etc/autorpm.d/pools/
+install autorpm.pl                                     $RPM_BUILD_ROOT%{_sbindir}/autorpm
+install autorpm.d/sample_configs/autorpm.conf-sample   $RPM_BUILD_ROOT%{_sysconfdir}/autorpm.d/autorpm.conf
 
-install autorpm.conf.5 $RPM_BUILD_ROOT%{_mandir}/man5
-install autorpm.8 $RPM_BUILD_ROOT%{_mandir}/man8
+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
 
 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
-
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%doc {README,CHANGES,CREDITS,TODO}.gz
+%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 /etc/autorpm.d
-%dir /etc/autorpm.d/pools
-%config(missingok) %verify(not mtime,md5,size) /etc/autorpm.d/autorpm.conf.sample
-%ghost /etc/autorpm.d/autorpm.conf
-%config(missingok) %verify(not mtime,md5,size) /etc/autorpm.d/*updates
-%config(missingok) %verify(not mtime,md5,size) /etc/autorpm.d/pools/*updates
+%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
 
-%attr(750,root,root) %{_sbindir}/autorpm
+%attr(755,root,root) %{_sbindir}/autorpm
 %attr(750,root,root) /etc/cron.daily/autorpm
This page took 0.078055 seconds and 4 git commands to generate.