%define plugin_version 2.2 %define squirrelmail_version 1.4.0 Name: squirrelmail-check_quota Version: %{plugin_version}.sq%{squirrelmail_version} Release: 3%{?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/check_quota-%{plugin_version}-%{squirrelmail_version}.tar.gz Source1: check_quota-sk.po BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: gettext-devel Requires: squirrelmail, squirrelmail-compatibility %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 check_quota %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/squirrelmail \ $RPM_BUILD_ROOT%{_datadir}/squirrelmail/plugins cp -arf ../check_quota $RPM_BUILD_ROOT%{_datadir}/squirrelmail/plugins/ cp -af config.sample.php \ $RPM_BUILD_ROOT%{_sysconfdir}/squirrelmail/check_quota.php ln -s \ %{_sysconfdir}/squirrelmail/check_quota.php \ $RPM_BUILD_ROOT%{_datadir}/squirrelmail/plugins/check_quota/config.php # sk translation SK_DIR=$RPM_BUILD_ROOT%{_datadir}/squirrelmail/locale/sk_SK/LC_MESSAGES mkdir -p $SK_DIR cp -a %{SOURCE1} $SK_DIR/check_quota.po msgfmt -o $SK_DIR/check_quota.mo $SK_DIR/check_quota.po %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc README CHANGELOG FAQ INSTALL LICENSE TRANSLATING %config(noreplace) %{_sysconfdir}/squirrelmail/check_quota.php %dir %{_datadir}/squirrelmail/plugins/check_quota %{_datadir}/squirrelmail/plugins/check_quota/* %{_datadir}/squirrelmail/locale/sk_SK/LC_MESSAGES/check_quota.[pm]o %changelog