- fix description (#234098)

- spec cleanup Resolves: #234098
This commit is contained in:
Miroslav Lichvar 2007-03-27 12:32:20 +00:00
parent 24b860b03a
commit bf59e46d61
2 changed files with 26 additions and 20 deletions

View File

@ -1,16 +1,16 @@
--- procmail-3.22/src/mailfold.c.truncate 2006-03-30 10:56:58.000000000 -0500 --- procmail-3.22/src/mailfold.c.truncate 2007-03-27 13:24:05.000000000 +0200
+++ procmail-3.22/src/mailfold.c 2006-03-30 11:32:19.000000000 -0500 +++ procmail-3.22/src/mailfold.c 2007-03-27 13:25:06.000000000 +0200
@@ -30,6 +30,7 @@ @@ -30,6 +30,7 @@
int logopened,rawnonl; int logopened,rawnonl;
off_t lasttell; off_t lasttell;
+static int trunced; +static int trunced;
static off_t lastdump; static long lastdump;
static volatile int mailread; /* if the mail is completely read in already */ static volatile int mailread; /* if the mail is completely read in already */
static struct dyna_array confield; /* escapes, concatenations */ static struct dyna_array confield; /* escapes, concatenations */
@@ -81,6 +82,7 @@ @@ -81,6 +82,7 @@
size_t len; long len;
{ int i;size_t part; { int i;long part;
lasttell=i= -1;SETerrno(EBADF); lasttell=i= -1;SETerrno(EBADF);
+ trunced=0; + trunced=0;
if(s>=0) if(s>=0)

View File

@ -1,37 +1,39 @@
Summary: The procmail mail processing program. Summary: The procmail mail processing program
Name: procmail Name: procmail
Version: 3.22 Version: 3.22
Release: 18 Release: 19%{?dist}
License: GPL or Artistic License: GPL or Artistic
Group: System Environment/Daemons Group: Applications/Internet
Source: ftp://ftp.procmail.org/pub/procmail/procmail-%{version}.tar.gz Source: ftp://ftp.procmail.org/pub/procmail/procmail-%{version}.tar.gz
Source2: http://www.linux.org.uk/~telsa/BitsAndPieces/procmailrc Source2: http://www.linux.org.uk/~telsa/BitsAndPieces/procmailrc
URL: http://www.procmail.org URL: http://www.procmail.org
Patch0: procmail-3.22-rhconfig.patch Patch0: procmail-3.22-rhconfig.patch
Patch1: procmail-3.15.1-man.patch Patch1: procmail-3.15.1-man.patch
Patch2: procmail_3.22-8.debian.patch Patch2: procmail_3.22-8.debian.patch
Patch3: procmail-3.22-large_files.patch
Patch4: procmail-3.22-truncate.patch Patch4: procmail-3.22-truncate.patch
Patch5: procmail-3.22-ipv6.patch Patch5: procmail-3.22-ipv6.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description %description
The procmail program is used by Red Hat Linux for all local mail Procmail can be used to create mail-servers, mailing lists, sort your
delivery. In addition to just delivering mail, procmail can be used incoming mail into separate folders/files (real convenient when subscribing
for automatic filtering, presorting, and other mail handling jobs. to one or more mailing lists or for prioritising your mail), preprocess
Procmail is also the basis for the SmartList mailing list processor. your mail, start any programs upon mail arrival (e.g. to generate different
chimes on your workstation for different types of mail) or selectively
forward certain incoming mail automatically to someone.
%prep %prep
%setup -q %setup -q
%patch0 -p1 -b .rhconfig %patch0 -p1 -b .rhconfig
%patch1 -p1 %patch1 -p1
%patch2 -p1 %patch2 -p1
%patch3 -p1 -b .largefiles
%patch4 -p1 -b .truncate %patch4 -p1 -b .truncate
%patch5 -p1 -b .ipv6 %patch5 -p1 -b .ipv6
find examples -type f | xargs chmod 644
%build %build
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE" make RPM_OPT_FLAGS="$RPM_OPT_FLAGS $(getconf LFS_CFLAGS)"
%install %install
rm -rf ${RPM_BUILD_ROOT} rm -rf ${RPM_BUILD_ROOT}
@ -40,10 +42,10 @@ mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man{1,5}
make \ make \
BASENAME=${RPM_BUILD_ROOT}%{_prefix} MANDIR=${RPM_BUILD_ROOT}%{_mandir} \ BASENAME=${RPM_BUILD_ROOT}%{_prefix} MANDIR=${RPM_BUILD_ROOT}%{_mandir} \
install install
cp debian/mailstat.1 ${RPM_BUILD_ROOT}%{_mandir}/man1 cp debian/mailstat.1 ${RPM_BUILD_ROOT}%{_mandir}/man1
cp %SOURCE2 telsas_procmailrc cp -p %{SOURCE2} telsas_procmailrc
%clean %clean
@ -54,13 +56,17 @@ rm -rf ${RPM_BUILD_ROOT}
%doc Artistic COPYING FAQ FEATURES HISTORY README KNOWN_BUGS examples telsas_procmailrc debian/QuickStart debian/README.Maildir %doc Artistic COPYING FAQ FEATURES HISTORY README KNOWN_BUGS examples telsas_procmailrc debian/QuickStart debian/README.Maildir
%{_bindir}/formail %{_bindir}/formail
%attr(2755,root,mail) %{_bindir}/lockfile %attr(2755,root,mail) %{_bindir}/lockfile
%{_bindir}/mailstat %{_bindir}/mailstat
%attr(0755,root,mail) %{_bindir}/procmail %attr(0755,root,mail) %{_bindir}/procmail
%{_mandir}/man[15]/* %{_mandir}/man[15]/*
%changelog %changelog
* Tue Mar 27 2007 Miroslav Lichvar <mlichvar@redhat.com> 3.22-19
- fix description (#234098)
- spec cleanup
* Fri Oct 27 2006 Miroslav Lichvar <mlichvar@redhat.com> 3.22-18 * Fri Oct 27 2006 Miroslav Lichvar <mlichvar@redhat.com> 3.22-18
- add IPv6 support to comsat notification (#198403) - add IPv6 support to comsat notification (#198403)
- package man page for mailstat - package man page for mailstat