fix file list and %define -_

This commit is contained in:
Alasdair Kergon 2006-10-14 18:57:22 +00:00
parent 94fa4a6b69
commit d590cd51a4

View File

@ -1,4 +1,4 @@
%define device-mapper-version 1.02.12 %define device_mapper_version 1.02.12
Summary: Userland logical volume management tools Summary: Userland logical volume management tools
Name: lvm2 Name: lvm2
@ -11,13 +11,13 @@ Source0: LVM2.%{version}.tgz
Patch0: clvmd-init-chkconfig.patch Patch0: clvmd-init-chkconfig.patch
Patch1: cluster-locking-built-in.patch Patch1: cluster-locking-built-in.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: device-mapper >= %{device-mapper-version} BuildRequires: device-mapper >= %{device_mapper_version}
BuildRequires: libselinux-devel >= 1.30.19-4, libsepol-devel BuildRequires: libselinux-devel >= 1.30.19-4, libsepol-devel
BuildRequires: libtermcap-devel BuildRequires: libtermcap-devel
BuildRequires: ncurses-devel BuildRequires: ncurses-devel
BuildRequires: readline-devel BuildRequires: readline-devel
BuildRequires: cman-devel BuildRequires: cman-devel
Requires: device-mapper >= %{device-mapper-version} Requires: device-mapper >= %{device_mapper_version}
Conflicts: lvm Conflicts: lvm
Obsoletes: lvm Obsoletes: lvm
@ -68,8 +68,12 @@ rm -rf $RPM_BUILD_ROOT
/sbin/pvscan /sbin/pvscan
/sbin/vgscan /sbin/vgscan
/sbin/vgchange /sbin/vgchange
/usr/sbin/* /usr/sbin/lv*
%{_mandir}/*/* /usr/sbin/pv*
/usr/sbin/vg*
%{_mandir}/*/lv*
%{_mandir}/*/pv*
%{_mandir}/*/vg*
%dir /etc/lvm %dir /etc/lvm
%ghost /etc/lvm/.cache %ghost /etc/lvm/.cache
%config(noreplace) /etc/lvm/lvm.conf %config(noreplace) /etc/lvm/lvm.conf
@ -87,7 +91,7 @@ Requires: lvm2 = %{version}-%{release}
Requires(post): chkconfig Requires(post): chkconfig
Requires(post): ldconfig Requires(post): ldconfig
Requires(preun): chkconfig Requires(preun): chkconfig
Requires(preun): device-mapper >= %{device-mapper-version} Requires(preun): device-mapper >= %{device_mapper_version}
Requires(preun): lvm2 >= 2.02 Requires(preun): lvm2 >= 2.02
Requires(postun): ldconfig Requires(postun): ldconfig