113 lines
3.6 KiB
RPMSpec
113 lines
3.6 KiB
RPMSpec
![]() |
%define name phplist
|
||
|
%define version 3.6.8
|
||
|
%define release 2
|
||
|
%define httpuser apache
|
||
|
|
||
|
Summary: newsletter manager
|
||
|
Name: %{name}
|
||
|
Version: %{version}
|
||
|
Release: %{release}%{?dist}
|
||
|
License: GNU GPL
|
||
|
URL: http://www.phplist.org
|
||
|
Group: application/internet
|
||
|
Source: %{name}-%{version}.tgz
|
||
|
Source1: httpd.conf
|
||
|
Patch0: phplist-3.6.8-manage_admins_with_external_auth.patch
|
||
|
#phplist-3.2.4-manage_admins_with_external_auth.patch
|
||
|
Packager: Daniel B. <daniel@firewall-services.com>
|
||
|
BuildArch: noarch
|
||
|
BuildRoot: /var/tmp/%{name}-%{version}
|
||
|
|
||
|
Requires: php
|
||
|
Requires: php-mysql
|
||
|
Requires: php-imap
|
||
|
Requires: httpd
|
||
|
#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
|
||
|
|
||
|
%description
|
||
|
phplist is the world's most popular open source email campaign manager.
|
||
|
|
||
|
|
||
|
%prep
|
||
|
%setup
|
||
|
#%patch0 -p1
|
||
|
|
||
|
%build
|
||
|
# empty build
|
||
|
|
||
|
%install
|
||
|
|
||
|
%{__rm} -rf %{buildroot}
|
||
|
%{__mkdir} -p %{buildroot}/%{_datadir}/%{name}
|
||
|
%{__mkdir} -p %{buildroot}/%{_sysconfdir}/
|
||
|
%{__mkdir} -p %{buildroot}/%{_localstatedir}/lib/%{name}/{tmp,images}
|
||
|
%{__cp} -r bin %{buildroot}/%{_datadir}/%{name}
|
||
|
%{__mv} public_html/lists/config %{buildroot}/%{_sysconfdir}/%{name}
|
||
|
%{__rm} -f %{buildroot}/%{_sysconfdir}/%{name}/.htaccess
|
||
|
%{__cp} -r public_html/lists %{buildroot}/%{_datadir}/%{name}/www
|
||
|
ln -s %{_sysconfdir}/%{name} %{buildroot}/%{_datadir}/%{name}/www/config
|
||
|
ln -s %{_localstatedir}/lib/%{name}/images %{buildroot}/%{_datadir}/%{name}/www/uploadimages
|
||
|
sed -i -e "s|/home/website/public_html/lists/|%{_datadir}/%{name}/www/|g" \
|
||
|
%{buildroot}/%{_datadir}/%{name}/bin/phplist
|
||
|
|
||
|
%{__mkdir} -p %{buildroot}/%{_sysconfdir}/httpd/conf.d/
|
||
|
%{__install} -m 0640 %{SOURCE1} %{buildroot}/%{_sysconfdir}/httpd/conf.d/%{name}.conf
|
||
|
|
||
|
|
||
|
%clean
|
||
|
rm -rf %{buildroot}
|
||
|
|
||
|
%post
|
||
|
|
||
|
%postun
|
||
|
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%{_datadir}/%{name}
|
||
|
%doc CODE_OF_CONDUCT.md CONTRIBUTING.md COPYING INSTALL LICENSE PEOPLE README.md TODO UPGRADE VERSION
|
||
|
%attr(0755,root,root) %{_datadir}/%{name}/bin/phplist
|
||
|
%dir %attr(770,root,%{httpuser}) %{_localstatedir}/lib/%{name}/
|
||
|
%dir %attr(770,root,%{httpuser}) %{_localstatedir}/lib/%{name}/tmp
|
||
|
%dir %attr(770,root,%{httpuser}) %{_localstatedir}/lib/%{name}/images
|
||
|
%dir %attr(770,root,%{httpuser}) %{_datadir}/%{name}/www/admin/plugins
|
||
|
#%dir %attr(770,root,%{httpuser}) %{_sysconfdir}/%{name}
|
||
|
%config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf
|
||
|
%config(noreplace) %{_sysconfdir}/%{name}/config.php
|
||
|
%{_sysconfdir}/%{name}/config_extended.php
|
||
|
|
||
|
%changelog
|
||
|
* Thu Oct 09 2025 BogusDateBot
|
||
|
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,
|
||
|
by assuming the date is correct and changing the weekday.
|
||
|
|
||
|
* Thu Aug 04 2022 Jean-Philippe Pialasse <tests@pialasse.com> 3.6.8-2.sme
|
||
|
- disable auth patch
|
||
|
|
||
|
* Tue Aug 02 2022 Jean-Philippe Pialasse <tests@pialasse.com> 3.6.8-1
|
||
|
- Update to 3.6.8
|
||
|
|
||
|
* Mon Feb 22 2016 Daniel Berteaud <daniel@firewall-services.com> 3.2.4-1
|
||
|
- Update to 3.2.4
|
||
|
|
||
|
* Mon Sep 7 2015 Daniel B. <daniel@firewall-services.com> 3.0.12-1
|
||
|
- Update to 3.0.12
|
||
|
|
||
|
* Thu Jan 29 2015 Daniel B. <daniel@firewall-services.com> 3.0.11-1
|
||
|
- Update to 3.0.11
|
||
|
|
||
|
* Wed Oct 22 2014 Daniel B. <daniel@firewall-services.com> 3.0.10-1
|
||
|
- Update to 3.0.10
|
||
|
|
||
|
* Thu Sep 11 2014 Daniel B. <daniel@firewall-services.com> 3.0.8-1
|
||
|
- Update to 3.0.8
|
||
|
|
||
|
* Wed Jul 30 2014 Daniel B. <daniel@firewall-services.com> 3.0.6-1
|
||
|
- Update to 3.0.6
|
||
|
|
||
|
* Fri Oct 11 2013 Daniel B. <daniel@firewall-services.com> 3.0.5-1
|
||
|
- upgrade to 3.0.5
|
||
|
|
||
|
* Tue Dec 7 2010 Pierre B. <pierre@firewall-services.com> 2.10.12-0
|
||
|
- initial release
|