2 |
%define name smeserver-user-webspace |
%define name smeserver-user-webspace |
3 |
Name: %{name} |
Name: %{name} |
4 |
%define version 0.1 |
%define version 0.1 |
5 |
%define release 7 |
%define release 12 |
6 |
Version: %{version} |
Version: %{version} |
7 |
Release: %{release}%{dist} |
Release: %{release}%{dist} |
8 |
License: GPL |
License: GPL |
13 |
Patch2: %{name}-%{version}.patch2 |
Patch2: %{name}-%{version}.patch2 |
14 |
Patch3: smeserver-user-webspace-0.1.patch3 |
Patch3: smeserver-user-webspace-0.1.patch3 |
15 |
Patch4: smeserver-user-webspace-0.1-actions.patch |
Patch4: smeserver-user-webspace-0.1-actions.patch |
16 |
|
Patch5: smeserver-user-webspace-0.1-patch5.patch |
17 |
|
Patch6: smeserver-user-webspace-0.1-patch6.patch |
18 |
|
Patch7: smeserver-user-webspace-0.1-patch7.patch |
19 |
Packager: Jean-Philippe Pialasse <tests@pialasse.com> |
Packager: Jean-Philippe Pialasse <tests@pialasse.com> |
20 |
BuildRoot: /var/tmp/e-smith-buildroot |
BuildRoot: /var/tmp/e-smith-buildroot |
21 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
24 |
BuildRequires: e-smith-devtools |
BuildRequires: e-smith-devtools |
25 |
|
|
26 |
%changelog |
%changelog |
27 |
* Sat Nov 23 2013 Jean-Philippe Pialasse <tests@pialasse.com> 0.1-7.sme |
* Tue Nov 26 2013 Jean-Philippe Pialasse <tests@pialasse.com> 0.1-12.sme |
28 |
|
- spec fixing createlink |
29 |
|
|
30 |
|
* Mon Nov 25 2013 Jean-Philippe Pialasse <tests@pialasse.com> 0.1-11.sme |
31 |
|
- added httpd reconfiguration for user create, modify,delete,lock events |
32 |
|
|
33 |
|
* Sun Nov 24 2013 Jean-Philippe Pialasse <tests@pialasse.com> 0.1-10.sme |
34 |
|
- fix more typos in patchs |
35 |
|
- patch5 for httpd template |
36 |
|
|
37 |
|
* Sat Nov 23 2013 Jean-Philippe Pialasse <tests@pialasse.com> 0.1-8.sme |
38 |
- moved spec dirty work on action to real actions |
- moved spec dirty work on action to real actions |
39 |
- added skel folders |
- added skel folders |
40 |
- added two events and link to actions in the proper events |
- added two events and link to actions in the proper events |
41 |
|
- precleaning spec |
42 |
|
- patchs typo fixes |
43 |
|
|
44 |
* Sun Oct 27 2013 Jean-Philippe Pialasse <tests@pialasse.com> 0.1-6.sme |
* Sun Oct 27 2013 Jean-Philippe Pialasse <tests@pialasse.com> 0.1-6.sme |
45 |
- initial import for sme8 |
- initial import for sme8 |
46 |
|
|
78 |
%patch2 -p1 |
%patch2 -p1 |
79 |
%patch3 -p1 |
%patch3 -p1 |
80 |
%patch4 -p1 |
%patch4 -p1 |
81 |
|
%patch5 -p1 |
82 |
|
%patch6 -p1 |
83 |
|
%patch7 -p1 |
84 |
|
|
85 |
%build |
%build |
86 |
|
perl createlinks |
87 |
|
|
88 |
%install |
%install |
89 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
96 |
|
|
97 |
%pre |
%pre |
98 |
%preun |
%preun |
99 |
%post |
#%post |
100 |
if [ $1 = 1 ] ; then |
#if [ $1 = 1 ] ; then |
101 |
# enable_user_webspace() { |
# enable_user_webspace() { |
102 |
|
|
103 |
# echo 'You now have the option to enable user web directories.' |
# echo 'You now have the option to enable user web directories.' |
157 |
# } |
# } |
158 |
|
|
159 |
# enable_user_webspace |
# enable_user_webspace |
160 |
fi |
#fi |
161 |
|
|
162 |
%postun |
#%postun |
163 |
if [ $1 = 0 ] ; then |
#if [ $1 = 0 ] ; then |
164 |
# /sbin/e-smith/config delete UserPublicWeb |
# /sbin/e-smith/config delete UserPublicWeb |
165 |
# /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
# /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
166 |
# service httpd-e-smith restart |
# service httpd-e-smith restart |
182 |
# fi |
# fi |
183 |
# done |
# done |
184 |
# |
# |
185 |
fi |
#fi |
186 |
|
|
187 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |
188 |
%defattr(-,root,root) |
%defattr(-,root,root) |