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