ea2dbf979309d75c6c0fbac4ca6e4d59f49eaf38
[packages/autorpm.git] / autorpm.spec
1 %include        /usr/lib/rpm/macros.perl
2 Summary:        RPM Auto-Installer or FTP Mirrorer
3 Summary(pl):    Automatyczny instalator i mirror FTP pakietów rpm
4 Name:           autorpm
5 Version:        3.3.3
6 Release:        0.1
7 License:        GPL
8 Group:          Applications/System
9 Source0:        ftp://ftp.kaybee.org/pub/linux/%{name}-%{version}.tar.gz
10 # Source0-md5:  7d81dd57443223a184694378ab72b57b
11 Source1:        %{name}-pld-updates.conf
12 Source2:        %{name}-pld-updates
13 Patch0:         %{name}-config.patch
14 URL:            http://www.kaybee.org/~kirk/html/linux.html
15 BuildRequires:  rpm-perlprov
16 Requires:       whiptail
17 Requires:       /bin/rpm
18 Requires:       /usr/bin/whiptail
19 Requires:       /bin/mail
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 AutoRPM is a program that can do any combination of the following:
25 mirror RPMs from an FTP site, keep installed RPMs consistent with an
26 FTP site or local directory, and keep installed RPMs in a cluster or
27 network of systems consistent. It is highly flexible and even contains
28 a very nice, menu-driven Interactive-Install mode.
29
30 %description -l pl
31 AutoRPM jest programem, który mo¿e wykonywaæ dowoln± kombinacjê
32 nastêpuj±cych czynno¶ci: mirrorowanie pakietów rpm z podanego adresu
33 serwera FTP, aktualizowanie bazy zainstalowanych pakietów wzglêdem
34 zawarto¶ci serwera FTP lub katalogu lokalnego. Autorpm jest do¶æ ³atwo
35 konfigurowalny i posiada do¶æ du¿e mo¿liwo¶ci. Mo¿na go u¿ywaæ w
36 trybie wsadowym i interakcyjnym gdzie posiada do¶æ przyjemny
37 interfejs.
38
39 %prep
40 %setup -q
41 %patch0 -p1
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT{/etc/cron.daily,%{_mandir}/man{5,8},%{_sbindir}} \
46         $RPM_BUILD_ROOT{/var/spool/autorpm,%{_sysconfdir}/autorpm.d/pools} \
47         $RPM_BUILD_ROOT%{_sysconfdir}/autorpm.d/addons
48
49 install autorpm.pl                                      $RPM_BUILD_ROOT%{_sbindir}/autorpm
50 install autorpm.d/sample_configs/autorpm.conf-sample    $RPM_BUILD_ROOT%{_sysconfdir}/autorpm.d/autorpm.conf
51
52 install man/autorpm.conf.5      $RPM_BUILD_ROOT%{_mandir}/man5
53 install man/autorpm.8           $RPM_BUILD_ROOT%{_mandir}/man8
54 install %{SOURCE1}              $RPM_BUILD_ROOT%{_sysconfdir}/autorpm.d/pld-updates.conf
55 install %{SOURCE2}              $RPM_BUILD_ROOT%{_sysconfdir}/autorpm.d/pools/pld-updates
56
57 sed  -e "s=/bin/bash=/bin/sh=" autorpm.cron > $RPM_BUILD_ROOT/etc/cron.daily/autorpm
58
59 %clean
60 rm -rf $RPM_BUILD_ROOT
61
62 %files
63 %defattr(644,root,root,755)
64 %doc docs/{README,CREDITS,queue.format} project/{CHANGES,TODO} autorpm.d/support/{tips,introduction.txt}
65 %doc autorpm.d/sample_configs
66 %{_mandir}/man[58]/*
67 %defattr(640,root,root,750)
68 %dir /var/spool/autorpm
69 %dir %{_sysconfdir}/autorpm.d
70 %dir %{_sysconfdir}/autorpm.d/pools
71 %dir %{_sysconfdir}/autorpm.d/addons
72 %config(missingok) %verify(not mtime,md5,size) %{_sysconfdir}/autorpm.d/autorpm.conf
73 %config(missingok) %verify(not mtime,md5,size) %{_sysconfdir}/autorpm.d/pld-updates.conf
74 %config(missingok) %verify(not mtime,md5,size) %{_sysconfdir}/autorpm.d/pools/pld-updates
75
76 %attr(755,root,root) %{_sbindir}/autorpm
77 %attr(750,root,root) /etc/cron.daily/autorpm
This page took 0.06308 seconds and 2 git commands to generate.