%define apachedir /etc/httpd %define apacheuser www %define apachegroup www %define contentdir /home/httpd Summary: The Internet Messaging Program: webmail access to IMAP/POP3 accounts. Name: imp-h3 Version: 4.1.5 Release: 1%{?dist} License: GPL Group: Applications/Horde Source: ftp://ftp.horde.org/pub/imp/tarballs/imp-h3-%{version}.tar.gz Source1: imp.conf URL: http://www.horde.org/ BuildArchitectures: noarch BuildRoot: /tmp/imp-root Requires: php >= 4.3.0 Requires: php-imap >= 4.3.0 Requires: httpd >= 2.0.46 Requires: horde >= 3.1 Obsoletes: imp Provides: imp Prereq: /usr/bin/perl %description IMP is the Internet Messaging Program, one of the Horde applications. It provides webmail access to IMAP and POP3 accounts. The Horde Project writes web applications in PHP and releases them under Open Source licenses. For more information (including help with IMP) please visit http://www.horde.org/. This package contains customizations for the Mitel Networks SME Server and will probably not work properly on other Linux systems. %prep %setup -q -n %{name}-%{version} %build %install [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{apachedir}/conf cp -p $RPM_SOURCE_DIR/imp.conf $RPM_BUILD_ROOT%{apachedir}/conf mkdir -p $RPM_BUILD_ROOT%{contentdir}/html/horde/imp cp -pR * $RPM_BUILD_ROOT%{contentdir}/html/horde/imp cd $RPM_BUILD_ROOT%{contentdir}/html/horde/imp/config for d in *.dist; do d0=`basename $d .dist` if [ ! -f "$d0" ]; then cp -p $d $d0 fi done %clean [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT %pre %post %postun %files %defattr(-,root,root) # Apache imp.conf file %config %{apachedir}/conf/imp.conf # Include top level with %dir so not all files are sucked in %dir %{contentdir}/html/horde/imp # Include top-level files by hand %{contentdir}/html/horde/imp/*.php # Include these dirs so that all files _will_ get sucked in %{contentdir}/html/horde/imp/js %{contentdir}/html/horde/imp/lib %{contentdir}/html/horde/imp/locale %{contentdir}/html/horde/imp/po %{contentdir}/html/horde/imp/scripts %{contentdir}/html/horde/imp/templates %{contentdir}/html/horde/imp/themes # Mark documentation files with %doc and %docdir %doc %{contentdir}/html/horde/imp/COPYING %doc %{contentdir}/html/horde/imp/README %docdir %{contentdir}/html/horde/imp/docs %{contentdir}/html/horde/imp/docs # Mark configuration files with %config and use secure permissions # (note that .dist files are considered software; don't mark %config) %attr(750,root,%{apachegroup}) %dir %{contentdir}/html/horde/imp/config %defattr(640,root,%{apachegroup}) %{contentdir}/html/horde/imp/config/.htaccess %{contentdir}/html/horde/imp/config/*.dist %config %{contentdir}/html/horde/imp/config/*.php %config %{contentdir}/html/horde/imp/config/*.txt %config %{contentdir}/html/horde/imp/config/*.xml %changelog * Tue Nov 13 2007 John H. Bennett III 4.1.5-1 - Updated to imp 4.1.5. [SME: 3569] * Sun Apr 29 2007 Shad L. Lords - Clean up spec so package can be built by koji/plague * Sat Mar 24 2007 John H. Bennett III 4.1.4-1.el4 - Updated to imp 4.1.4. [SME: 2784] * Sat Dec 09 2006 Shad L. Lords - Update to new release naming. No functional changes. - Make Packager generic * Sat Sep 9 2006 John H. Bennett III 4.1.3-00sme01 - Updated to imp 4.1.3. * Mon Aug 28 2006 John H. Bennett III 4.0.5-01sme01 - Updated to 4.0.5 * Wed Nov 30 2005 Gordon Rowell 4.0.4-02sme01 - Adjust Release tag to our standard format [SME: 70] * Wed Nov 09 2005 Greg Swallow 4.0.4-01.sme - Update to 4.0.4 * Fri May 06 2005 Charlie Brady 4.0.3-1sme02 - Update to 4.0.3. * Thu Apr 21 2005 Charlie Brady 4.0.3-rc1-1sme02 - Add "Provides: imp" header. - Remove pre and post scripts, as they're not relevant (and potentially troublesome) during install from CD. * Thu Mar 31 2005 Greg Swallow - [4.0.3-rc1-1sme01] - changed name to imp-h3 - Update for IMP 4 on SME7 * Tue Aug 10 2004 Shad L. Lords - [3.2.1-3sme01] - Update specfile - change apache to httpd in requires * Thu Apr 24 2003 Gordon Rowell - [3.2.1-2es01] - Check name of "imp" registry item, rather than "horde" so that we display "Welcome to webmail" [gordonr 7694] * Wed Apr 23 2003 Gordon Rowell - [3.2.1-2es00] - Rebuild [gordonr 7694] * Tue Mar 25 2003 Dan Brown - 3.2.1-2es - Fixed .spec file to include imp/download/ directory * Wed Mar 12 2003 Dan Brown - 3.2.1-1es - Rebuild with IMP 3.2.1 * Tue Feb 25 2003 Dan Brown - 3.2-1es - Rebuilt with IMP 3.2 * Tue Jun 18 2002 Dan Brown - 3.1-2es - Added Obsoletes: tag for 3.1-01rc3; hopefully this will resolve dependency problems. * Sun Jun 16 2002 Dan Brown - 3.1-1es - rebuilt for 3.1 final * Sun Jun 2 2002 Dan Brown - 3.1rc3 release 1es - rebuilt for 3.1rc3 * Fri Mar 8 2002 Dan Brown 3.0-3es - changed Apache dependency to >= 1.3.19 * Sun Feb 10 2002 Dan Brown - 3.0 release 2es - removed httpd restart--it's giving errors on SME 5.1.2, and it's handled by the e-smith-horde RPM * Sat Feb 09 2002 Dan Brown - 3.0 release 1es - changed apache user, group, and content directory * Wed Jan 02 2002 Brent J. Nordquist - 3.0 release 1 * Mon Dec 24 2001 Brent J. Nordquist - 3.0-RC4 release 1 * Sat Dec 15 2001 Brent J. Nordquist - rewritten for IMP 3.0 * Wed Nov 14 2001 Brent J. Nordquist - 2.2.7 release 1rh7 * Sat Jul 21 2001 Brent J. Nordquist - 2.2.6 release 1rh7 * Tue Feb 06 2001 Brent J. Nordquist - 2.2.4 release 1rh7