From 478d4c76165eac41b3a48d1c3bf94f6e6ec6b87b Mon Sep 17 00:00:00 2001 From: Andrzej Augustynowicz Date: Mon, 7 Feb 2005 17:39:18 +0000 Subject: [PATCH] - initial spec Changed files: courier-filter.spec -> 1.1 --- courier-filter.spec | 61 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 courier-filter.spec diff --git a/courier-filter.spec b/courier-filter.spec new file mode 100644 index 0000000..3fad67b --- /dev/null +++ b/courier-filter.spec @@ -0,0 +1,61 @@ +# +# TODO: +# - pl +# +%include /usr/lib/rpm/macros.perl +Summary: Purely Perl-based mail filter framework for the Courier +Summary(pl): - +Name: courier-filter +Version: 0.16 +Release: 0.1 +License: GPL and Artistic +Group: Development/Languages/Perl +Source0: http://search.cpan.org/CPAN/authors/id/J/JM/JMEHNLE/courier-filter/Courier-Filter-%{version}.tar.gz +# Source0-md5: de6c5d645f2b6e56c0fd15e0ec6b005f +URL: http://www.mehnle.net/software/courier-filter +BuildRequires: perl-devel >= 1:5.8.0 +BuildRequires: rpm-perlprov >= 4.1-13 +BuildRequires: perl(Module::Build) +Requires: courier +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +Courier::Filter implements the courierfilter interface as a framework for mail +filter modules that frees modules from the duties of creating and handling the +UNIX domain sockets, waiting for connections from Courier, and reading and +parsing message and control files. + +%description -l pl + +%prep +%setup -q -n Courier-Filter-%{version} + +%build +%{__perl} Makefile.PL \ + INSTALLDIRS=vendor + +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT + +./Build install \ + destdir=$RPM_BUILD_ROOT + +install bin/pureperlfilter $RPM_BUILD_ROOT%{_bindir}/pureperlfilter +install -d $RPM_BUILD_ROOT%{_sysconfdir}/courier/filters +install examples/pureperlfilter.conf $RPM_BUILD_ROOT%{_sysconfdir}/courier/filters + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc CHANGES README TODO +%attr(755,root,root) %{_bindir}/pureperlfilter +%attr(755,root,root) %{_bindir}/test-filter-module +%attr(640,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/courier/filters/* +%{_datadir}/courier-filter-perl +%{_mandir}/man1/* +%{_mandir}/man3/* -- 2.44.0