No longer abort read operations if archive/backup directories aren't there.
Add runtime directories and file to the package.
This commit is contained in:
parent
b23bffccd7
commit
15e17d1e72
16
lvm2.spec
16
lvm2.spec
@ -1,11 +1,12 @@
|
||||
Summary: Userland logical volume management tools
|
||||
Name: lvm2
|
||||
Version: 2.01.08
|
||||
Release: 1.0
|
||||
Release: 2.0
|
||||
License: GPL
|
||||
Group: System Environment/Base
|
||||
URL: http://sources.redhat.com/lvm2
|
||||
Source0: LVM2.%{version}.tgz
|
||||
Patch0: lvm2_archive_dir.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
|
||||
BuildRequires: device-mapper >= 1.01
|
||||
BuildRequires: libselinux-devel
|
||||
@ -29,6 +30,7 @@ or more physical volumes and creating one or more logical volumes
|
||||
|
||||
%prep
|
||||
%setup -q -n LVM2.%{version}
|
||||
%patch0 -p1
|
||||
|
||||
%build
|
||||
%configure --enable-static_link --enable-readline --enable-lvm1_fallback --with-pool=internal --with-staticdir=/sbin --with-user= --with-group=
|
||||
@ -37,6 +39,10 @@ make DESTDIR=$RPM_BUILD_ROOT
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
make install DESTDIR=$RPM_BUILD_ROOT
|
||||
install -m 0700 -d $RPM_BUILD_ROOT/etc/lvm/archive
|
||||
install -m 0700 -d $RPM_BUILD_ROOT/etc/lvm/backup
|
||||
install -m 0700 -d $RPM_BUILD_ROOT/var/lock/lvm
|
||||
install -m 0700 /dev/null $RPM_BUILD_ROOT/etc/lvm/.cache
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
@ -48,8 +54,16 @@ rm -rf $RPM_BUILD_ROOT
|
||||
/usr/sbin/*
|
||||
%{_mandir}/*/*
|
||||
%config(noreplace) /etc/lvm/lvm.conf
|
||||
/etc/lvm/backup
|
||||
/etc/lvm/archive
|
||||
/var/lock/lvm
|
||||
%ghost /etc/lvm/.cache
|
||||
|
||||
%changelog
|
||||
* Wed Apr 27 2005 Alasdair Kergon <agk@redhat.com> - 2.01.08-2.0
|
||||
- No longer abort read operations if archive/backup directories aren't there.
|
||||
- Add runtime directories and file to the package.
|
||||
|
||||
* Tue Mar 22 2005 Alasdair Kergon <agk@redhat.com> - 2.01.08-1.0
|
||||
- Improve detection of external changes affecting internal cache.
|
||||
- Add clustered VG attribute.
|
||||
|
Loading…
Reference in New Issue
Block a user