1 |
jpp |
1.9 |
# $Id: smeserver-ezmlm-www.spec,v 1.8 2022/03/19 03:30:10 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.9 |
%define release 6 |
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.4 |
Patch0: smeserver-ezmlm-www-2.0.0-bz11909-sme10.patch |
18 |
jpp |
1.2 |
|
19 |
jpp |
1.1 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
20 |
|
|
Requires: perl-Mail-Box perl-User-Identity perl-TimeDate perl-Email-Simple perl-Plucene perl-KinoSearch ezmlm-web perl-Ezmlm perl-Mail-Ezmlm-Archive |
21 |
|
|
BuildRequires: e-smith-devtools |
22 |
jpp |
1.3 |
BuildRequires: gcc |
23 |
jpp |
1.1 |
AutoReq: no |
24 |
jpp |
1.5 |
##BuildArchitectures: noarch |
25 |
jpp |
1.1 |
|
26 |
|
|
%description |
27 |
|
|
ezmlm-www This project provides a useful web interface for Ezmlm |
28 |
|
|
mailing list archives. It extends ezmlm-cgi.c capabilities and features |
29 |
|
|
by using a modular architecture: it is fully Perl-based. |
30 |
|
|
|
31 |
|
|
%changelog |
32 |
jpp |
1.9 |
* Fri Mar 18 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.0.0-6.sme |
33 |
|
|
- remove list archive creation from event [SME: 11909] |
34 |
|
|
- keep it a manual intervention until we add a button on server-manager |
35 |
|
|
|
36 |
jpp |
1.8 |
* Fri Mar 18 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.0.0-5.sme |
37 |
jpp |
1.6 |
- fix ez_search perms [SME: 11909] |
38 |
|
|
- use KinoSearch1 |
39 |
|
|
- create directory indexes |
40 |
|
|
|
41 |
jpp |
1.2 |
* Tue Mar 15 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.4.5-3.sme |
42 |
|
|
- build for SME10 [SME: 11909] |
43 |
jpp |
1.3 |
use initial source and compile ourself the index.cgi |
44 |
jpp |
1.5 |
template the two config files |
45 |
|
|
todo improve access rights in template |
46 |
jpp |
1.2 |
|
47 |
jpp |
1.1 |
* Wed Dec 5 2007 Normando Hall <nhall@unixlan.com.ar> |
48 |
|
|
- first release |
49 |
|
|
|
50 |
|
|
|
51 |
|
|
%define debug_package %{nil} |
52 |
|
|
|
53 |
|
|
%prep |
54 |
|
|
|
55 |
|
|
%setup |
56 |
jpp |
1.3 |
%setup -T -D -a 1 |
57 |
|
|
cp -r ezmlm-www-1.4.5/* root/opt/mailinglist |
58 |
jpp |
1.4 |
%patch0 -p1 |
59 |
jpp |
1.6 |
# sed KinoSearch KinoSearch1 |
60 |
jpp |
1.7 |
#sed -i root/opt/mailinglist/search/ez_indexer.pl -i root/opt/mailinglist/ezmlm-www.pl \ |
61 |
|
|
# -e 's/KinoSearch/KinoSearch1/g' |
62 |
|
|
#mkdir -p root/opt/mailinglist/search/indexes |
63 |
jpp |
1.1 |
|
64 |
|
|
%build |
65 |
jpp |
1.2 |
perl createlinks |
66 |
jpp |
1.3 |
#compile the c file |
67 |
|
|
cd root/opt/mailinglist |
68 |
|
|
cc index.cgi.c -o index.cgi |
69 |
jpp |
1.1 |
|
70 |
|
|
%install |
71 |
|
|
rm -rf $RPM_BUILD_ROOT |
72 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
73 |
|
|
rm -f %{name}-%{version}-filelist |
74 |
jpp |
1.4 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
75 |
jpp |
1.6 |
--dir '/opt/mailinglist/search/indexes' 'attr(4775,ezmlm,ezmlm)' \ |
76 |
jpp |
1.5 |
--file /opt/mailinglist/search/ez_indexer.pl 'attr(0755,root,root)' \ |
77 |
|
|
--file /opt/mailinglist/ezmlm-www.pl 'attr(0755,root,root)' \ |
78 |
|
|
--file /opt/mailinglist/index.cgi 'attr(4711,ezmlm,ezmlm)' \ |
79 |
jpp |
1.4 |
> %{name}-%{version}-filelist |
80 |
jpp |
1.1 |
|
81 |
|
|
%clean |
82 |
|
|
rm -rf $RPM_BUILD_ROOT |
83 |
|
|
|
84 |
|
|
%post |
85 |
|
|
|
86 |
|
|
|
87 |
|
|
%postun |
88 |
|
|
|
89 |
|
|
|
90 |
|
|
%files -f %{name}-%{version}-filelist |
91 |
|
|
%defattr(-,root,root) |