%undefine _missing_build_ids_terminate_build %define _unpackaged_files_terminate_build 1 %global debug_package %{nil} %if %{defined _project} # define to 1 if building on openSUSE build service %define build_on_obs 1 %define fast_mode 1 %else %define build_on_obs 0 %define fast_mode 1 %global _hardened_build 1 %endif %if %build_on_obs == 1 %global packager Manvendra Bhangui > %endif %define sysconfdir /etc/indimail Name: bogofilter-wordlist Version: 1.0.0 Release: 1.1%{?dist} Summary: SPAM wordlist database for bogofilter Group: System Environment/Base %if %build_on_obs == 1 License: GPL-3.0+ %else License: GPLv3 %endif URL: http://www.indimail.org Source0: http://downloads.sourceforge.net/indimail/%{name}-%{version}.tar.gz BuildRequires: rpm wget bzip2 make coreutils grep %if %build_on_obs == 1 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %if 0%{?suse_version} BuildArch: noarch BuildRequires: -post-build-checks #!BuildIgnore: post-build-checks #!BuildIgnore: brp-check-suse %endif %endif %description bogofilter-wordlist provides SPAM database for bogofilter in Berkeley DB format %prep %setup -q %build ( echo "---------------- INFORMATION ------------------------" echo target %_target echo target_alias %_target_alias echo target_cpu %_target_cpu echo target_os %_target_os echo target_vendor %_target_vendor echo Building %{name}-%{version}-%{release} Build %{_build} OS %{_os} lib=%{_lib} libdir=%{_libdir} echo "------------------------------------------------------" ) > %{name}-rpm.info %configure --sysconfdir=%{sysconfdir} %{__make} %{?_smp_mflags} %install %make_install %{__mkdir_p} %{buildroot}%{sysconfdir} install -m 0644 %{name}-rpm.info %{buildroot}%{sysconfdir}/%{name}-rpm.info /bin/rm -f %{name}-rpm.info %files %attr(0644,-,-) %config(noreplace) %{sysconfdir}/wordlist.db %attr(644,root,root) %{sysconfdir}/%{name}-release %attr(644,root,root) %{sysconfdir}/%{name}-rpm.info %doc %changelog * Mon Jan 01 2024 07:24:40 +0000 Manvendra Bhangui 1.0.0-1.1%{?dist} Release 1.0.0-1.1 Start 16/03/2017 End 08/09/2022 - First Release - bogofiter-wordlist.spec: Removed indimail-spamfilter from Requires - PKGBUILD.in: Added missing variable definitions - remove downloaded archive