-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbogofilter-daemon.spec
45 lines (36 loc) · 1.35 KB
/
bogofilter-daemon.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
Name: bogofilter-daemon
Version: 0.2
Release: 1
Summary: Python Bogofilter Daemon
Group: System Environment/Base
License: GPLv2+
Source0: bogofilter-daemon-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
Requires: python2.6 >= 2.6.4-5.yos
Requires: bogofilter >= 1.2.1
%description
Bogofilter Daemon is a daemon wrapper to bogofilter in STDIN mode.
It opens max_procs instances of bogofilter in STDIN mode and escales
the inputs for each instance.
%prep
%setup -c -n %{name}-%{version}
%install
%{__rm} -fr $RPM_BUILD_ROOT
%{__mkdir} -p $RPM_BUILD_ROOT/usr/sbin
%{__mkdir} -p $RPM_BUILD_ROOT/etc
%{__install} -Dp -m0755 $RPM_BUILD_DIR/%{name}-%{version}/bogofilter-daemon.py $RPM_BUILD_ROOT/usr/sbin
%{__install} -Dp -m0755 $RPM_BUILD_DIR/%{name}-%{version}/bogofilter-daemon.conf $RPM_BUILD_ROOT/etc
#%{__install} -Dp -m0755 %{SOURCE0} $RPM_BUILD_ROOT/usr/sbin
#%{__install} -Dp -m0644 %{SOURCE1} $RPM_BUILD_ROOT/etc
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
/usr/sbin/bogofilter-daemon.py
/etc/bogofilter-daemon.conf
%changelog
* Thu Nov 01 2010 Leandro Mendes <[email protected]> 0.2-1
- Adding config file support
* Thu Jul 22 2010 Leandro Mendes <[email protected]> 0.1-1
- first release