1 |
# $Id: e-smith-shared-folders.spec,v 1.0 2009/04/08 20:02:28 VIP-ire Exp $ |
2 |
# Authority: vip-ire |
3 |
# Name: Daniel Berteaud |
4 |
|
5 |
Summary: sme server shared folders module |
6 |
%define name smeserver-shared-folders |
7 |
Name: %{name} |
8 |
%define version 0.1 |
9 |
%define release 4 |
10 |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
12 |
License: GPL |
13 |
Group: Networking/Daemons |
14 |
Source: %{name}-%{version}.tar.gz |
15 |
|
16 |
Patch0: smeserver-shared-folders-0.1-maxShareNameLength.patch |
17 |
Patch1: smeserver-shared-folders-0.1-add_acl_in_fstab.patch |
18 |
Patch2: smeserver-shared-folders-0.1-locale-2009-05-05.patch |
19 |
Patch3: smeserver-shared-folders-0.1-optimize_permissions.patch |
20 |
Patch4: smeserver-shared-folders-0.1-extended_access.patch |
21 |
Patch5: smeserver-shared-folders-0.1-keep_versions_in_panel.patch |
22 |
Patch6: smeserver-shared-folders-0.1-locale_extended_access.patch |
23 |
Patch7: smeserver-shared-folders-0.1-locale_add_description.patch |
24 |
Patch8: smeserver-shared-folders-0.1-remove_desc.patch |
25 |
Patch9: smeserver-shared-folders-0.1-http_skip_wrong_values.patch |
26 |
Patch10: smeserver-shared-folders-0.1-locale-2009-05-20.patch |
27 |
Patch11: smeserver-shared-folders-0.1-locale-2009-05-21.patch |
28 |
|
29 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
30 |
BuildArchitectures: noarch |
31 |
Requires: e-smith-base >= 4.13.15-76 |
32 |
Requires: perl(CGI::FormMagick) |
33 |
Requires: e-smith-formmagick >= 1.4.0-12 |
34 |
|
35 |
Requires: acl |
36 |
BuildRequires: perl |
37 |
BuildRequires: e-smith-devtools >= 1.11.0-03 |
38 |
|
39 |
|
40 |
%description |
41 |
This module allows you to create network shares |
42 |
with more flexibility than ibays as it supports ACLs |
43 |
|
44 |
%changelog |
45 |
* Thu May 21 2009 Daniel B. <daniel@firewall-services.com> [0.1-4] |
46 |
- apply locale 2009-05-21 patch |
47 |
|
48 |
* Wed May 20 2009 SME Translation Server <translations@contribs.org> 0.1-3.sme |
49 |
- apply locale 2009-05-20 patch |
50 |
|
51 |
* Wed May 13 2009 Daniel B. <daniel@firewall-services.com> [0.1-2] |
52 |
- add http access, with some options in the panel |
53 |
- present the keepversion option of the recylcebin in the panel |
54 |
- changes in db keys |
55 |
- remove some descriptions in the panel |
56 |
- optimization in share-modiffy to limit the time needed |
57 |
to reset permissions |
58 |
|
59 |
* Tue May 05 2009 Daniel B. <daniel@firewall-services.com> [0.1-1] |
60 |
- Add locale patch 2009-05-05 |
61 |
|
62 |
* Tue Apr 28 2009 Daniel B. <daniel@firewall-services.com> [0.1-0.beta3] |
63 |
- Add acl option in fstab via the template system |
64 |
(just like usrquota and grpquota) |
65 |
|
66 |
* Thu Apr 16 2009 Daniel B. <daniel@firewall-services.com> [0.1-0.beta2] |
67 |
- Rename spec file |
68 |
|
69 |
* Wed Apr 08 2009 Daniel B. <daniel@firewall-services.com> [0.1-0.beta1] |
70 |
- Rename maxIbayNameLength to maxShareNameLength |
71 |
|
72 |
* Wed Apr 08 2009 Daniel B. <daniel@firewall-services.com> [0.1-0.beta0] |
73 |
- Initial release. |
74 |
|
75 |
%prep |
76 |
%setup |
77 |
|
78 |
%patch0 -p1 |
79 |
%patch1 -p1 |
80 |
%patch2 -p1 |
81 |
%patch3 -p1 |
82 |
%patch4 -p1 |
83 |
%patch5 -p1 |
84 |
%patch6 -p1 |
85 |
%patch7 -p1 |
86 |
%patch8 -p1 |
87 |
%patch9 -p1 |
88 |
%patch10 -p1 |
89 |
%patch11 -p1 |
90 |
|
91 |
%pre |
92 |
%post |
93 |
|
94 |
%build |
95 |
# Force creation of potentially empty directories |
96 |
mkdir -p root/etc/e-smith/web/{common,functions} |
97 |
mkdir -p root/etc/e-smith/web/panels/manager/{cgi-bin,common,html} |
98 |
mkdir -p root/home/e-smith/files/shares |
99 |
|
100 |
perl createlinks |
101 |
|
102 |
%install |
103 |
rm -rf $RPM_BUILD_ROOT |
104 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
105 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
106 |
> %{name}-%{version}-%{release}-filelist |
107 |
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
108 |
|
109 |
%clean |
110 |
rm -rf $RPM_BUILD_ROOT |
111 |
|
112 |
%files -f %{name}-%{version}-%{release}-filelist |
113 |
%defattr(-,root,root) |