File horde3-imp.spec of Package horde3-imp

#
# spec file for package horde3-imp
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild

%define _hordedir %(%{_sbindir}/apxs2 -q datadir)/htdocs/horde/
%define _impdir %{_hordedir}/imp

Name:           horde3-imp
Version:        4.3.9
Release:        1
Summary:        Horde IMP Web-Based Mail Client
License:        GPL
Group:          Productivity/Networking/Email/Utilities
Url:            http://www.horde.org/imp
Source0:        imp-h3-%{version}.tar.bz2
Patch0:         imp-h3-4.3.8-usr_local.patch
Patch1:         imp-h3-4.3.8-php5_exec.patch
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       horde3 
BuildRequires:  apache2-devel horde3 pcre-devel
%if 0%{?sles_version} != 10 
BuildRequires:  fdupes
%endif

%description
A set of PHP scripts that implement an IMAP-based Web mail system.
Assuming you have an account on a server that supports IMAP, you can
theoretically use an installation of IMP to check your mail from
anywhere you have Web access.

IMP does not require an IMAP server to be running on the machine you
install it on unless you are intending to have it use the current
machine for its IMAP connections. If you are connecting to a local
server for your mail, you do not need IMAP.

IMP requires a database to be running if you want to use the extended
features, such as the address book and prefs.  It currently supports
PostgreSQL, MySql, Oracle, Informix, and Sybase.



Authors:
--------
    Chuck Hagenbuch <chuck@horde.org>
    Jason "ZeroDiViDe" Orcutt <zerodiv@zerodivide.net>
    Mike Hardy <mike@itsprojects.com>
    Ivan E. Moore II <rkrusty@tdyc.com>

%prep
%setup -qn imp-h3-%{version}
%patch0
%patch1

%build
pushd config/
for i in *.dist; do %__mv $i ${i%.dist}; done
popd

%install
%__mkdir_p %{buildroot}/%{_impdir}
%__cp -r ./* %{buildroot}/%{_impdir}
%__rm -rf %{buildroot}/%{_impdir}/{docs,README,COPYING}
# remove and link duplicate files  
%if 0%{?sles_version} != 10 
 %fdupes %buildroot/%{_impdir}
%endif
%find_lang imp

%clean
%__rm -rf %{buildroot}

%files -f imp.lang
%defattr(-, root, root)
%doc docs README COPYING
%dir %{_impdir}
%{_impdir}/*.php
%{_impdir}/lib

%{_impdir}/po
%dir %{_impdir}/locale
%dir /srv/www/htdocs/horde/imp/locale/*
%dir /srv/www/htdocs/horde/imp/locale/*/LC_MESSAGES

%dir /srv/www/htdocs/horde/imp/locale/*/*.xml
%{_impdir}/locale/.htaccess
%{_impdir}/js
%{_impdir}/scripts
%{_impdir}/templates
%{_impdir}/themes
%attr(0750, wwwrun, www) %dir %{_impdir}/config
%attr(0640, wwwrun, www) %config(noreplace) %{_impdir}/config/*
%attr(0640, wwwrun, www) %config(noreplace) %{_impdir}/config/.htaccess

%changelog
openSUSE Build Service is sponsored by