2 |
%define name smeserver-subversion |
%define name smeserver-subversion |
3 |
Name: %{name} |
Name: %{name} |
4 |
%define version 1.4 |
%define version 1.4 |
5 |
%define release 1 |
%define release 2 |
6 |
Version: %{version} |
Version: %{version} |
7 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
8 |
License: GPL |
License: GPL |
18 |
Patch9: %{name}-%{version}-ImplementReadWriteAccessLocale-sv.patch |
Patch9: %{name}-%{version}-ImplementReadWriteAccessLocale-sv.patch |
19 |
Patch10: %{name}-%{version}-ImplementReadWriteAccessLocale-it.patch |
Patch10: %{name}-%{version}-ImplementReadWriteAccessLocale-it.patch |
20 |
Patch11: %{name}-%{version}-FixFontTagInLocale.patch |
Patch11: %{name}-%{version}-FixFontTagInLocale.patch |
21 |
|
Patch12: smeserver-subversion-1.4-initdb.patch |
22 |
Group: Applications/Internet |
Group: Applications/Internet |
23 |
Source: %{name}-%{version}.tgz |
Source: %{name}-%{version}.tgz |
24 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
30 |
Implementation of Subversion for SME Server 7 using WebDAV. |
Implementation of Subversion for SME Server 7 using WebDAV. |
31 |
|
|
32 |
%changelog |
%changelog |
33 |
|
* Mon Feb 25 2008 Shad L. Lords <slords@mail.com> 1.4-2 |
34 |
|
- Remove scripts and move db initialition to package |
35 |
|
|
36 |
* Sun Feb 24 2008 Jonathan Martens <smeserver-contribs@snetram.nl> |
* Sun Feb 24 2008 Jonathan Martens <smeserver-contribs@snetram.nl> |
37 |
- 1.4-1 |
- 1.4-1 |
38 |
- Removed font tag in locale files [SME: 3977] |
- Removed font tag in locale files [SME: 3977] |
178 |
%patch9 -p1 |
%patch9 -p1 |
179 |
%patch10 -p1 |
%patch10 -p1 |
180 |
%patch11 -p1 |
%patch11 -p1 |
181 |
rm -f root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/VirtualHosts/28SubversionContent.orig |
%patch12 -p1 |
182 |
|
|
183 |
%build |
%build |
184 |
perl createlinks |
perl createlinks |
185 |
|
|
|
DEFAULTS=root/etc/e-smith/db/configuration/defaults/modDAVSVN |
|
|
mkdir -p $DEFAULTS |
|
|
|
|
|
echo "service" > $DEFAULTS/type |
|
|
echo "enabled" > $DEFAULTS/status |
|
|
|
|
|
DEFAULTS=root/etc/e-smith/db/configuration/defaults/maxRepositoryNameLength |
|
|
mkdir -p $DEFAULTS |
|
|
|
|
|
echo "31" > $DEFAULTS/type |
|
|
|
|
186 |
%install |
%install |
187 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
188 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
192 |
%clean |
%clean |
193 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
194 |
|
|
|
%pre |
|
|
true |
|
|
|
|
|
%post |
|
|
if [ "$1" = "1" ] ; then # first install |
|
|
# Expand the server-manager templates to add |
|
|
# references to the smeserver-subversion panel |
|
|
/sbin/e-smith/db configuration set modDAVSVN service status enabled |
|
|
/sbin/e-smith/db configuration set maxRepositoryNameLength 31 |
|
|
/sbin/e-smith/signal-event subversion-modify |
|
|
echo "Rebuilding server-manager (this can take a while) ..." |
|
|
/etc/e-smith/events/actions/navigation-conf >/dev/null 2>&1 |
|
|
fi |
|
|
true |
|
|
|
|
|
%preun |
|
|
if [ "$1" = "0" ] ; then # last uninstall |
|
|
/sbin/e-smith/db configuration setprop modDAVSVN status disabled |
|
|
/sbin/e-smith/signal-event subversion-delete |
|
|
/sbin/e-smith/signal-event subversion-modify |
|
|
fi |
|
|
true |
|
|
|
|
|
%postun |
|
|
# Expand the server-manager templates to update/remove |
|
|
# references to the smeserver-subversion panel |
|
|
echo "Rebuilding server-manager (this can take a while) ..." |
|
|
/etc/e-smith/events/actions/navigation-conf >/dev/null 2>&1 |
|
|
true |
|
|
|
|
195 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |
196 |
%defattr(-,root,root) |
%defattr(-,root,root) |