/[smecontribs]/rpms/smeserver-userpanels/contribs7/smeserver-userpanels.spec
ViewVC logotype

Contents of /rpms/smeserver-userpanels/contribs7/smeserver-userpanels.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.2 - (show annotations) (download)
Sat Mar 8 02:30:03 2008 UTC (16 years, 7 months ago) by dungog
Branch: MAIN
CVS Tags: smeserver-userpanels-1_0-8_el4_sme
Changes since 1.1: +9 -6 lines
* Sat Mar 01 2008 Stephen Noble <support@dungog.net> - 1.0-8
- prepare en lexicons for pootle translations

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

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed