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