-
Notifications
You must be signed in to change notification settings - Fork 7
/
bley.spec
88 lines (65 loc) · 2.04 KB
/
bley.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
Name: bley
Version: 2.0.0
Release: 1%{?dist}
Summary: Intelligent greylisting daemon for Postfix and Exim
License: BSD
URL: http://bley.mx
Source0: http://bley.mx/download/bley-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
Requires: python3-mysqlclient
Requires: python3-py3dns
Requires: python3-pyspf
Requires: python3-psycopg2
Requires: python3-publicsuffix2
Requires: python3-twisted
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
BuildRequires: systemd
%description
bley uses various tests (incl. RBL and SPF) to decide whether a sender should be
greylisted or not, thus mostly eliminating the usual greylisting delay while
still filtering most of the spam.
%package logcheck
Summary: Logcheck support files for %{name}
Requires: %{name} = %{version}-%{release}
Requires: logcheck
%description logcheck
Logcheck support files for %{name}.
%prep
%setup -q
%build
%py3_build
%install
%py3_install
for file in bley.conf whitelist_clients whitelist_recipients; do
mv $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/${file}.example \
$RPM_BUILD_ROOT%{_sysconfdir}/%{name}/${file}
done
install -D -m644 %{name}-sysusers.conf $RPM_BUILD_ROOT%{_sysusersdir}/%{name}.conf
%post
%systemd_post %{name}.service
%preun
%systemd_preun %{name}.service
%postun
%systemd_postun_with_restart %{name}.service
%files
%doc CHANGELOG.md README.md
%license LICENSE
%config(noreplace) %{_sysconfdir}/%{name}
%{_bindir}/%{name}
%{_bindir}/%{name}graph
%{python3_sitelib}/%{name}
%{python3_sitelib}/%{name}-%{version}-py%{python3_version}.egg-info
%{_mandir}/man1/%{name}.1.gz
%{_mandir}/man1/%{name}graph.1.gz
%{_unitdir}/%{name}.service
%{_sysusersdir}/%{name}.conf
%files logcheck
%doc CHANGELOG.md README.md
%config(noreplace) %{_sysconfdir}/logcheck/ignore.d.server/%{name}.logcheck
%changelog
* Sun Nov 9 2014 Felix Kaechele <heffer@fedoraproject.org> - 2.0.0-0
- create package spec template