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