]>
Commit | Line | Data |
---|---|---|
478d4c76 AA |
1 | # |
2 | # TODO: | |
3 | # - pl | |
4 | # | |
5 | %include /usr/lib/rpm/macros.perl | |
6 | Summary: Purely Perl-based mail filter framework for the Courier | |
7 | Summary(pl): - | |
8 | Name: courier-filter | |
9 | Version: 0.16 | |
10 | Release: 0.1 | |
11 | License: GPL and Artistic | |
12 | Group: Development/Languages/Perl | |
13 | Source0: http://search.cpan.org/CPAN/authors/id/J/JM/JMEHNLE/courier-filter/Courier-Filter-%{version}.tar.gz | |
14 | # Source0-md5: de6c5d645f2b6e56c0fd15e0ec6b005f | |
15 | URL: http://www.mehnle.net/software/courier-filter | |
16 | BuildRequires: perl-devel >= 1:5.8.0 | |
17 | BuildRequires: rpm-perlprov >= 4.1-13 | |
18 | BuildRequires: perl(Module::Build) | |
19 | Requires: courier | |
20 | BuildArch: noarch | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | Courier::Filter implements the courierfilter interface as a framework for mail | |
25 | filter modules that frees modules from the duties of creating and handling the | |
26 | UNIX domain sockets, waiting for connections from Courier, and reading and | |
27 | parsing message and control files. | |
28 | ||
29 | %description -l pl | |
30 | ||
31 | %prep | |
32 | %setup -q -n Courier-Filter-%{version} | |
33 | ||
34 | %build | |
35 | %{__perl} Makefile.PL \ | |
36 | INSTALLDIRS=vendor | |
37 | ||
38 | %{__make} | |
39 | ||
40 | %install | |
41 | rm -rf $RPM_BUILD_ROOT | |
42 | ||
43 | ./Build install \ | |
44 | destdir=$RPM_BUILD_ROOT | |
45 | ||
46 | install bin/pureperlfilter $RPM_BUILD_ROOT%{_bindir}/pureperlfilter | |
47 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/courier/filters | |
48 | install examples/pureperlfilter.conf $RPM_BUILD_ROOT%{_sysconfdir}/courier/filters | |
49 | ||
50 | %clean | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %files | |
54 | %defattr(644,root,root,755) | |
55 | %doc CHANGES README TODO | |
56 | %attr(755,root,root) %{_bindir}/pureperlfilter | |
57 | %attr(755,root,root) %{_bindir}/test-filter-module | |
58 | %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/courier/filters/* | |
59 | %{_datadir}/courier-filter-perl | |
60 | %{_mandir}/man1/* | |
61 | %{_mandir}/man3/* |