1 %include /usr/lib/rpm/macros.perl
2 Summary: Purely Perl-based mail filter framework for the Courier
3 Summary(pl): Oparty na czystym Perlu szkielet filtra pocztowego dla Couriera
7 License: GPL and Artistic
8 Group: Development/Languages/Perl
9 Source0: http://www.cpan.org/modules/by-authors/id/J/JM/JMEHNLE/courier-filter/Courier-Filter-%{version}.tar.gz
10 # Source0-md5: de6c5d645f2b6e56c0fd15e0ec6b005f
11 URL: http://search.cpan.org/dist/Courier-Filter/
12 BuildRequires: perl-Module-Build
13 BuildRequires: perl-devel >= 1:5.8.0
14 BuildRequires: rpm-perlprov >= 4.1-13
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 Courier::Filter implements the courierfilter interface as a framework
21 for mail filter modules that frees modules from the duties of creating
22 and handling the UNIX domain sockets, waiting for connections from
23 Courier, and reading and parsing message and control files.
26 Courier::Filter implementuje interfejs courierfilter jako szkielet dla
27 modu³ów filtruj±cych pocztê uwalniaj±cy modu³y od konieczno¶ci
28 tworzenia i obs³ugi gniazd uniksowych, oczekiwania na po³±czenia z
29 Couriera oraz czytania i przetwarzania wiadomo¶ci i plików
33 %setup -q -n Courier-Filter-%{version}
36 %{__perl} Makefile.PL \
42 rm -rf $RPM_BUILD_ROOT
45 destdir=$RPM_BUILD_ROOT
47 install bin/pureperlfilter $RPM_BUILD_ROOT%{_bindir}/pureperlfilter
48 install -d $RPM_BUILD_ROOT%{_sysconfdir}/courier/filters
49 install examples/pureperlfilter.conf $RPM_BUILD_ROOT%{_sysconfdir}/courier/filters
52 rm -rf $RPM_BUILD_ROOT
55 %defattr(644,root,root,755)
56 %doc CHANGES README TODO
57 %attr(755,root,root) %{_bindir}/pureperlfilter
58 %attr(755,root,root) %{_bindir}/test-filter-module
59 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/courier/filters/*
60 %{_datadir}/courier-filter-perl