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