1 %define _plugin retrieveuserdata
3 Summary: Plugin for retrieving user data from external sources
4 Summary(pl.UTF-8): Wtyczka do pobierania danych użytkowników z zewnętrznych źródeł
5 Name: squirrelmail-plugin-%{_plugin}
9 Group: Applications/Mail
10 Source0: http://www.squirrelmail.org/plugins/%{_plugin}.%{version}-%{mversion}.tar.gz
11 # Source0-md5: dfe469f7ab473fd2292b30800e3141d5
12 Patch0: %{name}-passwd.patch
13 URL: http://www.squirrelmail.org/plugin_view.php?id=11
14 Requires: squirrelmail >= 1.4.6-2
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 %define _plugindir %{_datadir}/squirrelmail/plugins/%{_plugin}
19 %define _sysconfdir /etc/webapps/squirrelmail
22 This plugin retrieves the full name and the email address of a
23 SquirrelMail user from an external source and writes them to the
24 user's preferences. Your users don't have to enter their name and
25 email address before they write their first email.
27 %description -l pl.UTF-8
28 Ta wtyczka pobiera pełne imię i nazwisko oraz adres email użytkownika
29 Wiewiórczej Poczty z zewnętrznego źródła i zapisuje je w ustawieniach.
30 Użytkownicy nie będą musieli wpisywać swoich danych przed wysłaniem
31 swojego pierwszego maila.
34 %setup -q -n %{_plugin}
38 rm -rf $RPM_BUILD_ROOT
39 install -d $RPM_BUILD_ROOT%{_plugindir} $RPM_BUILD_ROOT%{_sysconfdir}
41 mv config.php $RPM_BUILD_ROOT%{_sysconfdir}/%{_plugin}_config.php
42 install *.php $RPM_BUILD_ROOT%{_plugindir}
43 ln -s %{_sysconfdir}/%{_plugin}_config.php $RPM_BUILD_ROOT%{_plugindir}/config.php
46 rm -rf $RPM_BUILD_ROOT
49 %defattr(644,root,root,755)
50 %doc INSTALL users_example.txt
51 %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{_plugin}_config.php