File horde3-gollem.spec of Package horde3-gollem
#
# spec file for package horde3-gollem
#
# 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 _gollemdir %{_hordedir}/gollem
Name: horde3-gollem
Version: 1.1.2
Release: 2
Summary: Horde Webbased File Manager
License: GPL
Group: Productivity/Networking/Other
Url: http://www.horde.org/gollem
Source0: gollem-h3-%{version}.tar.bz2
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires: horde3 >= 3.3.0
BuildRequires: horde3
Recommends: php5-pear-HTTP_WebDAV_Server
BuildRequires: apache2-devel pcre-devel
%if 0%{?sles_version} != 10
BuildRequires: fdupes
%endif
Obsoletes: gollem <= 1.1.1
%description
Gollem is a web-based file manager, providing the ability to fully manage a
hierarchical file system stored in a variety of backends such as a SQL
database, as part of a real filesystem, an FTP server, or an SSH2 server.
Authors:
--------
Core Developers
* Michael Slusarz <slusarz@curecanti.org>
%prep
%setup -qn gollem-h3-%{version}
%build
pushd config/
for i in *.dist; do %__mv $i ${i%.dist}; done
popd
%install
%__mkdir_p %{buildroot}/%{_gollemdir}
%__cp -r ./* %{buildroot}/%{_gollemdir}
%__rm -rf %{buildroot}/%{_gollemdir}/{docs,README,COPYING}
# remove and link duplicate files
%if 0%{?sles_version} != 10
%fdupes %buildroot/%{_gollemdir}
%endif
%find_lang gollem
%clean
%__rm -rf %{buildroot}
%files -f gollem.lang
%defattr(-, root, root)
%doc docs README COPYING
%dir %{_gollemdir}
%{_gollemdir}/*.php
%{_gollemdir}/lib
%{_gollemdir}/po
%dir %{_gollemdir}/locale
%dir /srv/www/htdocs/horde/gollem/locale/*
%dir /srv/www/htdocs/horde/gollem/locale/*/LC_MESSAGES
%{_gollemdir}/locale/*/*.xml
%{_gollemdir}/js
%{_gollemdir}/templates
%{_gollemdir}/themes
%attr(0750, wwwrun, www) %dir %{_gollemdir}/config
%attr(0640, wwwrun, www) %config(noreplace) %{_gollemdir}/config/*
%changelog