File horde3-dimp.spec of Package horde3-dimp.import5829

#
# spec file for package horde3-dimp
#
# Copyright (c) 2012 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/
#


%define _hordedir %(%{_sbindir}/apxs2 -q datadir)/htdocs/horde/
%define _dimpdir %{_hordedir}/dimp

Name:           horde3-dimp
Version:        1.1.8
Release:        0.<RELEASE2>
Summary:        Horde DIMP Ajax Web-Based Mail Client
License:        GPL-2.0
Group:          Productivity/Networking/Email/Utilities
Url:            http://www.horde.org/imp
Source0:        dimp-h3-%{version}.tar.gz
Source1:        http://www.gnu.org/licenses/gpl-2.0.txt
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       horde3 >= 3.3.0
Requires:       horde3-imp
BuildRequires:  apache2-devel
BuildRequires:  horde3
BuildRequires:  pcre-devel
%if 0%{?sles_version} != 10 
BuildRequires:  fdupes
%endif
Obsoletes:      dimp <= 1.1.7
Provides:       dimp = %{version}

%description
DIMP is a project to create a version of IMP utilizing AJAX-like technologies
to allow a more dynamic user experience (thus DIMP... Dynamic IMP).

As of IMP 5.0, the DIMP display has been fully incorporated into IMP. 
All support and development questions are handled through the IMP project.

Authors:
--------
Core Developers

    * Chuck Hagenbuch <chuck@horde.org>
    * Jan Schneider <jan@horde.org>
    * Michael Slusarz <slusarz@horde.org>


%prep
%setup -qn dimp-h3-%{version}

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

%install
%__mkdir_p %{buildroot}/%{_dimpdir}
%__cp -r ./* %{buildroot}/%{_dimpdir}
%__rm -rf %{buildroot}/%{_dimpdir}/{docs,README,COPYING}
%__cp %{SOURCE1} %{buildroot}/%{_dimpdir}/COPYING

# remove and link duplicate files  
%if 0%{?sles_version} != 10 
 %fdupes %buildroot/%{_dimpdir}
%endif
%find_lang dimp

%clean
%__rm -rf %{buildroot}

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

%{_dimpdir}/po
%dir %{_dimpdir}/locale
%dir /srv/www/htdocs/horde/dimp/locale/*
%dir /srv/www/htdocs/horde/dimp/locale/*/LC_MESSAGES

%{_dimpdir}/js
%{_dimpdir}/templates
%{_dimpdir}/themes
%attr(0750, wwwrun, www) %dir %{_dimpdir}/config
%attr(0640, wwwrun, www) %config(noreplace) %{_dimpdir}/config/*
%attr(0640, wwwrun, www) %config(noreplace) %{_dimpdir}/config/.htaccess

%changelog
openSUSE Build Service is sponsored by