]> git.pld-linux.org Git - SPECS.git/blob - ismail.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / ismail.spec
1 Summary:        Inside Systems webmail package
2 Summary(pl.UTF-8):      Webmail firmy Inside Systems
3 Name:           ismail
4 Version:        2.0
5 Release:        2
6 License:        GPL
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
16 Requires:       php(domxml)
17 Requires:       php(imap)
18 Requires:       php(pcre)
19 Requires:       php(xml)
20 Requires:       webapps
21 Requires:       webserver
22 Requires:       webserver(php)
23 Provides:       webmail
24 BuildArch:      noarch
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %define         _ismaildir      %{_datadir}/%{name}
28 %define         _sysconfdir     /etc/%{name}
29 %define         _webapps        /etc/webapps
30 %define         _webapp         %{name}
31 %define         _webappsdir     %{_webapps}/%{name}
32
33 %description
34 This package contains ISMail, a webmail system for modern browsers.
35
36 %description -l pl.UTF-8
37 Ten pakiet zawiera ISMaila - system webmailowy dla nowoczesnych
38 przeglÄ…darek.
39
40 %prep
41 %setup -q -n %{name}
42 %patch0 -p1
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46
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
51
52 cp -av ismail/* $RPM_BUILD_ROOT%{_ismaildir}
53
54 cp ismail/include/*.conf $RPM_BUILD_ROOT%{_sysconfdir}
55
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
58
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
62
63 %clean
64 rm -rf $RPM_BUILD_ROOT
65
66 %triggerin -- apache1 < 1.3.37-3, apache1-base
67 %webapp_register apache %{_webapp}
68
69 %triggerun -- apache1 < 1.3.37-3, apache1-base
70 %webapp_unregister apache %{_webapp}
71
72 %triggerin -- apache < 2.2.0, apache-base
73 %webapp_register httpd %{_webapp}
74
75 %triggerun -- apache < 2.2.0, apache-base
76 %webapp_unregister httpd %{_webapp}
77
78 %files
79 %defattr(644,root,root,755)
80 %doc BSD CHANGELOG CREDITS docs.html examples
81 %dir %{_sysconfdir}
82 %{_sysconfdir}/*.conf
83 %dir %{_ismaildir}
84 %dir %{_ismaildir}/include
85 %{_webappsdir}
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*
92 %{_ismaildir}/*.php
93 %{_ismaildir}/xtree
94 %{_ismaildir}/locale
95 %{_ismaildir}/themes
96 #%{_ismaildir}/graphics
97 #%attr(730,root,http) %dir %{_ismaildir}/users
This page took 0.478893 seconds and 3 git commands to generate.