File clamav-database.spec of Package clamav-database.15591

#
# spec file for package clamav-database
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


%define _dbdir /var/lib/clamav

Name:           clamav-database
BuildRequires:  clamav
Recommends:     clamav
#!BuildIgnore: clamav-nodb
BuildArch:      noarch
Requires:       clamav
Version:	202006290017
Release:	0.0
Summary:        Offline availability for clamav database
License:        GPL-2.0
Group:          Security
Source0:        clamav-database.tar.bz2
Source1:        clamav-database-refresh.sh
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Open Build Service package build environments do not have network access
and need to have a recent version of the clamav database stored offline.
This package just wraps up /var/lib/clamav into an RPM package.

%prep
%setup -n db -c db

%build

%install
pwd
ls -la
cp -al var $RPM_BUILD_ROOT

%files
%defattr(-,vscan,vscan,644)
%attr(755,vscan,vscan) %_dbdir
%attr(644,vscan,vscan) %_dbdir/*

%changelog
openSUSE Build Service is sponsored by