File evolution-clamav.spec of Package evolution-clamav

#
# spec file for package evolution-clamav
#
# Copyright (C) 2020-2023 Mark Grant <m.grant.prg@gmail.com>
#
#

# openSUSE Leap has a peculiar release field, this define is used in the release
# substitution provided by prep-spec-release.sh when building for Leap. (It will
# convert 150000 to 150 for Leap 15.0 and 150100 to 151 for Leap 15.1).
%if 0%{?is_opensuse} && 0%{?sle_version}
	%define leap_version %( echo $(( \
				$(( %{?sle_version} / 1000 )) \
				+ $(( \
					$(( %{?sle_version} \
					- $(( \
						$(( %{?sle_version} / 1000 )) \
					* 1000 )) \
					)) \
				/100 )) \
				)))
%endif

# Enter the Release numerics here.
%define pkg_release 0.0

Name:		evolution-clamav
Version:	1.1.3

%if 0%{?suse_version}
Release:	lp%{?leap_version}.%{?pkg_release}
%else
Release:	%{?pkg_release}
%endif

License:	GPL-3.0
Summary:	Evolution scripts to filter incoming mail with clamav
Url:		https://github.com/m-grant-prg/%{name}/wiki
Group:		Productivity/Networking/Email/Utilities
Source0:	https://github.com/m-grant-prg/%{name}/release/%{name}-%{version}.tar.gz
BuildRequires:	autoconf, automake, make
BuildRequires:	bash, tar
BuildRequires:	txt2manwrap
Requires:	bash, util-linux
Requires:	clamav, evolution
%{?suse_version:Requires:	libnotify-tools}
%{?fedora:Requires:	libnotify}
BuildRoot:	%{_tmppath}/%{name}-%{version}-build
BuildArch:	noarch

%description
ClamAV virus checking filters for Evolution.
Scripts to be used as a filter for Evolution to get ClamAV to scan incoming
mail for viruses either in a foreground process or by the daemon.

%prep
%setup -q -n %{name}-%{version}

%build
autoreconf -if
%configure docdir=%{_docdir}/%{name}
make %{?jobs:-j%jobs}

%install
%make_install

%files
%defattr(-,root,root,-)
%license COPYING
%doc %{_docdir}/%{name}
%{_mandir}/man1/evolution-clamav-scripts-location.1.gz
%{_bindir}/evolution-clamav-scripts-location
%dir %{_libexecdir}/%{name}
%{_libexecdir}/%{name}/clamscan-notify.sh
%{_libexecdir}/%{name}/%{name}.sh
%{_libexecdir}/%{name}/%{name}d.sh

%changelog
openSUSE Build Service is sponsored by