/[smeserver]/rpms/dovecot/sme7/dovecot.spec
ViewVC logotype

Diff of /rpms/dovecot/sme7/dovecot.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.1 by slords, Tue Jun 12 15:07:20 2007 UTC Revision 1.3 by slords, Fri Sep 19 21:26:12 2008 UTC
# Line 1  Line 1 
1    %define upstream 1.0.7
2    %define pkg_version 1.0.7
3    %define my_release 2
4    %define pkg_release %{my_release}%{?dist}
5    
6  Summary: Dovecot Secure imap server  Summary: Dovecot Secure imap server
7  Name: dovecot  Name: dovecot
8  Version: 1.0  Version: %{pkg_version}
9  Release: 1.2.rc15%{?dist}  Release: %{pkg_release}
10  License: LGPL  License: LGPL
11  Group: System Environment/Daemons  Group: System Environment/Daemons
12    
13  %define build_postgres 1  %define build_postgres 1
14  %define build_mysql 1  %define build_mysql 1
 %define upstream 1.0.rc15  
15    
16  Source: %{name}-%{upstream}.tar.gz  Source: http://dovecot.org/releases/%{name}-%{upstream}.tar.gz
17  Source1: dovecot.init  Source1: dovecot.init
18  Source2: dovecot.pam  Source2: dovecot.pam
19  Source3: maildir-migration.txt  Source3: maildir-migration.txt
# Line 17  Source4: migrate-folders Line 21  Source4: migrate-folders
21  Source5: migrate-users  Source5: migrate-users
22  Source6: perfect_maildir.pl  Source6: perfect_maildir.pl
23  Source7: dovecot-REDHAT-FAQ.txt  Source7: dovecot-REDHAT-FAQ.txt
24  Patch100: dovecot-1.0.rc15-default-settings.patch  Patch100: dovecot-1.0.7-default-settings.patch
25  Patch101: dovecot-1.0.beta2-pam-tty.patch  #Patch101: dovecot-1.0.beta2-pam-tty.patch
26  Patch102: dovecot-1.0.rc2-pam-setcred.patch  Patch102: dovecot-1.0.rc2-pam-setcred.patch
27  Patch103: dovecot-1.0.beta2-mkcert-permissions.patch  Patch103: dovecot-1.0.beta2-mkcert-permissions.patch
28  Patch104: dovecot-1.0.beta2-lib64.patch  #Patch104: dovecot-1.0.beta2-lib64.patch
29  Patch105: dovecot-1.0.rc7-mkcert-paths.patch  Patch105: dovecot-1.0.rc7-mkcert-paths.patch
30  #Patch105: dovecot-1.0.beta2-sqlite-check.patch  #Patch105: dovecot-1.0.beta2-sqlite-check.patch
31    
# Line 29  Patch105: dovecot-1.0.rc7-mkcert-paths.p Line 33  Patch105: dovecot-1.0.rc7-mkcert-paths.p
33  #Patch105: dovecot-auth-log.patch  #Patch105: dovecot-auth-log.patch
34    
35  # Patches 500+ from upstream fixes  # Patches 500+ from upstream fixes
36    Patch500: dovecot-1.0-CVE-2007-6598.patch
37    Patch501: dovecot-1.0-CVE-2008-1199.patch
38    
39  URL: http://www.dovecot.org/  URL: http://www.dovecot.org/
40  Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root  Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
41  BuildRequires: openssl-devel  BuildRequires: openssl-devel
# Line 43  BuildRequires: krb5-devel Line 50  BuildRequires: krb5-devel
50  # gettext-devel is needed for running autoconf because of the  # gettext-devel is needed for running autoconf because of the
51  # presence of AM_ICONV  # presence of AM_ICONV
52  BuildRequires: gettext-devel  BuildRequires: gettext-devel
53  Prereq: openssl >= 0.9.7a-43.16, /sbin/chkconfig, /usr/sbin/useradd  # Explicit Runtime Requirements
54    Requires: openssl >= 0.9.7a-43.17
55    # Package includes an initscript service file, needs to require initscripts package
56    Requires: initscripts
57    Requires(pre): /sbin/chkconfig, /usr/sbin/useradd, /sbin/service, /bin/touch, /bin/rm
58    Requires(post): /sbin/chkconfig, /usr/sbin/useradd, /sbin/chkconfig, /bin/mv, /bin/rm
59    Requires(preun): /usr/sbin/userdel, /usr/sbin/groupdel, /sbin/chkconfig, /sbin/service
60    
61  %if %{build_postgres}  %if %{build_postgres}
62  BuildRequires: postgresql-devel  BuildRequires: postgresql-devel
# Line 69  in either of maildir or mbox formats. Line 82  in either of maildir or mbox formats.
82  %setup -q -n %{name}-%{upstream}  %setup -q -n %{name}-%{upstream}
83    
84  %patch100 -p1 -b .default-settings  %patch100 -p1 -b .default-settings
85  %patch101 -p2 -b .pam-tty  #%patch101 -p2 -b .pam-tty
86  %patch102 -p1 -b .pam-setcred  %patch102 -p1 -b .pam-setcred
87  %patch103 -p1 -b .mkcert-permissions  %patch103 -p1 -b .mkcert-permissions
88  #%patch104 -p1 -b .lib64  #%patch104 -p1 -b .lib64
89  %patch105 -p1 -b .mkcert-paths  %patch105 -p1 -b .mkcert-paths
90    %patch500 -p1 -b .CVE-2007-6598
91    %patch501 -p1 -b .CVE-2008-1199
92    
93  %build  %build
94  rm -f ./configure  rm -f ./configure
# Line 94  autoreconf Line 109  autoreconf
109      --with-inotify               \      --with-inotify               \
110      --with-gssapi      --with-gssapi
111    
112  make  make %{?_smp_mflags}
113    
114  %install  %install
115  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
# Line 121  chmod 700 $RPM_BUILD_ROOT/var/run/doveco Line 136  chmod 700 $RPM_BUILD_ROOT/var/run/doveco
136  # Install dovecot.conf and dovecot-openssl.cnf  # Install dovecot.conf and dovecot-openssl.cnf
137  mkdir -p $RPM_BUILD_ROOT/%{ssldir}  mkdir -p $RPM_BUILD_ROOT/%{ssldir}
138  install -p -m644 $RPM_BUILD_DIR/dovecot-%{upstream}/dovecot-example.conf $RPM_BUILD_ROOT/%{_sysconfdir}/dovecot.conf  install -p -m644 $RPM_BUILD_DIR/dovecot-%{upstream}/dovecot-example.conf $RPM_BUILD_ROOT/%{_sysconfdir}/dovecot.conf
139  rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/dovecot-example.conf # dovecot seems to install this by itself  rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/dovecot-*example.conf # dovecot seems to install this by itself
140  install -p -m644 $RPM_BUILD_DIR/dovecot-%{upstream}/doc/dovecot-openssl.cnf $RPM_BUILD_ROOT/%{ssldir}/dovecot-openssl.cnf  install -p -m644 $RPM_BUILD_DIR/dovecot-%{upstream}/doc/dovecot-openssl.cnf $RPM_BUILD_ROOT/%{ssldir}/dovecot-openssl.cnf
141    
142  # Install some of our own documentation  # Install some of our own documentation
143  install -p -m644 $RPM_SOURCE_DIR/dovecot-REDHAT-FAQ.txt $RPM_BUILD_ROOT%{docdir}/REDHAT-FAQ.txt  install -p -m644 %{SOURCE7} $RPM_BUILD_ROOT%{docdir}/REDHAT-FAQ.txt
144    
145    # Install the licensing files into the documentation area
146    install -p -m644 $RPM_BUILD_DIR/dovecot-%{upstream}/COPYING  $RPM_BUILD_ROOT%{docdir}/COPYING
147    install -p -m644 $RPM_BUILD_DIR/dovecot-%{upstream}/COPYING.MIT  $RPM_BUILD_ROOT%{docdir}/COPYING.MIT
148    install -p -m644 $RPM_BUILD_DIR/dovecot-%{upstream}/COPYING.LGPL  $RPM_BUILD_ROOT%{docdir}/COPYING.LGPL
149    
150  mkdir -p $RPM_BUILD_ROOT%{docdir}/examples/  mkdir -p $RPM_BUILD_ROOT%{docdir}/examples/
151  install -p -m755 $RPM_BUILD_DIR/dovecot-%{upstream}/doc/mkcert.sh $RPM_BUILD_ROOT%{docdir}/examples/mkcert.sh  install -p -m755 $RPM_BUILD_DIR/dovecot-%{upstream}/doc/mkcert.sh $RPM_BUILD_ROOT%{docdir}/examples/mkcert.sh
# Line 134  for f in `cd $RPM_BUILD_DIR/dovecot-%{up Line 154  for f in `cd $RPM_BUILD_DIR/dovecot-%{up
154  done  done
155    
156  install -p -m755 -d $RPM_BUILD_ROOT%{docdir}/UW-to-Dovecot-Migration  install -p -m755 -d $RPM_BUILD_ROOT%{docdir}/UW-to-Dovecot-Migration
157  for f in maildir-migration.txt migrate-folders migrate-users perfect_maildir.pl  for f in %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6}
158  do  do
159      install -p -m644 $RPM_SOURCE_DIR/$f $RPM_BUILD_ROOT%{docdir}/UW-to-Dovecot-Migration      install -p -m644 $f $RPM_BUILD_ROOT%{docdir}/UW-to-Dovecot-Migration
160  done  done
161    
162  mv $RPM_BUILD_ROOT%{docdir} $RPM_BUILD_ROOT%{docdir}-%{version}  mv $RPM_BUILD_ROOT%{docdir} $RPM_BUILD_ROOT%{docdir}-%{version}
# Line 199  rm -rf $RPM_BUILD_ROOT Line 219  rm -rf $RPM_BUILD_ROOT
219  %doc %{docdir}-%{version}  %doc %{docdir}-%{version}
220  %config(noreplace) %{_sysconfdir}/dovecot.conf  %config(noreplace) %{_sysconfdir}/dovecot.conf
221  %config %{_sysconfdir}/rc.d/init.d/dovecot  %config %{_sysconfdir}/rc.d/init.d/dovecot
222  %config %{_sysconfdir}/pam.d/dovecot  %config(noreplace) %{_sysconfdir}/pam.d/dovecot
223    %dir %{ssldir}
224    %dir %{ssldir}/certs
225  %config(noreplace) %{ssldir}/dovecot-openssl.cnf  %config(noreplace) %{ssldir}/dovecot-openssl.cnf
226  %attr(0600,root,root) %ghost %config(missingok,noreplace) %verify(not md5 size mtime) %{ssldir}/certs/dovecot.pem  %attr(0600,root,root) %ghost %config(missingok,noreplace) %verify(not md5 size mtime) %{ssldir}/certs/dovecot.pem
227  %attr(0600,root,root) %ghost %config(missingok,noreplace) %verify(not md5 size mtime) %{ssldir}/private/dovecot.pem  %attr(0600,root,root) %ghost %config(missingok,noreplace) %verify(not md5 size mtime) %{ssldir}/private/dovecot.pem
 %dir %{_libexecdir}/%{name}  
