1 |
# $Id: smeserver-userpanels.spec,v 1.32 2010/05/23 19:14:53 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 31 |
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 |
Patch10: smeserver-userpanels-1.0-locale-2008-05-21.patch |
27 |
Patch11: smeserver-userpanels-1.0-locale-2008-06-27.patch |
28 |
Patch12: smeserver-userpanels-1.0-locale-2008-07-01.patch |
29 |
Patch13: smeserver-userpanels-1.0-locale-2008-09-27.patch |
30 |
Patch14: smeserver-userpanels-1.0-locale-2008-10-14.patch |
31 |
Patch15: smeserver-userpanels-1.0-locale-2008-10-15.patch |
32 |
Patch16: smeserver-userpanels-1.0-locale-2008-10-16.patch |
33 |
Patch17: smeserver-userpanels-1.0-locale-2008-11-30.patch |
34 |
Patch18: smeserver-userpanels-1.0-locale-2009-03-01.patch |
35 |
Patch19: smeserver-userpanels-1.0-locale-2009-03-03.patch |
36 |
Patch20: smeserver-userpanels-1.0-locale-2009-04-27.patch |
37 |
Patch21: smeserver-userpanels-1.0-locale-2009-05-20.patch |
38 |
Patch22: smeserver-userpanels-1.0-locale-2009-08-24.patch |
39 |
Patch23: smeserver-userpanels-1.0-locale-2009-10-27.patch |
40 |
Patch24: smeserver-userpanels-1.0-locale-2010-03-02.patch |
41 |
Patch25: smeserver-userpanels-1.0-locale-2010-05-23.patch |
42 |
Patch26: smeserver-userpanels-1.0-locale-2011-03-06.patch |
43 |
BuildArchitectures: noarch |
44 |
BuildRoot: /var/tmp/%{name}-%{version} |
45 |
Requires: e-smith-release >= 7.0 |
46 |
Requires: e-smith-formmagick >= 1.4.0-12 |
47 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
48 |
AutoReqProv: no |
49 |
|
50 |
%description |
51 |
Provides additinal userpanels that allows user settings to be altered. |
52 |
Change password,Forward mail, Backup users home directory, |
53 |
Delegate creation of users with restrictions. |
54 |
|
55 |
%changelog |
56 |
* Sun Mar 06 2011 SME Translation Server <translations@contribs.org> 1.0-31.sme |
57 |
- apply locale 2011-03-06 patch |
58 |
|
59 |
* Sun May 23 2010 SME Translation Server <translations@contribs.org> 1.0-30.sme |
60 |
- apply locale 2010-05-23 patch |
61 |
|
62 |
* Tue Mar 02 2010 SME Translation Server <translations@contribs.org> 1.0-29.sme |
63 |
- apply locale 2010-03-02 patch |
64 |
|
65 |
* Tue Oct 27 2009 SME Translation Server <translations@contribs.org> 1.0-28.sme |
66 |
- apply locale 2009-10-27 patch |
67 |
|
68 |
* Mon Aug 24 2009 SME Translation Server <translations@contribs.org> 1.0-27.sme |
69 |
- apply locale 2009-08-24 patch |
70 |
|
71 |
* Wed May 20 2009 SME Translation Server <translations@contribs.org> 1.0-26.sme |
72 |
- apply locale 2009-05-20 patch |
73 |
|
74 |
* Mon Apr 27 2009 SME Translation Server <translations@contribs.org> 1.0-25.sme |
75 |
- apply locale 2009-04-27 patch |
76 |
|
77 |
* Tue Mar 03 2009 SME Translation Server |
78 |
- apply locale 2009-03-03 patch |
79 |
|
80 |
* Sun Mar 1 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-23 |
81 |
- Apply 1 Mar 2009 locale patch [SME: 5018] |
82 |
|
83 |
* Sun Nov 30 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-22 |
84 |
- Apply 30 Nov 2008 locale patch |
85 |
|
86 |
* Thu Oct 16 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-21 |
87 |
- Apply 16 Oct 2008 locale patch |
88 |
|
89 |
* Wed Oct 15 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-20 |
90 |
- Apply 15 Oct 2008 locale patch |
91 |
|
92 |
* Tue Oct 14 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-19 |
93 |
- Apply 14 Oct 2008 locale patch |
94 |
|
95 |
* Sat Sep 27 2008 Stephen Noble <support@dungog.net> - 1.2-26 |
96 |
- Apply locale patch |
97 |
|
98 |
* Tue Jul 1 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-17 |
99 |
- Apply 1 July 2008 locale patch |
100 |
|
101 |
* Fri Jun 27 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-16 |
102 |
- Apply 27 Jun 2008 locale patch |
103 |
|
104 |
* Thu May 21 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-15 |
105 |
- Apply 21 May 2008 locale patch |
106 |
|
107 |
* Mon May 5 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-14 |
108 |
- Fixed locale issue with button not being translated in password panel [SME: 4310] |
109 |
- Added 5 May 2008 locale patch from the translate engine |
110 |
|
111 |
* Sat Apr 26 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-13 |
112 |
- Add common <base> tags to e-smith-formmagick's general |
113 |
|
114 |
* Tue Apr 22 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 1.0-12 |
115 |
- Apply 22 April 2008 locale patch |
116 |
|
117 |
* Tue Apr 1 2008 Shad L. Lords <slords@mail.com> 1.0-11 |
118 |
- Update to UTF-8 translations |
119 |
|
120 |
* Fri Mar 14 2008 Stephen Noble <support@dungog.net> - 1.0-10 |
121 |
- Add requires for e-smith-formmagick for UTF-8 support [SME: 3858] |
122 |
|
123 |
* Fri Mar 14 2008 Stephen Noble <support@dungog.net> - 1.0-9 |
124 |
- update locale 2008-03-14 |
125 |
|
126 |
* Sat Mar 07 2008 Stephen Noble <support@dungog.net> - 1.0-8 |
127 |
- prepare en lexicons for pootle translations |
128 |
|
129 |
* Tue Dec 25 2007 Stephen Noble <support@dungog.net> 1.0-7 |
130 |
- add french translation, thanks Sylvain Gomez |
131 |
|
132 |
* Thu Dec 6 2007 Stephen Noble <support@dungog.net> 1.0-6 |
133 |
- swedish translation, thanks Chrille |
134 |
|
135 |
* Thu Dec 6 2007 Stephen Noble <support@dungog.net> 1.0-5 |
136 |
- remove Requires: smeserver-userpanel |
137 |
|
138 |
* Mon Oct 29 2007 Stephen Noble <support@dungog.net> 1.0-4 |
139 |
- update spanish translations, thanks Normando Hall [SME 3503] |
140 |
|
141 |
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
142 |
- Clean up spec so package can be built by koji/plague |
143 |
|
144 |
* Mon Oct 30 2006 Stephen Noble <support@dungog.net> |
145 |
- forwarding lexicon updated for de |
146 |
- [1.0-3] |
147 |
|
148 |
* Sun Mar 26 2006 Stephen Noble <support@dungog.net> |
149 |
- forwarding and password lexicons updated for de |
150 |
- fix, error in logs starting httpd-admin [sme 1991] |
151 |
- [1.0-2] |
152 |
|
153 |
* Sun Mar 26 2006 Stephen Noble <support@dungog.net> |
154 |
- Userpanel-forwarding lexicons for de, fr |
155 |
- Partial forwarding lexicons for es, it |
156 |
- [1.0-1] |
157 |
|
158 |
* Fri Mar 17 2006 Stephen Noble <support@dungog.net> |
159 |
- FormMagick version for Userpanel-forward, english only |
160 |
- Userpanel-password updated to current FM style |
161 |
- [0.9-3] |
162 |
|
163 |
* Wed Sep 21 2005 Stephen Noble <support@dungog.net> |
164 |
- FormMagick version for Userpanel-password, Languages included |
165 |
- [0.9-2] |
166 |
|
167 |
* Wed Sep 21 2005 Stephen Noble <support@dungog.net> |
168 |
- initial release, contains |
169 |
- userdata-backup, useraccounts, forward mail, change password |
170 |
- [0.9-1] |
171 |
|
172 |
%prep |
173 |
%setup |
174 |
%patch0 -p1 |
175 |
%patch1 -p1 |
176 |
%patch2 -p1 |
177 |
%patch3 -p1 |
178 |
%patch4 -p1 |
179 |
%patch5 -p1 |
180 |
%patch6 -p1 |
181 |
%patch7 -p1 |
182 |
%patch8 -p1 |
183 |
%patch9 -p1 |
184 |
%patch10 -p1 |
185 |
%patch11 -p1 |
186 |
%patch12 -p1 |
187 |
%patch13 -p1 |
188 |
%patch14 -p1 |
189 |
%patch15 -p1 |
190 |
%patch16 -p1 |
191 |
%patch17 -p1 |
192 |
%patch18 -p1 |
193 |
%patch19 -p1 |
194 |
%patch20 -p1 |
195 |
%patch21 -p1 |
196 |
%patch22 -p1 |
197 |
%patch23 -p1 |
198 |
%patch24 -p1 |
199 |
%patch25 -p1 |
200 |
%patch26 -p1 |
201 |
|
202 |
%build |
203 |
LEXICONS=$(find root/etc/e-smith/locale/ -type f ) |
204 |
for lexicon in $LEXICONS root/etc/e-smith/web/functions/userpanel-{password,forwarding} |
205 |
do |
206 |
/sbin/e-smith/validate-lexicon $lexicon |
207 |
done |
208 |
|
209 |
perl createlinks |
210 |
|
211 |
%install |
212 |
rm -rf $RPM_BUILD_ROOT |
213 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
214 |
rm -f %{name}-%{version}-filelist |
215 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
216 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
217 |
|
218 |
%clean |
219 |
cd .. |
220 |
rm -rf %{name}-%{version} |
221 |
|
222 |
%pre |
223 |
%preun |
224 |
|
225 |
%post |
226 |
#new installs |
227 |
if [ $1 = 1 ] ; then |
228 |
globalUP=`/sbin/e-smith/db accounts get globalUP` |
229 |
if [ "x$globalUP" = "x" ]; then |
230 |
/sbin/e-smith/db accounts set globalUP userpanelglobal FirstName "global user" LastName "panel access" AdminPanels userpanel-forwarding,userpanel-password || : |
231 |
fi |
232 |
fi |
233 |
|
234 |
#upgrades (and new installs) |
235 |
if [ -d /etc/e-smith/events/conf-userpanel ] ; then |
236 |
/sbin/e-smith/signal-event conf-userpanel |
237 |
fi |
238 |
|
239 |
%postun |
240 |
#uninstall |
241 |
if [ $1 = 0 ] ; then |
242 |
DBS=`find /home/e-smith/db/navigation -type f -name "navigation.*"` |
243 |
for db in $DBS ; do |
244 |
/sbin/e-smith/db $db delete userpanel-password 2>/dev/null |
245 |
/sbin/e-smith/db $db delete userpanel-userbackup 2>/dev/null |
246 |
/sbin/e-smith/db $db delete userpanel-forwarding 2>/dev/null |
247 |
/sbin/e-smith/db $db delete userpanel-useraccounts 2>/dev/null |
248 |
done |
249 |
fi |
250 |
|
251 |
%files -f %{name}-%{version}-filelist |
252 |
%defattr(-,root,root) |