Obsolete old lvm1 packages; refuse install if running kernel 2.4. [bz

128185]
This commit is contained in:
Alasdair Kergon 2004-09-17 15:36:12 +00:00
parent f15230ef84
commit f1d8f9c9ab

View File

@ -1,7 +1,7 @@
Summary: Userland logical volume management tools
Name: lvm2
Version: 2.00.24
Release: 1
Release: 2
License: GPL
Group: System Environment/Base
URL: http://sources.redhat.com/lvm2
@ -13,6 +13,7 @@ BuildRequires: libtermcap-devel
BuildRequires: ncurses-devel
BuildRequires: readline-devel
Conflicts: lvm < 1.0.3-19
Obsoletes: lvm < 1.0.3-19
%define _exec_prefix /usr
@ -41,6 +42,10 @@ ln -s lvm.static $RPM_BUILD_ROOT/sbin/pvscan
ln -s lvm.static $RPM_BUILD_ROOT/sbin/vgchange
ln -s lvm.static $RPM_BUILD_ROOT/sbin/vgscan
%pre
[[ `/bin/uname -r` < 2.6 ]] && echo "You need to be running a 2.6 kernel to install lvm2." && exit 1
exit 0
%clean
rm -rf $RPM_BUILD_ROOT
@ -58,6 +63,9 @@ rm -rf $RPM_BUILD_ROOT
%config(noreplace) /etc/lvm/lvm.conf
%changelog
* Fri Sep 17 2004 Alasdair Kergon <agk@redhat.com> - 2.00.24-2
- Obsolete old lvm1 packages; refuse install if running kernel 2.4. [bz 128185]
* Thu Sep 16 2004 Alasdair Kergon <agk@redhat.com> - 2.00.24-1
- More upstream fixes. (Always check WHATS_NEW file for details.)
- Add requested BuildRequires. [bz 124916, 132408]