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