2b6cbeeba3
Wed Mar 17 2004 Jeremy Katz <katzj@redhat.com> 2.00.08-5 - Fix sysfs patch to find sysfs - Take patch from dwalsh and tweak a little for setting SELinux contexts on device node creation and also do it on the symlink creation. Part of this should probably be pushed down to device-mapper instead Thu Feb 19 2004 Stephen C. Tweedie <sct@redhat.com> 2.00.08-4 - Add sysfs filter patch - Allow non-root users to build RPM Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com> - rebuilt
85 lines
2.0 KiB
RPMSpec
85 lines
2.0 KiB
RPMSpec
Summary: Userland logical volume management tools
|
|
Name: lvm2
|
|
Version: 2.00.08
|
|
Release: 5
|
|
License: GPL
|
|
Group: System Environment/Base
|
|
URL: http://www.sistina.com
|
|
Source0: LVM2.%{version}.tgz
|
|
Patch0: lvm2-blksize64.patch
|
|
Patch1: lvm2-static.patch
|
|
Patch2: lvm2-sysfs-filter.patch
|
|
Patch3: lvm2-Makefile-nonroot.patch
|
|
Patch4: lvm2-selinux.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
|
|
BuildRequires: device-mapper, autoconf
|
|
|
|
%description
|
|
|
|
%prep
|
|
%setup -q -n LVM2.%{version}
|
|
%patch0 -p1 -b .blksize64
|
|
%patch1 -p1 -b .static
|
|
# Limit "lvm vgscan" to block devices visible in /sys/block/
|
|
%patch2 -p1 -b .sysfs
|
|
# Allow non-root users to build RPM
|
|
%patch3 -p1 -b .nonroot
|
|
# Set SELinux contexts on device nodes we create
|
|
%patch4 -p1 -b .selinux
|
|
|
|
%build
|
|
# needed for patch4 (selinux support)
|
|
autoconf
|
|
%configure --sbindir=/sbin --libdir=/%{_lib}
|
|
make
|
|
mv tools/lvm tools/lvm.dyn
|
|
|
|
# now do a static build
|
|
make clean
|
|
%configure --sbindir=/sbin --libdir=/%{_lib} --enable-static_link
|
|
make
|
|
(cd tools; make lvm.static)
|
|
|
|
mv tools/lvm.dyn tools/lvm
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
%makeinstall
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/sbin
|
|
mv $RPM_BUILD_ROOT/usr/sbin/lvm $RPM_BUILD_ROOT/sbin/lvm
|
|
mv $RPM_BUILD_ROOT/usr/sbin/lvm.static $RPM_BUILD_ROOT/sbin/lvm.static
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc COPYING COPYING.LIB README VERSION WHATS_NEW
|
|
/sbin/lvm
|
|
/sbin/lvm.static
|
|
%{_mandir}/*/*
|
|
|
|
|
|
%changelog
|
|
* Wed Mar 17 2004 Jeremy Katz <katzj@redhat.com> 2.00.08-5
|
|
- Fix sysfs patch to find sysfs
|
|
- Take patch from dwalsh and tweak a little for setting SELinux contexts on
|
|
device node creation and also do it on the symlink creation.
|
|
Part of this should probably be pushed down to device-mapper instead
|
|
|
|
* Thu Feb 19 2004 Stephen C. Tweedie <sct@redhat.com> 2.00.08-4
|
|
- Add sysfs filter patch
|
|
- Allow non-root users to build RPM
|
|
|
|
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
|
|
- rebuilt
|
|
|
|
* Fri Dec 5 2003 Jeremy Katz <katzj@redhat.com> 2.00.08-2
|
|
- add static lvm binary
|
|
|
|
* Tue Dec 2 2003 Jeremy Katz <katzj@redhat.com>
|
|
- Initial build.
|
|
|
|
|