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