%define plugin_name compatibility %define plugin_version 2.0.13 %define squirrelmail_version 1.0 Name: squirrelmail-%{plugin_name} Version: %{plugin_version}.sq%{squirrelmail_version} Release: 1%{?dist} Summary: Squirrelmail quota check plugin Group: Applications/Communications License: GPLv2 URL: http://www.squirrelmail.org/plugin_view.php?id=237 Source0: http://www.squirrelmail.org/plugins/%{plugin_name}-%{plugin_version}-%{squirrelmail_version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch Requires: squirrelmail >= 1.4.13 %description This plugin will check and display users' mail quota status. Current and maximum quota usage is displayed in easy-to-read graphical format. Optional warnings may also be displayed to users who are nearing their quota allocation when they log in (where the "Message Of The Day" would normally be displayed). This plugin is compatible with three types of mail quota systems: UNIX (filesystem), IMAP-based, and cPanel quotas. %prep %setup -q -n %{plugin_name} %build rm -rf patches\* getpot make_release.sh %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/squirrelmail \ $RPM_BUILD_ROOT%{_datadir}/squirrelmail/plugins cp -arf ../%{plugin_name} $RPM_BUILD_ROOT%{_datadir}/squirrelmail/plugins/ #cp -af config.sample.php \ # $RPM_BUILD_ROOT%{_sysconfdir}/squirrelmail/%{plugin_name}.php #ln -s \ # %{_sysconfdir}/squirrelmail/%{plugin_name}.php \ # $RPM_BUILD_ROOT%{_datadir}/squirrelmail/plugins/%{plugin_name}/config.php %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc README COPYING INSTALL #%config %{_sysconfdir}/squirrelmail/%{plugin_name}.php %dir %{_datadir}/squirrelmail/plugins/%{plugin_name} %{_datadir}/squirrelmail/plugins/%{plugin_name}/* %changelog