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