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


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