perl-Courier-Filter/perl-Courier-Filter.spec

Name: perl-Courier-Filter
Summary: Purely Perl-based mail filter framework for the Courier MTA
Version: 0.200
Release: 1
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/Courier-Filter/
Description: A purely Perl-based mail filter framework for the Courier MTA.

CentOS 7 x86_64

The build was not successful.

Build Status

CentOS 6 x86_64

The build was not successful.

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dag
# Upstream: Julian Mehnle <julian$mehnle,net>

%define perl_vendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)
%define perl_vendorarch %(eval "`%{__perl} -V:installvendorarch`"; echo $installvendorarch)

%define real_name Courier-Filter

Summary: Purely Perl-based mail filter framework for the Courier MTA
Name: perl-Courier-Filter
Version: 0.200
Release: 1%{?dist}
License: Artistic/GPL
Group: Applications/CPAN
URL: http://search.cpan.org/dist/Courier-Filter/

Source: http://www.cpan.org/authors/id/J/JM/JMEHNLE/courier-filter/Courier-Filter-v%{version}.tar.gz
Patch0: Courier-Filter-0.17-message.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildArch: noarch
BuildRequires: perl >= 1:5.8
BuildRequires: perl(Error)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Test::Simple)
Requires: perl >= 1:5.8

%description
A purely Perl-based mail filter framework for the Courier MTA.

%prep
%setup -n %{real_name}-v%{version}
%patch0 -p0

%build
#%{__perl} Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}"
#%{__make} %{?_smp_mflags}
%{__perl} Build.PL installdirs="vendor"
./Build

%install
%{__rm} -rf %{buildroot}
#%{__make} pure_install
./Build install destdir="%{buildroot}" create_packlist="1"

### Clean up buildroot
find %{buildroot} -name .packlist -exec %{__rm} {} \;

### Clean up docs
find examples/ -type f -exec %{__chmod} a-x {} \;

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc CHANGES INSTALL LICENSE MANIFEST META.yml README SIGNATURE TODO examples/
%doc %{_mandir}/man1/test-filter-module.1*
%doc %{_mandir}/man3/Courier::*.3pm*
%{_bindir}/test-filter-module
%{_datadir}/courier-filter-perl/

%changelog
* Sat May 03 2008 Dag Wieers <dag@wieers.com> - 0.200-1
- Updated to release 0.200.

* Sat Jan 26 2008 Dag Wieers <dag@wieers.com> - 0.17-2
- Added patch.

* Mon Nov 12 2007 Dag Wieers <dag@wieers.com> - 0.17-1
- Initial package. (using DAR)