1 Summary: Inside Systems webmail package
2 Summary(pl.UTF-8): Webmail firmy Inside Systems
7 Group: Applications/Mail
8 Source0: ftp://ftp.insidesystems.net/ismail/%{name}-%{version}.tar.bz2
9 # Source0-md5: df7b88426f24250cd7ffee6f29d330b2
10 Source1: %{name}-apache.conf
11 # from http://alexandre.alapetite.net/doc-alex/domxml-php4-php5/index.en.html
12 Source2: %{name}-domxml4-to5-fixup.php
13 Patch0: %{name}-php5.patch
14 URL: http://www.insidesystems.net/projects/project.php?projectid=4
15 BuildRequires: rpmbuild(macros) >= 1.264
22 Requires: webserver(php)
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 %define _ismaildir %{_datadir}/%{name}
28 %define _sysconfdir /etc/%{name}
29 %define _webapps /etc/webapps
30 %define _webapp %{name}
31 %define _webappsdir %{_webapps}/%{name}
34 This package contains ISMail, a webmail system for modern browsers.
36 %description -l pl.UTF-8
37 Ten pakiet zawiera ISMaila - system webmailowy dla nowoczesnych
45 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT%{_ismaildir} \
48 $RPM_BUILD_ROOT{%{_sysconfdir},%{_webappsdir}}
49 mv ismail/include/ismail.conf.sample ismail/include/ismail.conf
50 mv ismail/include/istheme.conf.sample ismail/include/istheme.conf
52 cp -av ismail/* $RPM_BUILD_ROOT%{_ismaildir}
54 cp ismail/include/*.conf $RPM_BUILD_ROOT%{_sysconfdir}
56 ln -sf %{_sysconfdir}/ismail.conf $RPM_BUILD_ROOT%{_ismaildir}/include/ismail.conf
57 ln -sf %{_sysconfdir}/istheme.conf $RPM_BUILD_ROOT%{_ismaildir}/include/istheme.conf
59 install %{SOURCE1} $RPM_BUILD_ROOT%{_webappsdir}/apache.conf
60 install %{SOURCE1} $RPM_BUILD_ROOT%{_webappsdir}/httpd.conf
61 install %{SOURCE2} $RPM_BUILD_ROOT%{_ismaildir}/include/datastores/domxml4-to5-fixup.php
64 rm -rf $RPM_BUILD_ROOT
66 %triggerin -- apache1 < 1.3.37-3, apache1-base
67 %webapp_register apache %{_webapp}
69 %triggerun -- apache1 < 1.3.37-3, apache1-base
70 %webapp_unregister apache %{_webapp}
72 %triggerin -- apache < 2.2.0, apache-base
73 %webapp_register httpd %{_webapp}
75 %triggerun -- apache < 2.2.0, apache-base
76 %webapp_unregister httpd %{_webapp}
79 %defattr(644,root,root,755)
80 %doc BSD CHANGELOG CREDITS docs.html examples
84 %dir %{_ismaildir}/include
86 %config(noreplace) %verify(not md5 mtime size) %{_ismaildir}/include/*.conf
87 %{_ismaildir}/include/*.php
88 #%{_ismaildir}/include/*.class
89 %{_ismaildir}/include/*.xml
90 %dir %{_ismaildir}/include/datastores
91 %{_ismaildir}/include/datastores/*.php*
96 #%{_ismaildir}/graphics
97 #%attr(730,root,http) %dir %{_ismaildir}/users