]> git.pld-linux.org Git - packages/dovecot-sieve.git/blame - dovecot-sieve.spec
- add md5sum
[packages/dovecot-sieve.git] / dovecot-sieve.spec
CommitLineData
3ec3df5c
JS
1Summary: Sieve plugin for dovecot
2Name: dovecot-sieve
3Version: 1.0.2
4Release: 2
5License: LGPL
6Group: Daemons
7URL: http://www.dovecot.org/
8Source0: http://dovecot.org/releases/sieve/%{name}-%{version}.tar.gz
02c88e4a 9# Source0-md5: 508926fc9ff8e0f6e13506e237d4916b
3ec3df5c
JS
10BuildRequires: autoconf
11BuildRequires: automake
12BuildRequires: libtool
13BuildRequires: dovecot-devel
14BuildRequires: flex
15BuildRequires: bison
16BuildRequires: gcc-c++
17BuildRequires: pkgconfig
18Requires: dovecot
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
646f5528
JS
20
21%description
22Sieve is a language that can be used to create filters for electronic
23mail. It owes its creation to the CMU Cyrus Project, creators of Cyrus
24IMAP server.
25
26This dovecot plugin is derived is from Cyrus IMAP v2.2.12.
27
28%prep
29%setup -q
30
31%build
32# crude hack ...
33perl -pi -e's,have_dovecot_libs=no,have_dovecot_libs=yes,g' configure
34%configure --with-dovecot=%{_includedir}/dovecot \
35 INSTALL_DATA="install -c -p -m644"
36# Replace -I$(dovecotdir)/src with -I$(dovecotdir)/src
37# and $(dovecotdir)/src with $(libdir)/dovecot for libraries
38for f in `find . -name Makefile`
39do
3ec3df5c
JS
40 mv -f $f $f.orig
41 sed -e's/\-I\$(dovecot_incdir)\/src/\-I\$(dovecot_incdir)/g' \
42 -e's/\$(dovecotdir)\/src\(\/lib\/.*\.a\)/\$(libdir)\/dovecot\/plugins\1/g' \
43 < $f.orig > $f
646f5528 44done
3ec3df5c 45%{__make}
646f5528
JS
46
47%install
3ec3df5c
JS
48rm -rf $RPM_BUILD_ROOT
49%{__make} install DESTDIR=$RPM_BUILD_ROOT
50rm -f $RPM_BUILD_ROOT/%{_libdir}/dovecot/plugins/lda/*.a
51mkdir $RPM_BUILD_ROOT%{_libdir}/dovecot/plugins
52mv $RPM_BUILD_ROOT%{_libdir}/dovecot/lda $RPM_BUILD_ROOT%{_libdir}/dovecot/plugins/.
646f5528
JS
53
54%clean
3ec3df5c 55rm -rf $RPM_BUILD_ROOT
646f5528
JS
56
57%files
3ec3df5c
JS
58%defattr(644,root,root,755)
59%attr(755,root,root) %{_libexecdir}/dovecot/sievec
60%attr(755,root,root) %{_libexecdir}/dovecot/sieved
61%attr(755,root,root) %{_libdir}/dovecot/plugins/lda/*.so
62%attr(755,root,root) %{_libdir}/dovecot/plugins/lda/*.la
This page took 0.0814279999999999 seconds and 4 git commands to generate.