1 |
Summary: stripped groups panel. only members can added and removed |
2 |
%define name smeserver-groupmembers-panel |
3 |
Name: %{name} |
4 |
%define version 1.0.1 |
5 |
%define release 2 |
6 |
Version: %{version} |
7 |
Release: %{release}%{?dist} |
8 |
License: GPL |
9 |
Group: Networking/Daemons |
10 |
Source: %{name}-%{version}.tar.gz |
11 |
BuildRoot: /var/tmp/%{name}-buildroot/ |
12 |
BuildArch: noarch |
13 |
Requires: smeserver-userpanel |
14 |
Requires: smeserver-release >= 7 |
15 |
AutoReq: no |
16 |
Patch0: smeserver-groupmembers-panel-1.0.1-PanelAndLocalization.patch |
17 |
Patch1: smeserver-groupmembers-panel-1.0.1-headerDescription.patch |
18 |
|
19 |
%changelog |
20 |
* Wed Mar 05 2008 Michael Weinberger <mweinber@neddix.de> 1.0.1-2 |
21 |
Changed header description to "Group members" |
22 |
* Tue Mar 04 2008 Michael Weinberger <mweinber@neddix.de> 1.0.1-1 |
23 |
Panel navigation & localization |
24 |
Spec file fix |
25 |
|
26 |
* Fri May 04 2007 Michael Weinberger <mweinber@neddix.de> |
27 |
Verison 1.0.1 |
28 |
- fixed German heading property |
29 |
- added delegatedGroups option |
30 |
* Fri Jan 23 2007 Michael Weinberger <mweinber@neddix.de> |
31 |
- Initial release |
32 |
|
33 |
%description |
34 |
A stripped groups panel. Only members can be added and removed |
35 |
This panel can be delegated to users using the smeserver-userpanel |
36 |
|
37 |
********************************************* |
38 |
* After installation run: |
39 |
* /etc/e-smith/events/actions/navigation-conf |
40 |
********************************************* |
41 |
|
42 |
By default the user can edit all groups. You can restrict the |
43 |
access to a comma separeted list of groups defined defined in |
44 |
property 'delegatedGroups' in the user's account record. |
45 |
|
46 |
Example: You want permit user 'jsixpack' to edit the group members |
47 |
of the groups 'sales' and 'devel': |
48 |
|
49 |
db accounts setprop jsixpack delegatedGroups sales,devel |
50 |
|
51 |
%prep |
52 |
%setup -q -n %{name}-%{version} |
53 |
%patch0 -p1 |
54 |
%patch1 -p1 |
55 |
|
56 |
%build |
57 |
|
58 |
%install |
59 |
rm -rf $RPM_BUILD_ROOT |
60 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
61 |
rm -f %{name}-%{version}-filelist |
62 |
find $RPM_BUILD_ROOT -depth -type f -print |\ |
63 |
sed -e "s@^$RPM_BUILD_ROOT@@g" \ |
64 |
-e "s@^/etc/e-smith/locale/@%attr(0644,root,root) &@"\ |
65 |
-e "s@^/usr/lib/perl5/site_perl/esmith/FormMagick/Panel/@%attr(0644,root,root) &@"\ |
66 |
-e "s@^/etc/e-smith/web/functions/groupmembers@%attr(4750,root,admin) &@"\ |
67 |
>> %{name}-%{version}-filelist |
68 |
find $RPM_BUILD_ROOT -depth -type l -print |\ |
69 |
sed "s@^$RPM_BUILD_ROOT@@g" >> %{name}-%{version}-filelist |
70 |
|
71 |
%clean |
72 |
rm -rf $RPM_BUILD_ROOT |
73 |
|
74 |
%files -f %{name}-%{version}-filelist |
75 |
%defattr(-,root,root) |