squirrelmail-plugin-saconf.spec
Michal 'lipek' Lipka
lipek w lipek.pl
Pon, 22 Paź 2007, 14:47:53 CEST
Witam
zgodnie z zasadą pld zrób to sam zrobiłem speca do spluginu saconf dla
squirrelmaila.
spec był prosty i oczywiście u mnie działa
ponieważ nie znam się na robieniu speców to proszę o wskazanie
ewentualnych błędów
pozdrawiam
Michał 'lipek' Lipka
-------------- następna część ---------
# $Revision: 1.1 $, $Date: 2007/10/19 14:34:00 $
%define _plugin saconf
%define mversion 1.2.7
Summary: SAConf is a SquirrelMail plugin that allows users to configure the behavior of the SpamAssassin mail filter.
Summary(pl.UTF-8): Wtyczka dla Squirrelmail pozwalajÄ
ca kontrolowaÄ zachowanie SpamAssassina.
Name: squirrelmail-plugin-%{_plugin}
Version: 1.0
Release: 1
License: GPL
Group: Applications/Mail
Source0: http://www.squirrelmail.org/plugins/%{_plugin}.%{version}-%{mversion}.tar.gz
# Source0-md5: cd5dc5d89fa6827a5b662525b16afc89
URL: http://www.squirrelmail.org/plugin_view.php?id=111
Requires: php(ftp)
Requires: squirrelmail >= 1.4.6-2
Obsoletes: squirrelmail-plugin-saconf
Obsoletes: squirrelmail-saconf
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _plugindir %{_datadir}/squirrelmail/plugins/%{_plugin}
%define _sysconfdir /etc/webapps/squirrelmail
%description
SAConf is a SquirrelMail plugin that allows users to configure the
behavior of the SpamAssassin mail filter. Specifically SAConf can
modify a user's spam threshold value, whitelist contents, and destination
folder for spam. SAConf connects to the mail server via FTP and modifies
the user's .procmailrc and .spamassassin/user_prefs files.
FTP support in PHP is required to use SAConf..
%description -l pl.UTF-8
Ta wtyczka umoĹźliwia kontrolowanie zachowania SpamAssassina (punktowanie,
biaĹa lista, folder spamu) poprzez modyfikacjÄ plikĂłw .procmailrc
i .spamassassin/user_prefs w katalogu uĹźytkownika.
Wymagana jest obsĹuga prokotoĹu FTP w PHP.
%prep
%setup -q -n %{_plugin}
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_plugindir} $RPM_BUILD_ROOT%{_sysconfdir}
install *.php $RPM_BUILD_ROOT%{_plugindir}
rm -rf saconf_options.php~
mv $RPM_BUILD_ROOT%{_plugindir}/saconf_conf.php $RPM_BUILD_ROOT%{_sysconfdir}/saconf_conf.php
ln -s %{_sysconfdir}/saconf_conf.php $RPM_BUILD_ROOT%{_plugindir}/saconf_conf.php
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc README
%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/saconf_conf.php
%dir %{_plugindir}
%{_plugindir}/*.php
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <feedback w pld-linux.org>
All persons listed below can be reached at <cvs_login>@pld-linux.org
Więcej informacji o liście dyskusyjnej pld-devel-pl