Sophie

Sophie

distrib > Mageia > 3 > i586 > media > core-release-src > by-pkgid > c8488519d3b4ddc3b42853a486666c3f > files > 3

libmilter-workers-8.14.3_1-4.mga3.src.rpm

%define realversion 8.14.3-1

%define name libmilter-workers
%define version %(echo %realversion | sed 's/-/_/g')
%define release %mkrel 4
%define libnamestatic %{_lib}milter-static-devel

Summary: Libmilter and a pool of threads
Name: %{name}
Version: %{version}
Release: %{release}
Source0: http://j-chkmail.ensmp.fr/libmilter/%{name}-%{realversion}.tgz
Source1: http://j-chkmail.ensmp.fr/libmilter/README
License: GPL
Group: Development/C
Url: http://j-chkmail.ensmp.fr/
BuildRoot: %{_tmppath}/%{name}-buildroot

%description
Under original libmilter each connection generates one thread
on the filter. These threads remain alive during the connection
lifetime. So, one connection equals one thread.

For huge servers, handling many simultaneous connections (say, a 
hundred and more), this may be an issue.

Most of the time, these threads are idle waiting for sendmail
commands (which come from remote clients). Tests at some domains
shows that this hold for more than 95 % of the time.

This libmilter version creates a fixed number of threads (workers)
and distribute tasks when it receives commands from sendmail.

%package -n %libnamestatic
Summary: Libmilter and a pool of threads
Group: Development/C
Obsoletes: %{_lib}milterstatic-devel
Provides: milter-devel = %{version}-%{release}
Provides: libmilter-devel = %{version}-%{release}

%description -n %libnamestatic
Under original libmilter each connection generates one thread
on the filter. These threads remain alive during the connection
lifetime. So, one connection equals one thread.

For huge servers, handling many simultaneous connections (say, a
hundred and more), this may be an issue.

Most of the time, these threads are idle waiting for sendmail
commands (which come from remote clients). Tests at some domains
shows that this hold for more than 95 % of the time.

This libmilter version creates a fixed number of threads (workers)
and distribute tasks when it receives commands from sendmail.

%prep
%setup -q -n %{name}-%{realversion}
cp -f %{SOURCE1} ./

perl -pi -e "s/-O2/%optflags/" devtools/OS/Linux

%build
%make

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p %buildroot%_includedir/libmilter/
cp include/libmilter/*.h %buildroot%_includedir/libmilter/

mkdir -p %buildroot/%_libdir
cp obj.`uname -s`.`uname -r`.`uname -m`/libmilter/libmilter.a %buildroot/%_libdir

%clean
rm -rf $RPM_BUILD_ROOT

%files -n %libnamestatic
%defattr(-,root,root)
%doc README
%_includedir/libmilter/*.h
%_libdir/*.a





%changelog

* Sat Jan 12 2013 umeabot <umeabot> 8.14.3_1-4.mga3
+ Revision: 357759
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Sat May 14 2011 nanardon <nanardon> 8.14.3_1-3.mga1
+ Revision: 98674
- imported package libmilter-workers