1 |
%define name phplist |
2 |
%define version 3.6.8 |
3 |
%define release 2 |
4 |
%define httpuser apache |
5 |
|
6 |
Summary: newsletter manager |
7 |
Name: %{name} |
8 |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
10 |
License: GNU GPL |
11 |
URL: http://www.phplist.org |
12 |
Group: application/internet |
13 |
Source: %{name}-%{version}.tgz |
14 |
Source1: httpd.conf |
15 |
Patch0: phplist-3.6.8-manage_admins_with_external_auth.patch |
16 |
#phplist-3.2.4-manage_admins_with_external_auth.patch |
17 |
Packager: Daniel B. <daniel@firewall-services.com> |
18 |
BuildArch: noarch |
19 |
BuildRoot: /var/tmp/%{name}-%{version} |
20 |
|
21 |
Requires: php |
22 |
Requires: php-mysql |
23 |
Requires: php-imap |
24 |
Requires: httpd |
25 |
#Requires: php80-php php80-php-mysqli php80-php-mysqlnd php80-php-pecl-mysql php80-php-curl php80-php-gd php80-php-gettext php80-php-iconv php80-php-imap php80-php-mbstring php80-php-mysqli php80-php-pear-HTTP_Request php80-php-session php80-php-xml php80-php-zlib php80-php-mbstring php80-php-gd |
26 |
|
27 |
%description |
28 |
phplist is the world's most popular open source email campaign manager. |
29 |
|
30 |
|
31 |
%prep |
32 |
%setup |
33 |
#%patch0 -p1 |
34 |
|
35 |
%build |
36 |
# empty build |
37 |
|
38 |
%install |
39 |
|
40 |
%{__rm} -rf %{buildroot} |
41 |
%{__mkdir} -p %{buildroot}/%{_datadir}/%{name} |
42 |
%{__mkdir} -p %{buildroot}/%{_sysconfdir}/ |
43 |
%{__mkdir} -p %{buildroot}/%{_localstatedir}/lib/%{name}/{tmp,images} |
44 |
%{__cp} -r bin %{buildroot}/%{_datadir}/%{name} |
45 |
%{__mv} public_html/lists/config %{buildroot}/%{_sysconfdir}/%{name} |
46 |
%{__rm} -f %{buildroot}/%{_sysconfdir}/%{name}/.htaccess |
47 |
%{__cp} -r public_html/lists %{buildroot}/%{_datadir}/%{name}/www |
48 |
ln -s %{_sysconfdir}/%{name} %{buildroot}/%{_datadir}/%{name}/www/config |
49 |
ln -s %{_localstatedir}/lib/%{name}/images %{buildroot}/%{_datadir}/%{name}/www/uploadimages |
50 |
sed -i -e "s|/home/website/public_html/lists/|%{_datadir}/%{name}/www/|g" \ |
51 |
%{buildroot}/%{_datadir}/%{name}/bin/phplist |
52 |
|
53 |
%{__mkdir} -p %{buildroot}/%{_sysconfdir}/httpd/conf.d/ |
54 |
%{__install} -m 0640 %{SOURCE1} %{buildroot}/%{_sysconfdir}/httpd/conf.d/%{name}.conf |
55 |
|
56 |
|
57 |
%clean |
58 |
rm -rf %{buildroot} |
59 |
|
60 |
%post |
61 |
|
62 |
%postun |
63 |
|
64 |
|
65 |
%files |
66 |
%defattr(-,root,root) |
67 |
%{_datadir}/%{name} |
68 |
%doc CODE_OF_CONDUCT.md CONTRIBUTING.md COPYING INSTALL LICENSE PEOPLE README.md TODO UPGRADE VERSION |
69 |
%attr(0755,root,root) %{_datadir}/%{name}/bin/phplist |
70 |
%dir %attr(770,root,%{httpuser}) %{_localstatedir}/lib/%{name}/ |
71 |
%dir %attr(770,root,%{httpuser}) %{_localstatedir}/lib/%{name}/tmp |
72 |
%dir %attr(770,root,%{httpuser}) %{_localstatedir}/lib/%{name}/images |
73 |
%dir %attr(770,root,%{httpuser}) %{_datadir}/%{name}/www/admin/plugins |
74 |
#%dir %attr(770,root,%{httpuser}) %{_sysconfdir}/%{name} |
75 |
%config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf |
76 |
%config(noreplace) %{_sysconfdir}/%{name}/config.php |
77 |
%{_sysconfdir}/%{name}/config_extended.php |
78 |
|
79 |
%changelog |
80 |
* Thu Aug 04 2022 Jean-Philippe Pialasse <tests@pialasse.com> 3.6.8-2.sme |
81 |
- disable auth patch |
82 |
|
83 |
* Tue Aug 02 2022 Jean-Philippe Pialasse <tests@pialasse.com> 3.6.8-1 |
84 |
- Update to 3.6.8 |
85 |
|
86 |
* Mon Feb 22 2016 Daniel Berteaud <daniel@firewall-services.com> 3.2.4-1 |
87 |
- Update to 3.2.4 |
88 |
|
89 |
* Mon Sep 7 2015 Daniel B. <daniel@firewall-services.com> 3.0.12-1 |
90 |
- Update to 3.0.12 |
91 |
|
92 |
* Thu Jan 29 2015 Daniel B. <daniel@firewall-services.com> 3.0.11-1 |
93 |
- Update to 3.0.11 |
94 |
|
95 |
* Wed Oct 22 2014 Daniel B. <daniel@firewall-services.com> 3.0.10-1 |
96 |
- Update to 3.0.10 |
97 |
|
98 |
* Thu Sep 11 2014 Daniel B. <daniel@firewall-services.com> 3.0.8-1 |
99 |
- Update to 3.0.8 |
100 |
|
101 |
* Wed Jul 30 2014 Daniel B. <daniel@firewall-services.com> 3.0.6-1 |
102 |
- Update to 3.0.6 |
103 |
|
104 |
* Fri Oct 11 2013 Daniel B. <daniel@firewall-services.com> 3.0.5-1 |
105 |
- upgrade to 3.0.5 |
106 |
|
107 |
* Tue Dec 7 2010 Pierre B. <pierre@firewall-services.com> 2.10.12-0 |
108 |
- initial release |