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