1 |
slords |
1.1 |
Summary: Panels to let users to change server settings. |
2 |
|
|
%define name smeserver-userpanels |
3 |
|
|
Name: %{name} |
4 |
|
|
%define version 1.0 |
5 |
dungog |
1.5 |
%define release 10 |
6 |
slords |
1.1 |
Version: %{version} |
7 |
|
|
Release: %{release}%{?dist} |
8 |
dungog |
1.3 |
License: GNU GPL version 2 |
9 |
|
|
URL: http://www.dungog.net/wiki |
10 |
slords |
1.1 |
Group: SMEserver/addon |
11 |
|
|
Source: %{name}-%{version}.tar.gz |
12 |
|
|
Patch0: smeserver-vacation-1.0-esLocalePasswd+Fwd.patch |
13 |
|
|
Patch1: smeserver-vacation-1.0-svLocalePasswd+Fwd.patch |
14 |
|
|
Patch2: smeserver-userpanels-1.0-frLocale.patch |
15 |
dungog |
1.2 |
Patch3: smeserver-userpanels-1.0-pootle.patch |
16 |
dungog |
1.3 |
Patch4: smeserver-userpanels-1.0-locale-2008-03-14.patch |
17 |
slords |
1.1 |
BuildArchitectures: noarch |
18 |
|
|
BuildRoot: /var/tmp/%{name}-%{version} |
19 |
|
|
Requires: e-smith-release >= 7.0 |
20 |
dungog |
1.4 |
Requires: e-smith-formmagick >= 1.4.0-10 |
21 |
slords |
1.1 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
22 |
|
|
AutoReqProv: no |
23 |
|
|
|
24 |
|
|
%description |
25 |
|
|
Provides additinal userpanels that allows user settings to be altered. |
26 |
|
|
Change password,Forward mail, Backup users home directory, |
27 |
|
|
Delegate creation of users with restrictions. |
28 |
|
|
|
29 |
|
|
%changelog |
30 |
dungog |
1.5 |
* Fri Mar 14 2008 Stephen Noble <support@dungog.net> - 1.0-10 |
31 |
|
|
- Add requires for e-smith-formmagick for UTF-8 support [SME: 3858] |
32 |
|
|
|
33 |
dungog |
1.3 |
* Fri Mar 14 2008 Stephen Noble <support@dungog.net> - 1.0-9 |
34 |
|
|
- update locale 2008-03-14 |
35 |
|
|
|
36 |
|
|
* Sat Mar 07 2008 Stephen Noble <support@dungog.net> - 1.0-8 |
37 |
dungog |
1.2 |
- prepare en lexicons for pootle translations |
38 |
|
|
|
39 |
slords |
1.1 |
* Tue Dec 25 2007 Stephen Noble <support@dungog.net> 1.0-7 |
40 |
|
|
- add french translation, thanks Sylvain Gomez |
41 |
|
|
|
42 |
|
|
* Thu Dec 6 2007 Stephen Noble <support@dungog.net> 1.0-6 |
43 |
|
|
- swedish translation, thanks Chrille |
44 |
|
|
|
45 |
|
|
* Thu Dec 6 2007 Stephen Noble <support@dungog.net> 1.0-5 |
46 |
|
|
- remove Requires: smeserver-userpanel |
47 |
|
|
|
48 |
|
|
* Mon Oct 29 2007 Stephen Noble <support@dungog.net> 1.0-4 |
49 |
|
|
- update spanish translations, thanks Normando Hall [SME 3503] |
50 |
|
|
|
51 |
|
|
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
52 |
|
|
- Clean up spec so package can be built by koji/plague |
53 |
|
|
|
54 |
|
|
* Mon Oct 30 2006 Stephen Noble <support@dungog.net> |
55 |
|
|
- forwarding lexicon updated for de |
56 |
|
|
- [1.0-3] |
57 |
|
|
|
58 |
|
|
* Sun Mar 26 2006 Stephen Noble <support@dungog.net> |
59 |
|
|
- forwarding and password lexicons updated for de |
60 |
|
|
- fix, error in logs starting httpd-admin [sme 1991] |
61 |
|
|
- [1.0-2] |
62 |
|
|
|
63 |
|
|
* Sun Mar 26 2006 Stephen Noble <support@dungog.net> |
64 |
|
|
- Userpanel-forwarding lexicons for de, fr |
65 |
|
|
- Partial forwarding lexicons for es, it |
66 |
|
|
- [1.0-1] |
67 |
|
|
|
68 |
|
|
* Fri Mar 17 2006 Stephen Noble <support@dungog.net> |
69 |
|
|
- FormMagick version for Userpanel-forward, english only |
70 |
|
|
- Userpanel-password updated to current FM style |
71 |
|
|
- [0.9-3] |
72 |
|
|
|
73 |
|
|
* Wed Sep 21 2005 Stephen Noble <support@dungog.net> |
74 |
|
|
- FormMagick version for Userpanel-password, Languages included |
75 |
|
|
- [0.9-2] |
76 |
|
|
|
77 |
|
|
* Wed Sep 21 2005 Stephen Noble <support@dungog.net> |
78 |
|
|
- initial release, contains |
79 |
|
|
- userdata-backup, useraccounts, forward mail, change password |
80 |
|
|
- [0.9-1] |
81 |
|
|
|
82 |
|
|
%prep |
83 |
|
|
%setup |
84 |
|
|
%patch0 -p1 |
85 |
|
|
%patch1 -p1 |
86 |
|
|
%patch2 -p1 |
87 |
dungog |
1.2 |
%patch3 -p1 |
88 |
dungog |
1.3 |
%patch4 -p1 |
89 |
slords |
1.1 |
|
90 |
|
|
%build |
91 |
dungog |
1.3 |
LEXICONS=$(find root/etc/e-smith/{locale/,web/functions/} -type f ) |
92 |
|
|
for lexicon in $LEXICONS |
93 |
slords |
1.1 |
do |
94 |
|
|
/sbin/e-smith/validate-lexicon $lexicon |
95 |
|
|
done |
96 |
|
|
|
97 |
|
|
perl createlinks |
98 |
|
|
|
99 |
|
|
%install |
100 |
|
|
rm -rf $RPM_BUILD_ROOT |
101 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
102 |
|
|
rm -f %{name}-%{version}-filelist |
103 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
104 |
|
|
echo "%doc COPYING" >> %{name}-%{version}-filelist |
105 |
|
|
|
106 |
|
|
%clean |
107 |
|
|
cd .. |
108 |
|
|
rm -rf %{name}-%{version} |
109 |
|
|
|
110 |
|
|
%pre |
111 |
|
|
%preun |
112 |
|
|
|
113 |
|
|
%post |
114 |
|
|
#new installs |
115 |
|
|
if [ $1 = 1 ] ; then |
116 |
|
|
globalUP=`/sbin/e-smith/db accounts get globalUP` |
117 |
|
|
if [ "x$globalUP" = "x" ]; then |
118 |
|
|
/sbin/e-smith/db accounts set globalUP userpanelglobal FirstName "global user" LastName "panel access" AdminPanels userpanel-forwarding,userpanel-password || : |
119 |
|
|
fi |
120 |
|
|
fi |
121 |
|
|
|
122 |
|
|
#upgrades (and new installs) |
123 |
dungog |
1.2 |
if [ -d /etc/e-smith/events/conf-userpanel ] ; then |
124 |
|
|
/sbin/e-smith/signal-event conf-userpanel |
125 |
|
|
fi |
126 |
slords |
1.1 |
|
127 |
|
|
%postun |
128 |
|
|
#uninstall |
129 |
|
|
if [ $1 = 0 ] ; then |
130 |
|
|
DBS=`find /home/e-smith/db/navigation -type f -name "navigation.*"` |
131 |
|
|
for db in $DBS ; do |
132 |
|
|
/sbin/e-smith/db $db delete userpanel-password 2>/dev/null |
133 |
|
|
/sbin/e-smith/db $db delete userpanel-userbackup 2>/dev/null |
134 |
|
|
/sbin/e-smith/db $db delete userpanel-forwarding 2>/dev/null |
135 |
|
|
/sbin/e-smith/db $db delete userpanel-useraccounts 2>/dev/null |
136 |
|
|
done |
137 |
|
|
fi |
138 |
|
|
|
139 |
|
|
%files -f %{name}-%{version}-filelist |
140 |
|
|
%defattr(-,root,root) |