Name : openwebmail Version : 2.53 Release : 6.el6 BuildArch : noarch License : GPLv2 Summary : openwebmail main (cgi-bin) package Group : Applications/Internet URL : http://openwebmail.org Vendor : Open Webmail Project Packager : Thomas Chung BuildRoot : %{_tmppath}/%{name}-%{version}-buildroot Source0 : %{name}-%{version}.tar.gz Source1 : openwebmail.conf Source2 : openwebmail-auth.conf Source3 : openwebmail.logrotate Source4 : openwebmail-dbm.conf Source5 : openwebmail-httpd.conf Source6 : openwebmail-fix.sh Source7 : openwebmail-post.txt Requires : openwebmail-data = %{version}-%{release} Requires : perl-suidperl Requires : perl-CGI Requires : perl-Text-Iconv Requires : perl-Compress-Zlib AutoReq : no AutoProv : no %description Open WebMail is a webmail system based on the Neomail version 1.14 from Ernie Miller. Open WebMail is designed to manage very large mail folder files in a memory efficient way. It also provides a range of features to help users migrate smoothly from Microsoft Outlook to Open WebMail. %prep rm -rf %{buildroot} ############################################ # {_sourcedir} : /usr/src/redhat/SOURCES # {_builddir} : /usr/src/redhat/BUILD # {_tmppath} : /var/tmp # {_libdir} : /usr/lib # {_bindir} : /usr/bin # {_datadir} : /usr/share # {_mandir} : /usr/share/man # {_sysconfdir} : /etc # {buildroot} # {name} # {version} # {release} # rpm --showrc for more info ############################################# %install mkdir -p %{buildroot}/var/www/{cgi-bin,data,html} tar -zxBpf %{SOURCE0} --directory=%{buildroot}/var/www install -p -m644 %{SOURCE1} %{buildroot}/var/www/cgi-bin/openwebmail/etc/openwebmail.conf install -p -m644 %{SOURCE2} %{buildroot}/var/www/cgi-bin/openwebmail/etc/auth_unix.conf mkdir -p %{buildroot}/etc/smrsh ln -sf /var/www/cgi-bin/openwebmail/vacation.pl %{buildroot}/etc/smrsh/vacation.pl mkdir -p %{buildroot}/etc/logrotate.d install -p -m644 %{SOURCE3} %{buildroot}/etc/logrotate.d/openwebmail.logrotate install -p -m644 %{SOURCE4} %{buildroot}/var/www/cgi-bin/openwebmail/etc/dbm.conf mkdir -p %{buildroot}/etc/httpd/conf.d install -p -m644 %{SOURCE5} %{buildroot}/etc/httpd/conf.d/openwebmail.conf mkdir -p %{buildroot}/usr/local/bin install -p -m755 %{SOURCE6} %{buildroot}/usr/local/bin/openwebmail-fix cp %{SOURCE7} %{_builddir} %clean rm -rf %{buildroot} %files ########################################################### # defattr sets the default attributes for all files # config will save old config file as .rpmsave # config(noreplace) will save new config file as .rpmnew ########################################################### %defattr (-,root,root) %doc openwebmail-post.txt /etc/httpd/conf.d/openwebmail.conf /var/www/cgi-bin/openwebmail /etc/smrsh/vacation.pl /etc/logrotate.d/openwebmail.logrotate /usr/local/bin/openwebmail-fix %pre if [ -e /var/www/cgi-bin/openwebmail/etc/openwebmail.conf ] then cp /var/www/cgi-bin/openwebmail/etc/openwebmail.conf /var/www/cgi-bin/openwebmail/etc/openwebmail.conf.rpmsave fi %post /usr/local/bin/openwebmail-fix > /dev/null echo "See post install instruction at:" echo "/usr/share/doc/openwebmail-2.53/openwebmail-post.txt" %package -n %{name}-data Version : %{version} Release : %{release} Group : Applications/Internet Summary : openwebmail data package Requires : openwebmail = %{version}-%{release} AutoReq : no AutoProv : no %description -n %{name}-data openwebmail-data contains most data for openwebmail such as: doc, help, images, javascripts, sounds, applets and html files. %files -n %{name}-data /var/www/data/openwebmail %changelog * Fri Jan 23 2015 Thomas Chung 2.53-6 - Replace perl-IO-Compress-Base with perl-Compress-Zlib * Mon Jan 19 2015 Thomas Chung 2.53-5 - Replace dependency perl-IO-Compress with perl-IO-Compress-Base to avoid using rpmforge repository * Sat Jan 17 2015 Thomas Chung 2.53-4 - Rebuild from EL6 with noarch - Fix dependencies for EL6 - Remove dependencies perl-MIME-Base64 and perl-Digest-MD5 - Use rpmforge to install perl-IO-Compress * Thu Feb 21 2008 Thomas Chung 2.53-3 - Fix default attributes for all files - Remove a duplicate file for openwebmail/etc/openwebmail.conf * Tue Jan 29 2008 Thomas Chung 2.53-2 - Set enable_viruscheck to no in openwebmail.conf to prevent Internal Server Error - Remove post install instruction from postinstall scriptlet Add post install instruction to openwebmail-post.txt - Save old config as openwebmail.conf.rpmsave in preinstall scriptlet and files * Fri Jan 25 2008 Thomas Chung 2.53-1 - Version 2.53 - Subpackage openwebmail-data - Add openwebmail-dbm.conf - Add openwebmail-httpd.conf - Add openwebmail-fix.sh * Tue May 02 2006 Thomas Chung 2.52-1 - Version 2.52 * Mon Feb 28 2005 Thomas Chung 2.51-1 - Version 2.51 * Thu Jan 06 2005 Thomas Chung 2.50-1 - Version 2.50 * Sun Sep 26 2004 Thomas Chung 2.41-1 - Version 2.41 * Sun Aug 15 2004 Thomas Chung 2.40-1 - Version 2.40 * Mon Jul 26 2004 Thomas Chung - Add dependency check for perl - Add dependency check for perl-suidperl - Add dependency check for perl-Compress-Zlib - Add dependency check for perl-Text-Iconv * Thu Jul 22 2004 Thomas Chung - Clean up spec file - Use macro