1 |
jpp |
1.3 |
# $Id: smeserver-ezmlm-www.spec,v 1.2 2022/03/15 20:55:26 jpp Exp $ |
2 |
jpp |
1.1 |
# Authority: picsone |
3 |
|
|
# Name: Normando Hall |
4 |
|
|
|
5 |
|
|
%define name smeserver-ezmlm-www |
6 |
jpp |
1.3 |
%define version 2.0.0 |
7 |
jpp |
1.2 |
%define release 3 |
8 |
jpp |
1.1 |
|
9 |
|
|
Summary: ezmlm-www packaged for sme server |
10 |
|
|
Name: %{name} |
11 |
|
|
Version: %{version} |
12 |
|
|
Release: %{release}%{?dist} |
13 |
|
|
License: GPL |
14 |
|
|
Group: Networking/Other |
15 |
|
|
Source: %{name}-%{version}.tar.gz |
16 |
jpp |
1.3 |
Source1: ezmlm-www-1.4.5.tar.gz |
17 |
jpp |
1.2 |
|
18 |
jpp |
1.1 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
19 |
|
|
Requires: perl-Mail-Box perl-User-Identity perl-TimeDate perl-Email-Simple perl-Plucene perl-KinoSearch ezmlm-web perl-Ezmlm perl-Mail-Ezmlm-Archive |
20 |
|
|
BuildRequires: e-smith-devtools |
21 |
jpp |
1.3 |
BuildRequires: gcc |
22 |
jpp |
1.1 |
AutoReq: no |
23 |
|
|
BuildArchitectures: noarch |
24 |
|
|
|
25 |
|
|
%description |
26 |
|
|
ezmlm-www This project provides a useful web interface for Ezmlm |
27 |
|
|
mailing list archives. It extends ezmlm-cgi.c capabilities and features |
28 |
|
|
by using a modular architecture: it is fully Perl-based. |
29 |
|
|
|
30 |
|
|
%changelog |
31 |
jpp |
1.2 |
* Tue Mar 15 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.4.5-3.sme |
32 |
|
|
- build for SME10 [SME: 11909] |
33 |
jpp |
1.3 |
use initial source and compile ourself the index.cgi |
34 |
|
|
todo chmod |
35 |
|
|
todo template the two config files |
36 |
|
|
todo improve access rights |
37 |
jpp |
1.2 |
|
38 |
jpp |
1.1 |
* Wed Dec 5 2007 Normando Hall <nhall@unixlan.com.ar> |
39 |
|
|
- first release |
40 |
|
|
|
41 |
|
|
|
42 |
|
|
%define debug_package %{nil} |
43 |
|
|
|
44 |
|
|
%prep |
45 |
|
|
|
46 |
|
|
%setup |
47 |
jpp |
1.3 |
%setup -T -D -a 1 |
48 |
|
|
cp -r ezmlm-www-1.4.5/* root/opt/mailinglist |
49 |
jpp |
1.1 |
|
50 |
|
|
%build |
51 |
jpp |
1.2 |
perl createlinks |
52 |
jpp |
1.3 |
#compile the c file |
53 |
|
|
cd root/opt/mailinglist |
54 |
|
|
cc index.cgi.c -o index.cgi |
55 |
|
|
#cc index.cgi.c -o index.cgi |
56 |
|
|
#chown popuser index.cgi |
57 |
|
|
#chmod 4711 index.cgi |
58 |
|
|
#chmod 755 ezmlm-www.pl |
59 |
jpp |
1.1 |
|
60 |
|
|
%install |
61 |
|
|
rm -rf $RPM_BUILD_ROOT |
62 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
63 |
|
|
rm -f %{name}-%{version}-filelist |
64 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
65 |
|
|
|
66 |
|
|
%clean |
67 |
|
|
rm -rf $RPM_BUILD_ROOT |
68 |
|
|
|
69 |
|
|
%post |
70 |
|
|
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
71 |
|
|
/etc/rc.d/init.d/httpd-e-smith sigusr1 |
72 |
|
|
|
73 |
|
|
|
74 |
|
|
%postun |
75 |
|
|
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
76 |
|
|
/etc/rc.d/init.d/httpd-e-smith sigusr1 |
77 |
|
|
|
78 |
|
|
|
79 |
|
|
%files -f %{name}-%{version}-filelist |
80 |
|
|
%defattr(-,root,root) |
81 |
|
|
|
82 |
|
|
|
83 |
|
|
%attr(0755,root,root) /opt/mailinglist/search/ez_indexer.pl |
84 |
|
|
%attr(0755,root,root) /opt/mailinglist/ezmlm-www.pl |
85 |
|
|
%attr(4711,ezmlm,ezmlm) /opt/mailinglist/index.cgi |