]> git.pld-linux.org Git - packages/dovecot-antispam.git/blobdiff - dovecot-antispam.spec
Release 77 (by relup.sh)
[packages/dovecot-antispam.git] / dovecot-antispam.spec
index 3e7c76503ec20a4a10dc5880f0630b5f7150f273..8ab38028389ade6e5bae1a7c235d2e43db3bda94 100644 (file)
@@ -2,11 +2,12 @@ Summary:      The dovecot antispam plugin
 Summary(pl.UTF-8):     Wtyczka antyspamowa dla dovecota
 Name:          dovecot-antispam
 Version:       2.0
-Release:       1
+Release:       77
 License:       GPL v2
 Group:         Daemons
 Source0:       http://johannes.sipsolutions.net/download/dovecot-antispam/%{name}-%{version}.tar.bz2
 # Source0-md5: 14547898759fbd93f2b98304520decc6
+Patch0:                %{name}-git.patch
 URL:           http://johannes.sipsolutions.net/Projects/dovecot-antispam
 BuildRequires: dovecot-devel >= 1:2.0
 %requires_eq_to        dovecot dovecot-devel
@@ -18,22 +19,23 @@ SPAM folder and tells the spam classifier that it made an error and
 needs to re-classify the message (as spam/not spam depending on which
 way it was moved).
 
-#%description -l pl.UTF-8
-
 %prep
 %setup -q
+%patch0 -p1
 
 %build
+unset GIT_DIR
 %{__make} \
+       CC="%{__cc}" \
        CFLAGS="%{rpmcflags}" \
        LDFLAGS="%{rpmldflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_libdir}/dovecot,%{_mandir}/man7}
+install -d $RPM_BUILD_ROOT{%{_libdir}/dovecot/plugins,%{_mandir}/man7}
 
 %{__make} install \
-       INSTALLDIR=%{_libdir}/dovecot \
+       INSTALLDIR=%{_libdir}/dovecot/plugins \
        DESTDIR=$RPM_BUILD_ROOT
 
 install -p antispam.7 $RPM_BUILD_ROOT%{_mandir}/man7
@@ -44,5 +46,5 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc NOTES
-%attr(755,root,root) %{_libdir}/dovecot/lib90_antispam_plugin.so
+%attr(755,root,root) %{_libdir}/dovecot/plugins/lib90_antispam_plugin.so
 %{_mandir}/man7/antispam.7*
This page took 0.05324 seconds and 4 git commands to generate.