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