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