Summary: mess822 Summary(ja): mess822 Name: mess822 Version: 0.58 Release: 0vl1 License: BSD License ? Group: Utilities/System URL: http://cr.yp.to/mess822.html Source0: http://cr.yp.to/software/mess822-%{version}.tar.gz Patch0: mess822-%{version}.errno.patch Patch100: mess822-%{version}.install.patch Buildroot: %{_tmppath}/%{name}-%{version}-root Requires: glibc >= 2.0.6, qmail >= 1.0.3, leapsecs >= 1.0 #Distribution: Vine Linux #Vendor: Project Vine Packager: NOGUCHI Shoji %description mess822 is a library for parsing Internet mail messages. The mess822 package contains several applications that work with qmail: * ofmipd rewrites messages from dumb clients. It supports a database of recognized senders and From lines, using cdb for fast lookups. * new-inject is an experimental new version of qmail-inject. It includes a flexible user-controlled hostname rewriting mechanism. * iftocc can be used in .qmail files. It checks whether a known address is listed in To or Cc. * 822header, 822field, 822date, and 822received extract various pieces of information from a mail message. * 822print converts a message into an easier-to-read format. mess822 supports the full complexity of RFC 822 address lists, including address groups, source routes, spaces around dots, etc. It also supports common RFC 822 extensions: backslashes in atoms, dots in phrases, addresses without host names, etc. It extracts each address as an easy-to-use string, with a separate string for the accompanying comment. mess822 converts RFC 822 dates into libtai's struct caltime format. It supports numeric time zones, the standard old-fashioned time zones, and many nonstandard time zones. %package devel Summary: Header and object files for mess822 development Group: Utilities/System Requires: %{name} = %{version}-%{release} %description devel The mess822-devel package contains the header files. %prep %setup -q %patch0 -p1 %patch100 -p1 echo %{_usr} > conf-home echo %__cc $RPM_OPT_FLAGS > conf-cc echo %__cc -s $RPM_OPT_FLAGS > conf-ld %__rm -f *.orig *~ %build %__make %install [ "$RPM_BUILD_ROOT" != "/" ] && %__rm -rf $RPM_BUILD_ROOT %__mkdir_p $RPM_BUILD_ROOT%{_mandir}/ %__mkdir_p $RPM_BUILD_ROOT%{_sysconfdir}/ %__cat hier.c | \ %__grep "^ [cdh](" | \ %__sed -e "s/^ \([cdh]\)(\(.*\));/\1,\2/" | \ %__sed -e "s/[\"]//g" | \ %__awk -F "," '{ \ #if($1 == "h") \ #{ print "%attr(" $5 ",root,root) %dir " $2 } \ if($1 == "c") \ { \ if(substr($3,1,9) == "share/man") \ { print "%attr(" $7 ",root,root) " $2 "/" $3 "/" $4 ".gz" } \ else \ { print "%attr(" $7 ",root,root) " $2 "/" $3 "/" $4 } \ } \ #if($1 == "d") \ #{ print "%attr(" $6 ",root,root) %dir " $2 "/" $3 } \ }' | \ %__sed -e "s!auto_home!%{_usr}!" |\ %__grep -v "%{_libdir}" | \ %__grep -v "%{_includedir}" > mess822-%{version}.files echo $RPM_BUILD_ROOT%{_usr} > conf-home %__rm auto_*.o %__make install instcheck ./install ./instcheck %clean %__rm -rf $RPM_BUILD_ROOT %files -f mess822-%{version}.files %files devel %defattr(-,root,root) %{_libdir}/mess822.a %{_includedir}/mess822.h