qpsmtpd-plugins/qpsmtpd-plugins.spec

114 lines
3.5 KiB
RPMSpec
Raw Permalink Normal View History

# $Id: qpsmtpd-plugins.spec,v 1.2 2017/02/27 22:34:14 unnilennium Exp $
Summary: qpsmtpd plugins from www.openfusion.com
%define name qpsmtpd-plugins
Name: %{name}
%define version 0.0.1
%define release 5
Version: %{version}
Release: %{release}%{?dist}
License: qpsmtpd
Group: Networking/Daemons
%define oname qpsmtpd-plugins-openfusion
%define oversion 20050429
Source0: http://www.openfusion.com.au/labs/qpsmtpd/%{oname}-%{oversion}.tar.gz
Patch0: check_goodrcptto_hypens.patch
Patch1: check_goodrcptto_dos2unix.patch
Patch2: check_goodrcptto_relaydenycomment.patch
Patch3: qpsmtpd-address-in-bcc.patch
Patch4: qpsmtpd-plugins-bz10126.patch
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot
Requires: perl
Obsoletes: qpsmtpd-plugins-openfusion
Requires: qpsmtpd >= 0.31
BuildArchitectures: noarch
AutoReqProv: no
%description
A package containing qpsmtpd plugins.
Included in this version is a set of qpsmtpd plugins from Gavin Carr
of OpenFusion:
http://www.openfusion.com.au/labs/qpsmtpd/
%changelog
* Fri Jul 14 2023 BogusDateBot
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,
by assuming the date is correct and changing the weekday.
* Mon Feb 27 2017 Jean-Philipe Pialasse <tests@pialasse.com> 0.0.1-5.sme
- remove whitelit_soft [SME: 10126]
* Sun Feb 7 2016 stephane de labrusse <stephdl@de-labrusse.fr> 0.0.1-4
- Build new rpm for sme10
* Thu Aug 6 2015 Daniel Berteaud <daniel@firewall-services.com> 0.0.1-4
- Use Qpsmtpd::Address object instead of Mail::Address in bcc plugin
so logging can rely on stringification [SME: 8990]
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com>
- Clean up spec so package can be built by koji/plague
* Thu Apr 12 2007 Stephen Noble <support@dungog.net> 0.0.1-3
- change invalid recipient comment to relay denied [SME: 2340]
* Thu Apr 12 2007 Stephen Noble <support@dungog.net> 0.0.1-2
- run dos2unix on check_goodrcptto [SME: 2340]
* Thu Dec 07 2006 Shad L. Lords <slords@mail.com>
- Update to new release naming. No functional changes.
- Make Packager generic
* Fri Aug 18 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-sme06
- Fix check_goodrcptto handling of hyphenated usernames.
Thanks Shad Lords [SME: 1268]
* Wed Jan 4 2006 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-sme05
- Bump version number only for rebuild
* Mon Aug 29 2005 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-sme04
- Updated qpsmtpd requires to 0.31
- Move plugins to /usr/share/qpsmtpd/plugins in line with Peter Holtzer's
qpsmtpd RPMs
* Mon Aug 15 2005 Charlie Brady <charlieb@e-smith.com> 0.0.1-sme03
- Rename to generic qpsmtpd-plugins (although currently only contains
plugins sourced from openfusion).
* Fri Apr 29 2005 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-sme02
- Removed denysoft_greylist - it's in 0.29 - thanks Gavin
* Fri Apr 29 2005 Gordon Rowell <gordonr@gormand.com.au> 0.0.1-sme01
- Initial packaging
- Plugins in /usr/lib/qpsmtpd/plugins
%prep
%setup -n %{oname}-%{oversion}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%build
mkdir -p root/usr/share/qpsmtpd
mkdir -p root/usr/bin
mv plugins config.sample root/usr/share/qpsmtpd
%postun
%install
rm -rf $RPM_BUILD_ROOT
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
find $RPM_BUILD_ROOT/usr -type f -print | sed "s@^$RPM_BUILD_ROOT@@g" | \
grep -v perllocal.pod > %{name}-%{version}-%{release}-filelist
echo "%doc LICENSE" >> %{name}-%{version}-%{release}-filelist
%clean
rm -rf $RPM_BUILD_ROOT
%files -f %{name}-%{version}-%{release}-filelist
%defattr(-,root,root)