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

# 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

%define _dbdir /var/lib/clamav

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

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.

%setup -n db -c db


ls -la
cp -al var $RPM_BUILD_ROOT

%attr(755,vscan,vscan) %_dbdir
%attr(644,vscan,vscan) %_dbdir/*

openSUSE Build Service is sponsored by