2024-01-06 10:00:08 +01:00
|
|
|
%define serverdir %(apxs -q htdocsdir 2>/dev/null)
|
|
|
|
|
|
|
|
# To create a customized installation of phplist:
|
|
|
|
# autospec -u phplist -a5 \
|
|
|
|
# -d "installdir=%serverdir/../www.example.com, \
|
|
|
|
# sitename=example, \
|
|
|
|
# adminmail=webmaster@example.com"
|
|
|
|
|
|
|
|
%if "%{?installdir}" == ""
|
|
|
|
%define installdir %{serverdir}/phplist
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if "%{?sitename}" != ""
|
|
|
|
%if "%{?servername}" == ""
|
|
|
|
%define servername %(basename %installdir 2>/dev/null)
|
|
|
|
%endif
|
|
|
|
%define serverlogdir %(apxs -q logfiledir 2>/dev/null)
|
|
|
|
%else
|
|
|
|
%if "%{?aliasdir}" == ""
|
|
|
|
%define aliasdir /phplist
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
Name: %{?sitename:%sitename-website-}phplist
|
|
|
|
Epoch: 1
|
2024-01-06 10:00:12 +01:00
|
|
|
Version: 3.6.13
|
2024-01-06 10:00:08 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: A one-way email announcement delivery system
|
|
|
|
Group: Applications/Web
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-06 10:00:09 +01:00
|
|
|
URL: https://www.phplist.com/
|
2024-01-06 10:00:08 +01:00
|
|
|
Source: http://downloads.sourceforge.net/sourceforge/phplist/phplist-%{version}.tgz
|
|
|
|
Source1: admin_lan_it.zip
|
|
|
|
Source2: admin_help_it.zip
|
|
|
|
Source3: admin_info_it.zip
|
|
|
|
Patch0: phplist-2.10.14-languages.patch
|
|
|
|
Patch1: phplist-2.10.5-disable_testmode.patch
|
|
|
|
Patch2: phplist-2.10.5-move_to_root.patch
|
|
|
|
License: GPL
|
|
|
|
BuildArch: noarch
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
Requires: php
|
|
|
|
Requires: phpmailer
|
|
|
|
Requires: php-imap
|
|
|
|
|
|
|
|
%description
|
|
|
|
phplist is a one-way email announcement delivery system. It is great for newsletters, publicity lists, notifications, and many other uses.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n phplist-%{version}
|
|
|
|
exit 0
|
2024-01-06 10:00:12 +01:00
|
|
|
%patch 0 -p1
|
|
|
|
%patch 1 -p1
|
|
|
|
%patch 2 -p1
|
2024-01-06 10:00:08 +01:00
|
|
|
|
|
|
|
# install italian localization
|
|
|
|
cd public_html/lists/admin/lan
|
|
|
|
unzip %{SOURCE1}
|
|
|
|
|
|
|
|
cd ../help
|
|
|
|
unzip %{SOURCE2}
|
|
|
|
|
|
|
|
cd ../info
|
|
|
|
unzip %{SOURCE3}
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
install -d %{buildroot}%{installdir}
|
|
|
|
cp -a public_html/lists/* %{buildroot}%{installdir}
|
|
|
|
|
|
|
|
install -d %{buildroot}%{_sysconfdir}/httpd/httpd.d
|
|
|
|
%if "%{?sitename}" != ""
|
|
|
|
cat > %{buildroot}%{_sysconfdir}/httpd/httpd.d/%{servername}.conf << EOF
|
|
|
|
%else
|
|
|
|
cat > %{buildroot}%{_sysconfdir}/httpd/httpd.d/%{name}.conf << EOF
|
|
|
|
%endif
|
|
|
|
%if "%{?sitename}" == ""
|
|
|
|
%if "%(dirname %installdir)" != "%{serverdir}"
|
|
|
|
Alias %{aliasdir} %{installdir}
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
<Directory %{installdir}>
|
|
|
|
AllowOverride All
|
|
|
|
Order allow,deny
|
|
|
|
Allow from All
|
|
|
|
DirectoryIndex index.php index.html
|
|
|
|
</Directory>
|
|
|
|
%if "%{?sitename}" != ""
|
|
|
|
%if "%(dirname %installdir)" != "%{serverdir}"
|
|
|
|
|
|
|
|
<VirtualHost *:80>
|
|
|
|
%{?adminmail:ServerAdmin %adminmail}
|
|
|
|
DocumentRoot %{installdir}
|
|
|
|
ServerName %{servername}
|
|
|
|
ErrorLog %{serverlogdir}/%{servername}-error_log
|
|
|
|
CustomLog %{serverlogdir}/%{servername}-access_log common
|
|
|
|
</VirtualHost>
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
EOF
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{installdir}
|
|
|
|
%{installdir}/*.php
|
|
|
|
%{installdir}/index.html
|
|
|
|
%dir %{installdir}/admin
|
|
|
|
%{installdir}/admin/.htaccess
|
|
|
|
%{installdir}/admin/.minceconf
|
|
|
|
%{installdir}/admin/*
|
2024-01-06 10:00:09 +01:00
|
|
|
%dir %{installdir}/base
|
|
|
|
%dir %{installdir}/base/.github
|
|
|
|
%{installdir}/base/.github/*
|
|
|
|
%{installdir}/base/.gitignore
|
|
|
|
%{installdir}/base/.travis.yml
|
|
|
|
%{installdir}/base/*
|
2024-01-06 10:00:08 +01:00
|
|
|
%config(noreplace) %{installdir}/config/*
|
|
|
|
%config(noreplace) %{installdir}/config/.htaccess
|
|
|
|
%dir %{installdir}/images
|
|
|
|
%{installdir}/images/*
|
|
|
|
%{installdir}/js/*
|
|
|
|
%{installdir}/styles/*
|
2024-01-06 10:00:09 +01:00
|
|
|
%dir %{installdir}/texts
|
|
|
|
%{installdir}/texts/.travis.yml
|
2024-01-06 10:00:08 +01:00
|
|
|
%{installdir}/texts/*
|
2024-01-06 10:00:09 +01:00
|
|
|
%{installdir}/texts/.gitignore
|
2024-01-06 10:00:09 +01:00
|
|
|
%dir %{installdir}/updater
|
|
|
|
%{installdir}/updater/*
|
2024-01-06 10:00:08 +01:00
|
|
|
%if "%{?sitename}" != ""
|
|
|
|
%config(noreplace) %{_sysconfdir}/httpd/httpd.d/%{servername}.conf
|
|
|
|
%else
|
|
|
|
%config(noreplace) %{_sysconfdir}/httpd/httpd.d/%{name}.conf
|
|
|
|
%endif
|
|
|
|
%doc COPYING
|
|
|
|
#NEWS BUGS README README.batches README.bounces README.commandline
|
|
|
|
#%doc README.passwords README.repetition README.rssfeeds README.security
|
|
|
|
#%doc README.usertables TODO
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 10:00:12 +01:00
|
|
|
* Tue May 30 2023 Automatic Build System <autodist@mambasoft.it> 3.6.13-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 10:00:11 +01:00
|
|
|
* Mon Feb 13 2023 Automatic Build System <autodist@mambasoft.it> 3.6.12-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 10:00:09 +01:00
|
|
|
* Tue Oct 25 2022 Automatic Build System <autodist@mambasoft.it> 3.6.10-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 10:00:09 +01:00
|
|
|
* Mon Oct 24 2022 Automatic Build System <autodist@mambasoft.it> 3.6.9-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 10:00:09 +01:00
|
|
|
* Fri Jun 24 2022 Automatic Build System <autodist@mambasoft.it> 3.6.8-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 10:00:09 +01:00
|
|
|
* Thu Feb 17 2022 Automatic Build System <autodist@mambasoft.it> 3.6.7-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 10:00:09 +01:00
|
|
|
* Sat Jan 01 2022 Automatic Build System <autodist@mambasoft.it> 3.6.6-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 10:00:09 +01:00
|
|
|
* Fri Nov 19 2021 Automatic Build System <autodist@mambasoft.it> 3.6.5-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 10:00:09 +01:00
|
|
|
* Wed Jun 02 2021 Automatic Build System <autodist@mambasoft.it> 3.6.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 10:00:09 +01:00
|
|
|
* Wed Mar 17 2021 Automatic Build System <autodist@mambasoft.it> 3.6.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 10:00:09 +01:00
|
|
|
* Thu Feb 25 2021 Automatic Build System <autodist@mambasoft.it> 3.6.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 10:00:09 +01:00
|
|
|
* Sat Nov 18 2017 Automatic Build System <autodist@mambasoft.it> 3.3.1-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-06 10:00:09 +01:00
|
|
|
* Mon Jan 25 2016 Automatic Build System <autodist@mambasoft.it> 3.2.4-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-06 10:00:09 +01:00
|
|
|
* Sun Feb 08 2015 Automatic Build System <autodist@mambasoft.it> 3.0.12-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-06 10:00:08 +01:00
|
|
|
* Thu Jan 08 2015 Automatic Build System <autodist@mambasoft.it> 3.0.11-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-06 10:00:08 +01:00
|
|
|
* Mon Nov 10 2014 Automatic Build System <autodist@mambasoft.it> 3.0.10-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-06 10:00:08 +01:00
|
|
|
* Sun Oct 12 2014 Automatic Build System <autodist@mambasoft.it> 3.0.8-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-06 10:00:08 +01:00
|
|
|
* Sun May 25 2014 Automatic Build System <autodist@mambasoft.it> 3.0.6-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-06 10:00:08 +01:00
|
|
|
* Sun Dec 29 2013 Automatic Build System <autodist@mambasoft.it> 3.0.5-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Mon Sep 30 2013 Automatic Build System <autodist@mambasoft.it> 3.0.4-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Thu Aug 22 2013 Automatic Build System <autodist@mambasoft.it> 3.0.2-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Wed Feb 06 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 2.10.19-2mamba
|
|
|
|
- fix apxs path
|
|
|
|
|
|
|
|
* Thu Jan 10 2013 Automatic Build System <autodist@mambasoft.it> 2.10.19-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Tue Aug 07 2012 Automatic Build System <autodist@mambasoft.it> 2.10.18-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Mon Oct 24 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 2.10.17-1mamba
|
|
|
|
- update to 2.10.17
|
|
|
|
|
|
|
|
* Wed Jun 08 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 2.10.14-1mamba
|
|
|
|
- update to 2.10.14
|
|
|
|
- downgraded to stable release
|
|
|
|
|
|
|
|
* Tue Aug 04 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 2.11.3-2mamba
|
|
|
|
- added requirement for php-imap
|
|
|
|
|
|
|
|
* Wed Jul 15 2009 Automatic Build System <autodist@mambasoft.it> 2.11.3-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Tue May 26 2009 Automatic Build System <autodist@mambasoft.it> 2.10.10-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Tue Feb 03 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 2.10.9-1mamba
|
|
|
|
- update to 2.10.9
|
|
|
|
|
|
|
|
* Wed Dec 10 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 2.10.8-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Tue Feb 26 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 2.10.5-2mamba
|
|
|
|
- added patch that disables demo mode by default
|
|
|
|
- added requirement for phpmailer
|
|
|
|
|
|
|
|
* Mon Feb 25 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 2.10.5-1mamba
|
|
|
|
- package created by autospec
|
|
|
|
- added italian translation from
|
|
|
|
www.dharmstyle.it/2007/04/23/traduzione-phplist-in-italiano
|
|
|
|
|