--- rpms/ezmlm-web/contribs8/ezmlm-web.spec 2013/05/12 19:37:27 1.1 +++ rpms/ezmlm-web/contribs8/ezmlm-web.spec 2016/04/21 04:35:53 1.6 @@ -1,22 +1,21 @@ -# $Id: ezmlm-web.spec,v 1.4 2008/11/25 16:20:11 slords Exp $ +# $Id: ezmlm-web.spec,v 1.5 2016/04/20 10:54:10 unnilennium Exp $ # Authority: gordonr # Name: Gordon Rowell Summary: Web interface to ezmlm configuration %define name ezmlm-web Name: %{name} -%define version 2.3 -%define release 2 +%define version 3.3.1 +%define release 5 Version: %{version} Release: %{release}%{?dist} License: BSD-style Group: Networking/Daemons URL: https://systemausfall.org/toolforge/ezmlm-web/ -Source: https://systemausfall.org/toolforge/ezmlm-web/download/ezmlm-web-2.3.tar.gz -Patch0: ezmlm-web-2.3-cgibin.patch -Patch1: ezmlm-web-2.3-helpicon.patch -Patch2: ezmlm-web-2.3-deletebutton.patch2 - +Source: https://systemausfall.org/toolforge/ezmlm-web/download/ezmlm-web-3.3.1.tar.gz +Patch0: ezmlm-web-3.3.1-smeintegration.patch +Patch1: ezmlm-web-3.3.1-cgi.patch +Patch2: ezmlm-web-3.3.1-modiffor722.patch BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot Requires: ezmlm-idx-std Requires: httpd @@ -25,6 +24,8 @@ Requires: perl Requires: perl-Ezmlm Requires: perl-MailTools BuildRequires: gcc +BuildRequires: e-smith-devtools +BuildRequires: perl-Ezmlm %description The need for ezmlm-web arose from the fact that we host many student @@ -57,6 +58,17 @@ many new features that have been suggest and hopefully is now useful to a much larger group of people. %changelog +* Thu Apr 21 2016 Jean-Philipe Pialasse 3.3.1-5.sme +- remove non available options (always on) in ezmlm-idx 7.2.2 [SME: 9470] +- remove setting user access to web, as unecessary in SME +- patch ezmlm-web-3.3.1-modiffor722.patch + +* Wed Apr 20 2016 Jean-Philipe Pialasse 3.3.1-4.sme +- small fix to save some config with 7.2.2 idx [SME: 9470] + +* Mon Apr 18 2016 Jean-Philipe Pialasse 3.3.1-1.sme +- update to 3.3.1 [SME: 7588] + * Sun Apr 29 2007 Shad L. Lords - Clean up spec so package can be built by koji/plague @@ -99,19 +111,23 @@ and hopefully is now useful to a much la %patch2 -p1 %build -gcc -o index.cgi index.c +mkdir build +perl Makefile.PL DESTDIR=build REALINSTALLBIN=/usr/local/bin/ezmlm-web +make +make install + + %install rm -rf $RPM_BUILD_ROOT -mkdir -p $RPM_BUILD_ROOT/usr/bin -cp ezmlm-web.cgi $RPM_BUILD_ROOT/usr/bin - -mkdir -p $RPM_BUILD_ROOT/home/httpd/html/ezmlm-web -cp index.cgi $RPM_BUILD_ROOT/home/httpd/html/ezmlm-web +(cd build ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) +/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ +| sed -e '/ezmlm-web.cgi.1p/d' \ +> %{name}-%{version}-%{release}-filelist -mkdir -p $RPM_BUILD_ROOT/etc/ezmlm -cp ezmlmwebrc $RPM_BUILD_ROOT/etc/ezmlm +# creating the cgi index to the suid wrapper +cp -a $RPM_BUILD_ROOT/usr/bin/ezmlm-web.wrapper $RPM_BUILD_ROOT/usr/local/share/ezmlm-web/www-data/index.cgi %clean rm -rf $RPM_BUILD_ROOT @@ -130,11 +146,7 @@ grep '^ezmlm:' /etc/passwd > /dev/null | %preun %postun -%files +%files -f %{name}-%{version}-%{release}-filelist %defattr(-,root,root) -%attr(0755,root,root) /usr/bin/ezmlm-web.cgi -%attr(4755,ezmlm,ezmlm) /home/httpd/html/ezmlm-web/index.cgi -%config(noreplace) /etc/ezmlm/ezmlmwebrc -%doc CHANGES README TODO UPGRADING -%doc webusers.sample -%doc htaccess.sample +%attr(104755,ezmlm,ezmlm) /usr/local/share/ezmlm-web/www-data/index.cgi +%doc /usr/share/man/man1/ezmlm-web.cgi.1p.gz