Summary: Linux Logical Volume Manager utilities. Name: lvm Version: 1.0.3 Release: 19vl1 License: GPL Group: System Environment/Base URL: http://www.sistina.com/products_lvm.htm BuildRoot: %{_tmppath}/%{name}-%{version}-root Source: ftp://linux.msede.com/lvm/1.0/lvm_%{version}.tar.gz Source2: pvscan.8 Patch0: lvm-1.0.3-evilinstall.patch Patch1: lvm-0.9-paths.patch Patch2: lvm-0.9-broken.patch Patch3: lvm-1.0.3-dietlibc.patch Patch4: lvm-1.0.3-dietllseek.patch Patch5: lvm-1.0.3-wrapper2.patch Patch6: lvm-1.0.3-pvmove.patch Patch7: lvm-1.0.3-fixit.patch Patch8: lvm-1.0.3-cookie.patch Patch9: lvm-1.0.3-vgscanfix.patch Patch10: lvm-1.0.3-signals.patch Patch11: lvm-1.0.3-nomsdoschecks.patch Patch12: lvm-1.0.3-viodasd.patch Patch13: lvm-1.0.3-kdevt.patch %description LVM includes all of the support for handling read/write operations on physical volumes (hard disks, RAID-Systems, magneto optical, etc., multiple devices (MD), see mdadd(8) or even loop devices, see losetup(8)), creating volume groups (kind of virtual disks) from one or more physical volumes and creating one or more logical volumes (kind of logical partitions) in volume groups. %prep %setup -q -n LVM %patch0 -p1 -b .evilinstall %patch3 -p1 -b .diet %patch6 -p1 -b .pvmove %patch7 -p1 %patch8 -p1 %patch9 -p1 -b .vgscanfix %patch10 -p1 -b .signals %patch11 -p1 -b .nomsdos %patch12 -p1 -b .viodasd %patch13 -p1 -b .kdevt cd %{version} # ugly hack to build diet-ized vgchange and vgscan %ifarch i386 patch -p2 -i %{PATCH4} export CC="diet gcc" %endif # make the wrapper patch -p2 -i %{PATCH5} %build cd %{version} # make static versions of vgchange and vgscan (diet-ized on i386) %configure --prefix=%{_prefix} --sbindir=%{_syssbindir} --libdir=/%{_lib} --enable-static_link pushd tools/lib make cd .. make vgwrapper mv vgwrapper vgwrapper.static make clean popd patch -p2 -R -i %{PATCH5} %ifarch i386 patch -p2 -R -i %{PATCH4} export CC=gcc %endif rm -f tools/vgwrapper.c tools/vgwrapper.o rm config.cache %configure --prefix=%{_prefix} --sbindir=%{_syssbindir} --libdir=/%{_lib} make %install [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/%{_lib} \ $RPM_BUILD_ROOT%{_syssbindir} \ $RPM_BUILD_ROOT%{_mandir}/man8 cd %{version} make DESTDIR=$RPM_BUILD_ROOT install # install static versions install -m 755 tools/vgwrapper.static $RPM_BUILD_ROOT%{_syssbindir}/vgwrapper ln $RPM_BUILD_ROOT%{_syssbindir}/vgwrapper $RPM_BUILD_ROOT%{_syssbindir}/vgchange.static ln $RPM_BUILD_ROOT%{_syssbindir}/vgwrapper $RPM_BUILD_ROOT%{_syssbindir}/vgscan.static # install -m 644 %SOURCE2 $RPM_BUILD_ROOT/%{_mandir}/man8/pvscan.8 #pushd $RPM_BUILD_ROOT/sbin #for i in *; do # mv $i $i.lvm1 #done #popd # remove unpackaged files from the buildroot rm -rf $RPM_BUILD_ROOT/usr/lib #rm -fr $RPM_BUILD_ROOT/usr/share/ %clean [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %doc %{version}/ABSTRACT %{version}/CHANGELOG %{version}/CONTRIBUTORS %doc %{version}/LVM-HOWTO %{version}/README %{version}/TODO %doc %{version}/WHATSNEW %{version}/FAQ %{_mandir}/man8/* /%{_lib}/* %{_syssbindir}/* %changelog * Thu Jun 17 2004 Ryoichi INAGAKI 1.0.3-19vl1 - rebuild for Vine Linux based on Fedora 1.0.3-19.0 - fixed %file section to add man8 man-pages - use better macros * Tue Apr 07 2004 Alasdair Kergon 1.0.3-19.0 - Add .lvm1 suffix to all binaries; LVM2 is now the default. This package is only useful to Fedora users reverting to a 2.4 kernel. * Tue Mar 02 2004 Elliot Lee - rebuilt * Fri Feb 13 2004 Elliot Lee - rebuilt * Sun Dec 14 2003 Jeremy Katz 1.0.3-17 - fix build with minimal glibc-kernheaders * Thu Dec 11 2003 Florian La Roche 1.0.3-16 - remove man8 man-pages to not conflict with lvm2 rpm * Tue Jun 17 2003 Jeremy Katz 1.0.3-15 - add patch to work with viodasd - improve fix for vgscan segfaults to work correctly on big endian platforms * Thu Jun 12 2003 Jeremy Katz 1.0.3-14 - stop making all kinds of silly assumptions and using msdos partition table parsing. just use BLKGETSIZE and be happy (#97275) * Wed Jun 04 2003 Elliot Lee - rebuilt * Wed Feb 19 2003 Bill Nottingham 1.0.3-12 - don't set SIGCHLD to SIG_IGN and call wait() (#84100) * Wed Jan 22 2003 Tim Powers - rebuilt * Wed Nov 27 2002 Tim Powers 1.0.3-10 - lib64'ize - remove unpackaged files from the buildroot * Mon Sep 02 2002 Michael Fulbright 1.0.3-9 - Fix vgscan to not segfault from corrupt data on disk (if disk was reformatted and some LVM structures still exist, will die trying to parse) * Thu Jul 11 2002 Trond Eivind Glomsrød 1.0.3-7 - Fix pvscan.8 - it was the pvcreate one (#66273) * Fri Jun 21 2002 Tim Powers - automated rebuild * Thu May 23 2002 Tim Powers - automated rebuild * Wed Mar 27 2002 Trond Eivind Glomsrød 1.0.3-4 - Have a cookie * Wed Feb 20 2002 Trond Eivind Glomsrød 1.0.3-2 - sct's patch updated * Tue Feb 19 2002 Trond Eivind Glomsrød 1.0.3-1 - 1.0.3 - Redo most patches. * Mon Feb 18 2002 Trond Eivind Glomsrød 1.0.2-2 - Make it build with new kernel headers - Hey ho, hey ho, off into the buildsystem we go (with sct's changes) - Added URL * Thu Feb 14 2002 Stephen C. Tweedie - Add support for new (non-data-corrupting) pvmove kernel ioctl * Mon Jan 28 2002 Jeremy Katz - update to 1.0.2 - add a static vgwrapper which can run both vgchange and vgscan for initrds; uses diet on i386 * Wed Jan 09 2002 Tim Powers - automated rebuild * Fri Jan 04 2002 Florian La Roche - remove the "mawk" requirement * Mon Dec 17 2001 Trond Eivind Glomsrød 1.0.1-1 - 1.0.1 - s/Copyright/License/ - patch away evil use of user/group during installation - change install procedure * Wed Jan 24 2001 Than Ngo - updated to 0.9 - hacked for building on ia64 and sparc * Mon Dec 11 2000 Bill Nottingham - build library code with -fPIC * Wed Nov 1 2000 Matt Wilson - initialization of spec file.