SPECS: roundcubemail.spec (NEW) - initial release

blues blues at pld-linux.org
Sat Jun 17 19:53:43 CEST 2006


Author: blues                        Date: Sat Jun 17 17:53:43 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- initial release

---- Files affected:
SPECS:
   roundcubemail.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/roundcubemail.spec
diff -u /dev/null SPECS/roundcubemail.spec:1.1
--- /dev/null	Sat Jun 17 19:53:43 2006
+++ SPECS/roundcubemail.spec	Sat Jun 17 19:53:37 2006
@@ -0,0 +1,103 @@
+# $Revision$, $Date$
+# TODO:
+# - prepare config for apache (don't install boundled .htaccess)
+# - prepare config for lighttp
+# - add logrotate file
+# - it has PEAR boundled inside - use system ones
+# - review patches:
+#   http://sourceforge.net/forum/forum.php?forum_id=543557
+#
+%define		_beta	beta
+Summary:	RoundCube Webmail
+Name:		roundcubemail
+Version:	0.1
+Release:	0.%{_beta}.0.1
+License:	GPL v2
+Group:		Applications/WWW
+Source0:	http://dl.sourceforge.net/roundcubemail/%{name}-%{version}%{_%{_beta}}.tar.gz
+# Source0-md5:	cdbcdfd419c01a4c437327c625d28da5
+Patch0:		%{name}-config.patch
+URL:		http://www.roundcube.net/
+BuildRequires:	rpmbuild(macros) >= 1.268
+Requires:	php-pcre
+Requires:	webapps
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_webapps	/etc/webapps
+%define		_webapp		%{name}
+%define		_sysconfdir	%{_webapps}/%{_webapp}
+%define		_appdir		%{_datadir}/%{_webapp}
+%define		_appdatadir	/var/lib/roundcube
+
+%description
+RoundCube Webmail is a browser-based multilingual IMAP client with an
+application-like user interface. It provides full functionality you
+expect from an e-mail client, including MIME support, address book,
+folder manipulation and message filters. RoundCube Webmail is written
+in PHP and requires the MySQL database. The user interface is fully
+skinnable using XHTML and CSS 2.
+
+%prep
+%setup -q -n %{name}-%{version}%{_%{_beta}}
+%patch0 -p1
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_appdatadir},%{_sysconfdir},/var/log/roundcube} \
+	$RPM_BUILD_ROOT%{_appdir}/{config,program,skins}
+
+# Main application part:
+cp -R program/* $RPM_BUILD_ROOT%{_appdir}/program
+
+# Skins installation (maybe it should be as config??)
+cp -R skins/* $RPM_BUILD_ROOT%{_appdir}/skins
+
+## Configuration:
+install config/db.inc.php.dist $RPM_BUILD_ROOT%{_sysconfdir}/db.inc.php
+install config/main.inc.php.dist $RPM_BUILD_ROOT%{_sysconfdir}/main.inc.php
+ln -sf %{_sysconfdir}/db.inc.php $RPM_BUILD_ROOT%{_appdir}/config/db.inc.php
+ln -sf %{_sysconfdir}/main.inc.php $RPM_BUILD_ROOT%{_appdir}/config/main.inc.php
+
+%triggerin -- apache1
+%webapp_register apache %{_webapp}
+
+%triggerun -- apache1
+%webapp_unregister apache %{_webapp}
+
+%triggerin -- apache < 2.2.0, apache-base
+%webapp_register httpd %{_webapp}
+
+%triggerun -- apache < 2.2.0, apache-base
+%webapp_unregister httpd %{_webapp}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG INSTALL README UPGRADING SQL
+%dir %attr(750,root,http) %{_sysconfdir}
+#%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
+#%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf
+%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.php
+%dir %{_appdir}
+%dir %{_appdir}/config
+%{_appdir}/config/*.php
+%dir %{_appdir}/program
+%{_appdir}/program/*
+%dir %{_appdir}/skins
+%{_appdir}/skins/default
+%dir %attr(770,root,http) /var/log/roundcube
+# %ghost logfile
+%dir %attr(770,root,http) %{_appdatadir}
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2006/06/17 17:53:37  blues
+- initial release
+
================================================================


More information about the pld-cvs-commit mailing list