]> git.pld-linux.org Git - packages/dovecot-sieve.git/blame - dovecot-sieve.spec
- pl, initial part of cleanup
[packages/dovecot-sieve.git] / dovecot-sieve.spec
CommitLineData
3ec3df5c 1Summary: Sieve plugin for dovecot
605849b5 2Summary(pl.UTF-8): Wtyczka Sieve dla dovecota
3ec3df5c
JS
3Name: dovecot-sieve
4Version: 1.0.2
5Release: 2
6License: LGPL
7Group: Daemons
3ec3df5c 8Source0: http://dovecot.org/releases/sieve/%{name}-%{version}.tar.gz
02c88e4a 9# Source0-md5: 508926fc9ff8e0f6e13506e237d4916b
605849b5 10URL: http://www.dovecot.org/
3ec3df5c
JS
11BuildRequires: autoconf
12BuildRequires: automake
13BuildRequires: libtool
14BuildRequires: dovecot-devel
15BuildRequires: flex
16BuildRequires: bison
17BuildRequires: gcc-c++
18BuildRequires: pkgconfig
19Requires: dovecot
20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
646f5528
JS
21
22%description
23Sieve is a language that can be used to create filters for electronic
24mail. It owes its creation to the CMU Cyrus Project, creators of Cyrus
25IMAP server.
26
27This dovecot plugin is derived is from Cyrus IMAP v2.2.12.
28
605849b5
JB
29%description -l pl.UTF-8
30Sieve to język używany do tworzenia filtrów dla poczty elektronicznej.
31Zawdzięcza swoje powstanie projektowi CMU Cyrus, twórcom serwera
32pocztowego Cyrus IMAP.
33
34Ta wtyczka dovecota wywodzi się z serwera Cyrus IMAP w wersji 2.2.12.
35
646f5528
JS
36%prep
37%setup -q
38
39%build
40# crude hack ...
41perl -pi -e's,have_dovecot_libs=no,have_dovecot_libs=yes,g' configure
605849b5
JB
42%configure \
43 INSTALL_DATA="install -c -p -m644" \
44 --with-dovecot=%{_includedir}/dovecot
45# Replace -I$(dovecot_incdir)/src with -I$(dovecot_incdir)
646f5528
JS
46# and $(dovecotdir)/src with $(libdir)/dovecot for libraries
47for f in `find . -name Makefile`
48do
3ec3df5c
JS
49 mv -f $f $f.orig
50 sed -e's/\-I\$(dovecot_incdir)\/src/\-I\$(dovecot_incdir)/g' \
51 -e's/\$(dovecotdir)\/src\(\/lib\/.*\.a\)/\$(libdir)\/dovecot\/plugins\1/g' \
52 < $f.orig > $f
646f5528 53done
3ec3df5c 54%{__make}
646f5528
JS
55
56%install
3ec3df5c 57rm -rf $RPM_BUILD_ROOT
605849b5
JB
58
59%{__make} install \
60 DESTDIR=$RPM_BUILD_ROOT
61
62# ??? one of two following commands is bogus
63rm -f $RPM_BUILD_ROOT%{_libdir}/dovecot/plugins/lda/*.a
3ec3df5c 64mkdir $RPM_BUILD_ROOT%{_libdir}/dovecot/plugins
605849b5 65mv $RPM_BUILD_ROOT%{_libdir}/dovecot/lda $RPM_BUILD_ROOT%{_libdir}/dovecot/plugins
646f5528
JS
66
67%clean
3ec3df5c 68rm -rf $RPM_BUILD_ROOT
646f5528
JS
69
70%files
3ec3df5c
JS
71%defattr(644,root,root,755)
72%attr(755,root,root) %{_libexecdir}/dovecot/sievec
73%attr(755,root,root) %{_libexecdir}/dovecot/sieved
74%attr(755,root,root) %{_libdir}/dovecot/plugins/lda/*.so
605849b5
JB
75# !needed?
76%{_libdir}/dovecot/plugins/lda/*.la
This page took 0.082174 seconds and 4 git commands to generate.