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.3 |
%define release 9 |
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.3 |
* Fri Mar 14 2008 Stephen Noble <support@dungog.net> - 1.0-9 |
31 |
|
|
- update locale 2008-03-14 |
32 |
|
|
|
33 |
|
|
* Sat Mar 07 2008 Stephen Noble <support@dungog.net> - 1.0-8 |
34 |
dungog |
1.2 |
- prepare en lexicons for pootle translations |
35 |
|
|
|
36 |
slords |
1.1 |
* Tue Dec 25 2007 Stephen Noble <support@dungog.net> 1.0-7 |
37 |
|
|
- add french translation, thanks Sylvain Gomez |
38 |
|
|
|
39 |
|
|
* Thu Dec 6 2007 Stephen Noble <support@dungog.net> 1.0-6 |
40 |
|
|
- swedish translation, thanks Chrille |
41 |
|
|
|
42 |
|
|
* Thu Dec 6 2007 Stephen Noble <support@dungog.net> 1.0-5 |
43 |
|
|
- remove Requires: smeserver-userpanel |
44 |
|
|
|
45 |
|
|
* Mon Oct 29 2007 Stephen Noble <support@dungog.net> 1.0-4 |
46 |
|
|
- update spanish translations, thanks Normando Hall [SME 3503] |
47 |
|
|
|
48 |
|
|
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com> |
49 |
|
|
- Clean up spec so package can be built by koji/plague |
50 |
|
|
|
51 |
|
|
* Mon Oct 30 2006 Stephen Noble <support@dungog.net> |
52 |
|
|
- forwarding lexicon updated for de |
53 |
|
|
- [1.0-3] |
54 |
|
|
|
55 |
|
|
* Sun Mar 26 2006 Stephen Noble <support@dungog.net> |
56 |
|
|
- forwarding and password lexicons updated for de |
57 |
|
|
- fix, error in logs starting httpd-admin [sme 1991] |
58 |
|
|
- [1.0-2] |
59 |
|
|
|
60 |
|
|
* Sun Mar 26 2006 Stephen Noble <support@dungog.net> |
61 |
|
|
- Userpanel-forwarding lexicons for de, fr |
62 |
|
|
- Partial forwarding lexicons for es, it |
63 |
|
|
- [1.0-1] |
64 |
|
|
|
65 |
|
|
* Fri Mar 17 2006 Stephen Noble <support@dungog.net> |
66 |
|
|
- FormMagick version for Userpanel-forward, english only |
67 |
|
|
- Userpanel-password updated to current FM style |
68 |
|
|
- [0.9-3] |
69 |
|
|
|
70 |
|
|
* Wed Sep 21 2005 Stephen Noble <support@dungog.net> |
71 |
|
|
- FormMagick version for Userpanel-password, Languages included |
72 |
|
|
- [0.9-2] |
73 |
|
|
|
74 |
|
|
* Wed Sep 21 2005 Stephen Noble <support@dungog.net> |
75 |
|
|
- initial release, contains |
76 |
|
|
- userdata-backup, useraccounts, forward mail, change password |
77 |
|
|
- [0.9-1] |
78 |
|
|
|
79 |
|
|
%prep |
80 |
|
|
%setup |
81 |
|
|
%patch0 -p1 |
82 |
|
|
%patch1 -p1 |
83 |
|
|
%patch2 -p1 |
84 |
dungog |
1.2 |
%patch3 -p1 |
85 |
dungog |
1.3 |
%patch4 -p1 |
86 |
slords |
1.1 |
|
87 |
|
|
%build |
88 |
dungog |
1.3 |
LEXICONS=$(find root/etc/e-smith/{locale/,web/functions/} -type f ) |
89 |
|
|
for lexicon in $LEXICONS |
90 |
slords |
1.1 |
do |
91 |
|
|
/sbin/e-smith/validate-lexicon $lexicon |
92 |
|
|
done |
93 |
|
|
|
94 |
|
|
perl createlinks |
95 |
|
|
|
96 |
|
|
%install |
97 |
|
|
rm -rf $RPM_BUILD_ROOT |
98 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
99 |
|
|
rm -f %{name}-%{version}-filelist |
100 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
101 |
|
|
echo "%doc COPYING" >> %{name}-%{version}-filelist |
102 |
|
|
|
103 |
|
|
%clean |
104 |
|
|
cd .. |
105 |
|
|
rm -rf %{name}-%{version} |
106 |
|
|
|
107 |
|
|
%pre |
108 |
|
|
%preun |
109 |
|
|
|
110 |
|
|
%post |
111 |
|
|
#new installs |
112 |
|
|
if [ $1 = 1 ] ; then |
113 |
|
|
globalUP=`/sbin/e-smith/db accounts get globalUP` |
114 |
|
|
if [ "x$globalUP" = "x" ]; then |
115 |
|
|
/sbin/e-smith/db accounts set globalUP userpanelglobal FirstName "global user" LastName "panel access" AdminPanels userpanel-forwarding,userpanel-password || : |
116 |
|
|
fi |
117 |
|
|
fi |
118 |
|
|
|
119 |
|
|
#upgrades (and new installs) |
120 |
dungog |
1.2 |
if [ -d /etc/e-smith/events/conf-userpanel ] ; then |
121 |
|
|
/sbin/e-smith/signal-event conf-userpanel |
122 |
|
|
fi |
123 |
slords |
1.1 |
|
124 |
|
|
%postun |
125 |
|
|
#uninstall |
126 |
|
|
if [ $1 = 0 ] ; then |
127 |
|
|
DBS=`find /home/e-smith/db/navigation -type f -name "navigation.*"` |
128 |
|
|
for db in $DBS ; do |
129 |
|
|
/sbin/e-smith/db $db delete userpanel-password 2>/dev/null |
130 |
|
|
/sbin/e-smith/db $db delete userpanel-userbackup 2>/dev/null |
131 |
|
|
/sbin/e-smith/db $db delete userpanel-forwarding 2>/dev/null |
132 |
|
|
/sbin/e-smith/db $db delete userpanel-useraccounts 2>/dev/null |
133 |
|
|
done |
134 |
|
|
fi |
135 |
|
|
|
136 |
|
|
%files -f %{name}-%{version}-filelist |
137 |
|
|
%defattr(-,root,root) |