]>
Commit | Line | Data |
---|---|---|
1 | # TODO: | |
2 | # - fix version information (2.6 is Linux version) | |
3 | # - move databases to /var/lib, fix paths in arcaupdate | |
4 | # | |
5 | Summary: An anti-virus utility for Unix | |
6 | Summary(pl.UTF-8): Narzędzie antywirusowe dla Uniksów | |
7 | Name: arcacmd | |
8 | Version: 2.6 | |
9 | Release: 0.1 | |
10 | License: restricted or commercial (see COPYING* files) | |
11 | Group: Applications | |
12 | Source0: http://arcabit.pl/download/linux/%{name}-linux%{version}-bundle-20060731.tgz | |
13 | # Source0-md5: ffc56e252fbb05b60fa80255140a81d8 | |
14 | URL: http://arcabit.pl/ | |
15 | Requires: libstdc++ >= 5:3.4 | |
16 | ExclusiveArch: %{ix86} | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | Arcavir is anti-virus scanner for Unix. | |
21 | ||
22 | %description -l pl.UTF-8 | |
23 | Arcavir jest skanerem antywirusowym dla systemów uniksowych. | |
24 | ||
25 | %package bases | |
26 | Summary: Arcavir Antivirus databases | |
27 | Summary(pl.UTF-8): Bazy antywirusowe arcavir | |
28 | Group: Applications | |
29 | Requires: %{name} = %{version}-%{release} | |
30 | ||
31 | %description bases | |
32 | This package contains antivirus databases. | |
33 | ||
34 | %description bases -l pl.UTF-8 | |
35 | Pakiet ten zawiera bazy antywirusowe. | |
36 | ||
37 | %package updater | |
38 | Summary: Arcavir Antivirus database updater | |
39 | Summary(pl.UTF-8): Aktualizator baz antywirusowych arcavir | |
40 | Group: Applications | |
41 | Requires: %{name} = %{version}-%{release} | |
42 | Requires: /usr/bin/wget | |
43 | Requires: bc | |
44 | Requires: coreutils | |
45 | ||
46 | %description updater | |
47 | This package contains antivirus databases updater. | |
48 | ||
49 | %description updater -l pl.UTF-8 | |
50 | Pakiet ten zawiera aktualizator baz antywirusowych. | |
51 | ||
52 | %prep | |
53 | %setup -q -n inst | |
54 | ||
55 | %install | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | install -d $RPM_BUILD_ROOT{%{_datadir}/arcacmd/bases/tmp,%{_bindir},%{_sbindir},%{_mandir}/man1,%{_sysconfdir}} | |
58 | ||
59 | cd files | |
60 | install arcacmd $RPM_BUILD_ROOT%{_bindir} | |
61 | install arcaupdate $RPM_BUILD_ROOT%{_sbindir} | |
62 | cd docs | |
63 | gzip -dc arcacmd.1.gz >$RPM_BUILD_ROOT%{_mandir}/man1/arcacmd.1 | |
64 | cd .. | |
65 | install arcacmdg.conf $RPM_BUILD_ROOT%{_sysconfdir} | |
66 | install arcacmdl.conf.template $RPM_BUILD_ROOT%{_sysconfdir} | |
67 | ||
68 | for f in lang/* bases/*; do | |
69 | install $f $RPM_BUILD_ROOT%{_datadir}/%{name} | |
70 | done | |
71 | ||
72 | %clean | |
73 | rm -rf $RPM_BUILD_ROOT | |
74 | ||
75 | %files | |
76 | %defattr(644,root,root,755) | |
77 | %lang(fr) %doc files/docs/COPYING.{commercial,free}.fr | |
78 | %lang(pl) %doc files/docs/COPYING.{commercial,free}.pl | |
79 | %attr(755,root,root) %{_bindir}/%{name} | |
80 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/arcacmdg.conf | |
81 | %dir %{_datadir}/%{name} | |
82 | %{_datadir}/%{name}/pl_ascii.atr | |
83 | %{_mandir}/man1/* | |
84 | ||
85 | %files bases | |
86 | %defattr(644,root,root,755) | |
87 | %verify(not md5 mtime size) %{_datadir}/%{name}/abase?.dat | |
88 | ||
89 | %files updater | |
90 | %defattr(644,root,root,755) | |
91 | %attr(755,root,root) %{_sbindir}/arcaupdate |