1 |
# $Id: smeserver-userpanels.spec,v 1.11 2008/04/28 23:21:45 slords Exp $ |
2 |
# Authority: dungog |
3 |
# Name: Stephen Noble |
4 |
|
5 |
Summary: Panels to let users to change server settings. |
6 |
%define name smeserver-userpanels |
7 |
Name: %{name} |
8 |
%define version 1.0 |
9 |
%define release 14 |
10 |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
12 |
License: GNU GPL version 2 |
13 |
URL: http://www.dungog.net/wiki |
14 |
Group: SMEserver/addon |
15 |
Source: %{name}-%{version}.tar.gz |
16 |
Patch0: smeserver-vacation-1.0-esLocalePasswd+Fwd.patch |
17 |
Patch1: smeserver-vacation-1.0-svLocalePasswd+Fwd.patch |
18 |
Patch2: smeserver-userpanels-1.0-frLocale.patch |
19 |
Patch3: smeserver-userpanels-1.0-pootle.patch |
20 |
Patch4: smeserver-userpanels-1.0-locale-2008-03-14.patch |
21 |
Patch5: smeserver-userpanels-1.0-locale-2008-04-01.patch |
22 |
Patch6: smeserver-userpanels-1.0-locale-2008-04-22.patch |
23 |
Patch7: smeserver-userpanels-1.0-add2general.patch |
24 |
Patch8: smeserver-userpanels-1.0-locale-2008-05-05.patch |
25 |
Patch9: smeserver-userpanels-1.0-add2general.patch2 |
26 |
BuildArchitectures: noarch |
27 |
BuildRoot: /var/tmp/%{name}-%{version} |
28 |
Requires: e-smith-release >= 7.0 |
29 |
Requires: e-smith-formmagick >= 1.4.0-12 |
30 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
31 |
AutoReqProv: no |
32 |
|
33 |
%description |
34 |
Provides additinal userpanels that allows user settings to be altered. |
35 |
Change password,Forward mail, Backup users home directory, |
36 |
Delegate creation of users with restrictions. |
37 |
|
38 |
%changelog |
39 |
* Mon May 5 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-14 |
40 |
- Fixed locale issue with button not being translated in password panel |
41 |
- Added 5 May 2008 locale patch from the translate engine |
42 |
|
43 |
* Sat Apr 26 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-13 |
44 |
- Add common <base> tags to e-smith-formmagick's general |
45 |
|
46 |
* Tue Apr 22 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-12 |
47 |
- Apply 22 April 2008 locale patch |
48 |
|
49 |
* Tue Apr 1 2008 Shad L. Lords <slords@mail.com> 1.0-11 |
50 |
- Update to UTF-8 translations |
51 |
|
52 |
* Fri Mar 14 2008 Stephen Noble <support@dungog.net> - 1.0-10 |
53 |
- Add requires for e-smith-formmagick for UTF-8 support [SME: 3858] |
54 |
|
55 |
* Fri Mar 14 2008 Stephen Noble <support@dungog.net> - 1.0-9 |
56 |
- update locale 2008-03-14 |
57 |
|
58 |
* Sat Mar 07 2008 Stephen Noble <support@dungog.net> - 1.0-8 |
59 |
- prepare en lexicons for pootle translations |
60 |
|
61 |
* Tue Dec 25 2007 Stephen Noble <support@dungog.net> 1.0-7 |
62 |
- add french translation, thanks Sylvain Gomez |
63 |
|
64 |
* Thu Dec 6 2007 Stephen Noble <support@dungog.net> 1.0-6 |
65 |
- swedish translation, thanks Chrille |
66 |
|
67 |
* Thu Dec 6 2007 Stephen Noble <support@dungog.net> 1.0-5 |
68 |
- remove Requires: smeserver-userpanel |
69 |
|
70 |
* Mon Oct 29 2007 Stephen Noble <support@dungog.net> 1.0-4 |
71 |
- update spanish translations, thanks Normando Hall [SME 3503] |
72 |
|
73 |
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
74 |
- Clean up spec so package can be built by koji/plague |
75 |
|
76 |
* Mon Oct 30 2006 Stephen Noble <support@dungog.net> |
77 |
- forwarding lexicon updated for de |
78 |
- [1.0-3] |
79 |
|
80 |
* Sun Mar 26 2006 Stephen Noble <support@dungog.net> |
81 |
- forwarding and password lexicons updated for de |
82 |
- fix, error in logs starting httpd-admin [sme 1991] |
83 |
- [1.0-2] |
84 |
|
85 |
* Sun Mar 26 2006 Stephen Noble <support@dungog.net> |
86 |
- Userpanel-forwarding lexicons for de, fr |
87 |
- Partial forwarding lexicons for es, it |
88 |
- [1.0-1] |
89 |
|
90 |
* Fri Mar 17 2006 Stephen Noble <support@dungog.net> |
91 |
- FormMagick version for Userpanel-forward, english only |
92 |
- Userpanel-password updated to current FM style |
93 |
- [0.9-3] |
94 |
|
95 |
* Wed Sep 21 2005 Stephen Noble <support@dungog.net> |
96 |
- FormMagick version for Userpanel-password, Languages included |
97 |
- [0.9-2] |
98 |
|
99 |
* Wed Sep 21 2005 Stephen Noble <support@dungog.net> |
100 |
- initial release, contains |
101 |
- userdata-backup, useraccounts, forward mail, change password |
102 |
- [0.9-1] |
103 |
|
104 |
%prep |
105 |
%setup |
106 |
%patch0 -p1 |
107 |
%patch1 -p1 |
108 |
%patch2 -p1 |
109 |
%patch3 -p1 |
110 |
%patch4 -p1 |
111 |
%patch5 -p1 |
112 |
%patch6 -p1 |
113 |
%patch7 -p1 |
114 |
%patch8 -p1 |
115 |
%patch9 -p1 |
116 |
%build |
117 |
LEXICONS=$(find root/etc/e-smith/locale/ -type f ) |
118 |
for lexicon in $LEXICONS root/etc/e-smith/web/functions/userpanel-{password,forwarding} |
119 |
do |
120 |
/sbin/e-smith/validate-lexicon $lexicon |
121 |
done |
122 |
|
123 |
perl createlinks |
124 |
|
125 |
%install |
126 |
rm -rf $RPM_BUILD_ROOT |
127 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
128 |
rm -f %{name}-%{version}-filelist |
129 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
130 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
131 |
|
132 |
%clean |
133 |
cd .. |
134 |
rm -rf %{name}-%{version} |
135 |
|
136 |
%pre |
137 |
%preun |
138 |
|
139 |
%post |
140 |
#new installs |
141 |
if [ $1 = 1 ] ; then |
142 |
globalUP=`/sbin/e-smith/db accounts get globalUP` |
143 |
if [ "x$globalUP" = "x" ]; then |
144 |
/sbin/e-smith/db accounts set globalUP userpanelglobal FirstName "global user" LastName "panel access" AdminPanels userpanel-forwarding,userpanel-password || : |
145 |
fi |
146 |
fi |
147 |
|
148 |
#upgrades (and new installs) |
149 |
if [ -d /etc/e-smith/events/conf-userpanel ] ; then |
150 |
/sbin/e-smith/signal-event conf-userpanel |
151 |
fi |
152 |
|
153 |
%postun |
154 |
#uninstall |
155 |
if [ $1 = 0 ] ; then |
156 |
DBS=`find /home/e-smith/db/navigation -type f -name "navigation.*"` |
157 |
for db in $DBS ; do |
158 |
/sbin/e-smith/db $db delete userpanel-password 2>/dev/null |
159 |
/sbin/e-smith/db $db delete userpanel-userbackup 2>/dev/null |
160 |
/sbin/e-smith/db $db delete userpanel-forwarding 2>/dev/null |
161 |
/sbin/e-smith/db $db delete userpanel-useraccounts 2>/dev/null |
162 |
done |
163 |
fi |
164 |
|
165 |
%files -f %{name}-%{version}-filelist |
166 |
%defattr(-,root,root) |