Update dovecot-antispam on github

Hi @dev_team,

I’m rebasing a few forks to v7-beta2 and doing that noticed i’v never asked this before. the git of dovecot-antispam is quite out of date, and i’d like to make a PR in the future:

 %{_mandir}/man7/dovecot-antispam.7*
-/usr/lib64/dovecot/lib90_antispam_plugin.so
+%{_libdir}/dovecot/lib90_antispam_plugin.so

There’s no rush, if you wish i can make an new issue as a remainder :wink:

3 Likes

this is an easy one to close.

Again: low priority

Now you confuse me:

EDIT: Maybe I confused the @dev_team; I should have asked to bring the github repository (now on version 0.0.48) in sync with the package repository (current version 0.0.49-2) :blush:

Spec from Source package (dovecot-antispam-0.0.49-2.ns7.src.rpm)

%define vhash 5ebc6aae4d7c
%define packdir %{name}-plugin-%{vhash}

Name: dovecot-antispam
Summary: Train the spam filter by moving email messages in and out of the IMAP spam folder
Version: 0.0.49
Release: 2%{?dist}
License: GPL2
URL: http://wiki2.dovecot.org/Plugins/Antispam
Source0: %{name}-%{version}.tar.gz
Source1: http://hg.dovecot.org/dovecot-antispam-plugin/archive/%{vhash}.tar.gz

BuildRequires: autoconf, automake, gcc
BuildRequires: dovecot-devel >= 2.1.16
BuildRequires: openssl-devel >= 1.0.0

%description 

The antispam plugin for dovecot allows you to retrain the
spam filter by simply moving emails in and out of the Spam
folder. This is the fork of the analogous plugin for Dovecot versions
prior to v2.0. The original project can be found at
http://johannes.sipsolutions.net/Projects/dovecot-antispam

%prep
%setup -b 1 -n %packdir

%build
./autogen.sh
%configure --prefix=/usr --with-dovecot=/usr/lib64/dovecot
make

%install
%make_install

%files
%defattr(-,root,root,-)
%doc README
%doc COPYING
%{_mandir}/man7/dovecot-antispam.7*
/usr/lib64/dovecot/lib90_antispam_plugin.so

%changelog
* Fri Mar 27 2015 Davide Principi <davide.principi@nethesis.it> - 0.0.49-2
- Rebuild for NethServer 6.6

* Fri May 24 2013 Davide Principi <davide.principi@nethesis.it> - 0.0.49-1
- New version, for dovecot 2.1

* Wed Nov 21 2012 Davide Principi <davide.principi@nethesis.it> - 0.0.48-1
- Build 0.0.48 - hash 7f94cc6b4d8e

Spec from GitHub

%define vhash 7f94cc6b4d8e
%define packdir %{name}-plugin-%{vhash}

Name: dovecot-antispam
Summary: Train the spam filter by moving email messages in and out of the IMAP spam folder
Version: 0.0.48
Release: 1%{?dist}
License: GPL2
URL: http://wiki2.dovecot.org/Plugins/Antispam
Source0: %vhash.tar.gz
Patch0: 5e8351bcfb29.patch

BuildRequires: autoconf, automake, gcc, dovecot-devel >= 2.0.9

%description 

The antispam plugin for dovecot allows you to retrain the
spam filter by simply moving emails in and out of the Spam
folder. This is the fork of the analogous plugin for Dovecot versions
prior to v2.0. The original project can be found at
http://johannes.sipsolutions.net/Projects/dovecot-antispam

%prep
%setup -n %packdir
%patch0 -R -p1 

%build
./autogen.sh
%configure --prefix=/usr --with-dovecot=/usr/lib64/dovecot
make

%install
%make_install

%files
%defattr(-,root,root,-)
%doc README
%doc COPYING
%{_mandir}/man7/dovecot-antispam.7*
/usr/lib64/dovecot/lib90_antispam_plugin.so

%changelog
* Wed Nov 21 2012 Davide Principi <davide.principi@nethesis.it> - 0.0.48-1
- Build 0.0.48 - hash 7f94cc6b4d8e

Still want my PR?

2 Likes

You’re absolutely right, @mark_nl.

On March 2015, I forgot to push my latest git commit on github.

Of course, but please git-rebase it! :grin:

BTW a new release number and a %changelog line are welcome

@davidep: told you so, thnx!

1 Like