%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 Version: 3.6.2 Release: 1mamba Summary: A one-way email announcement delivery system Group: Applications/Web Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://www.phplist.com/ 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 %patch0 -p1 %patch1 -p1 %patch2 -p1 # 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 AllowOverride All Order allow,deny Allow from All DirectoryIndex index.php index.html %if "%{?sitename}" != "" %if "%(dirname %installdir)" != "%{serverdir}" %{?adminmail:ServerAdmin %adminmail} DocumentRoot %{installdir} ServerName %{servername} ErrorLog %{serverlogdir}/%{servername}-error_log CustomLog %{serverlogdir}/%{servername}-access_log common %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/* %{installdir}/admin/.gitignore %{installdir}/admin/.gitignore %dir %{installdir}/base %dir %{installdir}/base/.github %{installdir}/base/.github/* %{installdir}/base/.gitignore %{installdir}/base/.travis.yml %{installdir}/base/* %config(noreplace) %{installdir}/config/* %config(noreplace) %{installdir}/config/.htaccess %dir %{installdir}/images %{installdir}/images/* %{installdir}/js/* %{installdir}/styles/* %dir %{installdir}/texts %{installdir}/texts/.travis.yml %{installdir}/texts/* %{installdir}/texts/.gitignore %dir %{installdir}/updater %{installdir}/updater/* %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 * Wed Mar 17 2021 Automatic Build System 3.6.2-1mamba - automatic version update by autodist * Thu Feb 25 2021 Automatic Build System 3.6.1-1mamba - automatic version update by autodist * Sat Nov 18 2017 Automatic Build System 3.3.1-1mamba - automatic update by autodist * Mon Jan 25 2016 Automatic Build System 3.2.4-1mamba - automatic update by autodist * Sun Feb 08 2015 Automatic Build System 3.0.12-1mamba - automatic update by autodist * Thu Jan 08 2015 Automatic Build System 3.0.11-1mamba - automatic update by autodist * Mon Nov 10 2014 Automatic Build System 3.0.10-1mamba - automatic update by autodist * Sun Oct 12 2014 Automatic Build System 3.0.8-1mamba - automatic update by autodist * Sun May 25 2014 Automatic Build System 3.0.6-1mamba - automatic update by autodist * Sun Dec 29 2013 Automatic Build System 3.0.5-1mamba - automatic update by autodist * Mon Sep 30 2013 Automatic Build System 3.0.4-1mamba - automatic update by autodist * Thu Aug 22 2013 Automatic Build System 3.0.2-1mamba - automatic update by autodist * Wed Feb 06 2013 Silvan Calarco 2.10.19-2mamba - fix apxs path * Thu Jan 10 2013 Automatic Build System 2.10.19-1mamba - automatic version update by autodist * Tue Aug 07 2012 Automatic Build System 2.10.18-1mamba - automatic version update by autodist * Mon Oct 24 2011 Silvan Calarco 2.10.17-1mamba - update to 2.10.17 * Wed Jun 08 2011 Silvan Calarco 2.10.14-1mamba - update to 2.10.14 - downgraded to stable release * Tue Aug 04 2009 Silvan Calarco 2.11.3-2mamba - added requirement for php-imap * Wed Jul 15 2009 Automatic Build System 2.11.3-1mamba - automatic update by autodist * Tue May 26 2009 Automatic Build System 2.10.10-1mamba - automatic update by autodist * Tue Feb 03 2009 Silvan Calarco 2.10.9-1mamba - update to 2.10.9 * Wed Dec 10 2008 Silvan Calarco 2.10.8-1mamba - automatic update by autodist * Tue Feb 26 2008 Silvan Calarco 2.10.5-2mamba - added patch that disables demo mode by default - added requirement for phpmailer * Mon Feb 25 2008 Silvan Calarco 2.10.5-1mamba - package created by autospec - added italian translation from www.dharmstyle.it/2007/04/23/traduzione-phplist-in-italiano