228  %{_libexecdir}/%{name}  %{_libexecdir}/%{name}
229  %{_libdir}/%{name}  %{_libdir}/%{name}
230  %{_sbindir}/dovecot  %{_sbindir}/dovecot
# Line 215  rm -rf $RPM_BUILD_ROOT Line 236  rm -rf $RPM_BUILD_ROOT
236    
237    
238  %changelog  %changelog
239    * Thu Mar 13 2008 Tomas Janousek <tjanouse@redhat.com> - 1.0.7-2
240    - LDAP+auth cache user login mixup (CVE-2007-6598, #427575)
241    - insecure mail_extra_groups option (CVE-2008-1199, #436927)
242    
243    * Mon Nov 26 2007 Tomas Janousek <tjanouse@redhat.com> - 1.0.7-1
244    - update to latest upstream, fixes a few bugs (#331441, #245249), plus two
245      security vulnerabilities (CVE-2007-2231, CVE-2007-4211)
246    - increased default login_process_size to 64 (#253363)
247    
248  * Fri Dec 22 2006 Tomas Janousek <tjanouse@redhat.com> - 1.0-1.2.rc15  * Fri Dec 22 2006 Tomas Janousek <tjanouse@redhat.com> - 1.0-1.2.rc15
249  - reenabled GSSAPI (#220582)  - reenabled GSSAPI (#220582)
250    


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed