File horde3-mimp.spec of Package horde3-mimp

#
# spec file for package horde3-mimp
#
# 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 _mimpdir %{_hordedir}/mimp

Name:           horde3-mimp
Version:        1.1.4
Release:        1
Summary:        The reduced mobile device frontend for IMP webmail
License:        GPLv2
Group:          Productivity/Networking/Other
Url:            http://www.horde.org/mimp
Source0:        ftp://ftp.horde.org/pub/mimp/mimp-h3-1.1.4.tar.gz
Source1:        http://www.gnu.org/licenses/gpl-2.0.txt
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Requires:       horde3 >= 3.3.0 horde3-imp php5
BuildRequires:  apache2-devel horde3

%description
MIMP is a project to create a version of IMP suitable for mobile
devices such as WAP phones or PDAs. Basic IMP functionality is
implemented including mailbox viewing and paging, viewing messages,
deleting, replying, forwarding, and composing new messages.
This is probably the last version of the standalone MIMP packages
as MIMP will be an integrated part of further IMP releases

Authors:
--------
	Chuck Hagenbuch <chuck@horde.org>
	Jan Schneider <jan@horde.org>
	Michael Slusarz <slusarz@curecanti.org>

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

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

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

%clean
%__rm -rf %{buildroot}

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

%{_mimpdir}/po
%dir %{_mimpdir}/locale
%dir /srv/www/htdocs/horde/mimp/locale/*
%dir /srv/www/htdocs/horde/mimp/locale/*/LC_MESSAGES

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

%changelog
openSUSE Build Service is sponsored by