Sophie

Sophie

distrib > Mandriva > 8.2 > i586 > media > main-src > by-pkgid > 0768502561a0f48926af841bffc0929e > files > 6

bdflush-1.5-19mdk.src.rpm

%define release 19mdk
%define version 1.5
%define url ftp://tsx-11.mit.edu/pub/linux/sources/system/v1.2

Summary: The process which starts the flushing of dirty buffers back to disk.
Name: bdflush
Version: %{version}
Release: %{release}
Copyright: Public Domain
Group: System/Kernel and hardware
Source: %{url}/bdflush-1.5.tar.bz2
Patch: bdflush-1.5-axp.patch.bz2
Patch1: bdflush-1.5-glibc.patch.bz2
Patch2: bdflush-1.5-ia64.patch.bz2
Patch3: bdflush-1.5-limit.patch.bz2
Buildroot: %{_tmppath}/%{name}-root
Obsoletes: bdflush-lowmem
Provides: bdflush-lowmem

%description
The bdflush process starts the kernel daemon which flushes dirty
buffers back to disk (i.e., writes all unwritten data to disk).
This helps to prevent the buffers from growing too stale.

Bdflush is a basic system process that must run for your system
to operate properly.

%prep
%setup

%patch -p1
%patch1 -p1 -b .glibc
%patch2 -p1 -b .bdflush
%patch3 -p1 -b .limit

perl -p -i -e "s/-Wall -O2/$RPM_OPT_FLAGS/" Makefile

%build
%make bdflush

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/sbin
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man8
install -s -m 755 bdflush $RPM_BUILD_ROOT/sbin/update

install -m 644 bdflush.8 $RPM_BUILD_ROOT/%{_mandir}/man8/bdflush.8
ln -sf bdflush.8 $RPM_BUILD_ROOT/%{_mandir}/man8/update.8

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
/sbin/update
%{_mandir}/*/*

%changelog
* Fri Sep 28 2001 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.5-19mdk
- Rpmlint clean-up.

* Tue Nov 28 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.5-17mdk
- Spec tweak.
- Change license.

* Wed Jul 19 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.5-16mdk
- Obsoletes -lowmem package (who use it ?)
- BM.
- Merge with last rh patches.

* Wed Mar 29 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.5-15mdk
- Add doc for lowmem package.
- Make static link symbolic.
- Clean-up specs.
- Upgrade groups.

* Wed Nov 24 1999 Pixel <pixel@linux-mandrake.com>
- re-alpha adaptation (i386<>i586)
- alpha adaptation (no lowmem)
- removed the stupid asnonroot patch

* Tue Oct 19 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>

- Build release.

* Fri Apr  9 1999 Bernhard Rosenkraenzer <bero@linux-mandrake.com>
- Mandrake adaptions
- bzip2 man/info pages
- handle RPM_OPT_FLAGS
- add de locale
- build lowmem version

* Wed Jan 06 1999 Cristian Gafton <gafton@redhat.com>
- glibc 2.1

* Tue May 05 1998 Prospector System <bugs@redhat.com>
- translations modified for de, fr, tr

* Sun Oct 19 1997 Erik Troan <ewt@redhat.com>
- spec file cleanups
- uses a build root
- user %attr()

* Wed Sep 03 1997 Erik Troan <ewt@redhat.com>
- alpha patch should be applied on all architectures

* Mon Jun 02 1997 Erik Troan <ewt@redhat.com>
- built against glibc