X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=autorpm.spec;h=689fade66b8478b390ce68e1b371c201d160575a;hb=2128f497049258c66377565918c617c74e166c05;hp=46b92be9166c150e92506ce8305470f511778584;hpb=5bb5e1014550d6406c8f8c0dc65eb8abefc855b3;p=packages%2Fautorpm.git diff --git a/autorpm.spec b/autorpm.spec index 46b92be..689fade 100644 --- a/autorpm.spec +++ b/autorpm.spec @@ -1,71 +1,77 @@ -Summary: RPM Auto-Installer or FTP Mirrorer -Summary(pl): RPM auto instalator i ftp moirror -Name: autorpm -Version: 1.6.1 -Release: 2 -Copyright: GPL -Group: Utilities/System -Source: ftp://ftp.kaybee.org/pub/linux/%{name}-%{version}.tar.gz -URL: http://www.kaybee.org/~kirk/html/linux.html -Requires: rpm, dialog, libnet, mailx -BuildRoot: /tmp/%{name}-%{version}-root +Summary: RPM Auto-Installer or FTP Mirrorer +Summary(pl.UTF-8): Automatyczny instalator i mirror FTP pakietów rpm +Name: autorpm +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: /bin/rpm +Requires: whiptail +# any reason for whiptail being duplicate? should be mentioned here. +Requires: /bin/mail +Requires: /usr/bin/whiptail +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. +%description -l pl.UTF-8 +AutoRPM jest programem, który może wykonywać dowolną kombinację +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,usr/{man/man{5,8},sbin},var/spool/autorpm} - -install autorpm.pl $RPM_BUILD_ROOT/usr/sbin/autorpm +install -d $RPM_BUILD_ROOT{/etc/cron.daily,%{_mandir}/man{5,8},%{_sbindir}} \ + $RPM_BUILD_ROOT{/var/spool/autorpm,%{_sysconfdir}/autorpm.d/pools} \ + $RPM_BUILD_ROOT%{_sysconfdir}/autorpm.d/addons -install autorpm.conf $RPM_BUILD_ROOT/etc/autorpm.conf.sample +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/usr/man/man5 -install autorpm.8 $RPM_BUILD_ROOT/usr/man/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 -ln -sf ../../usr/sbin/autorpm $RPM_BUILD_ROOT/etc/cron.daily/autorpm +sed -e "s=/bin/bash=/bin/sh=" autorpm.cron > $RPM_BUILD_ROOT/etc/cron.daily/autorpm %clean rm -rf $RPM_BUILD_ROOT %files -%attr(644, root, root, 755) -%doc README CHANGES CREDITS TODO +%defattr(644,root,root,755) +%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 -%attr(600, root, root) %config(missingok) /etc/autorpm.conf.sample -%attr(750, root, root) /usr/sbin/autorpm -%attr(644, root, man) /usr/man/man[58]/* -%attr(750, root, root) /etc/cron.daily/autorpm - -%changelog -* Wed Nov 13 1998 Tomasz K³oczko - [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 (allow build package from - non-root account). +%dir %{_sysconfdir}/autorpm.d +%dir %{_sysconfdir}/autorpm.d/pools +%dir %{_sysconfdir}/autorpm.d/addons +%config(missingok) %verify(not md5 mtime size) %{_sysconfdir}/autorpm.d/autorpm.conf +%config(missingok) %verify(not md5 mtime size) %{_sysconfdir}/autorpm.d/pld-updates.conf +%config(missingok) %verify(not md5 mtime size) %{_sysconfdir}/autorpm.d/pools/pld-updates -* Sun Mar 08 1998 Kirk Bauer -- initial release +%attr(755,root,root) %{_sbindir}/autorpm +%attr(750,root,root) /etc/cron.daily/autorpm