lvm-vl.spec 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. Summary: Linux Logical Volume Manager utilities.
  2. Name: lvm
  3. Version: 1.0.3
  4. Release: 19vl1
  5. License: GPL
  6. Group: System Environment/Base
  7. URL: http://www.sistina.com/products_lvm.htm
  8. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  9. Source: ftp://linux.msede.com/lvm/1.0/lvm_%{version}.tar.gz
  10. Source2: pvscan.8
  11. Patch0: lvm-1.0.3-evilinstall.patch
  12. Patch1: lvm-0.9-paths.patch
  13. Patch2: lvm-0.9-broken.patch
  14. Patch3: lvm-1.0.3-dietlibc.patch
  15. Patch4: lvm-1.0.3-dietllseek.patch
  16. Patch5: lvm-1.0.3-wrapper2.patch
  17. Patch6: lvm-1.0.3-pvmove.patch
  18. Patch7: lvm-1.0.3-fixit.patch
  19. Patch8: lvm-1.0.3-cookie.patch
  20. Patch9: lvm-1.0.3-vgscanfix.patch
  21. Patch10: lvm-1.0.3-signals.patch
  22. Patch11: lvm-1.0.3-nomsdoschecks.patch
  23. Patch12: lvm-1.0.3-viodasd.patch
  24. Patch13: lvm-1.0.3-kdevt.patch
  25. %description
  26. LVM includes all of the support for handling read/write operations on
  27. physical volumes (hard disks, RAID-Systems, magneto optical, etc.,
  28. multiple devices (MD), see mdadd(8) or even loop devices, see
  29. losetup(8)), creating volume groups (kind of virtual disks) from one
  30. or more physical volumes and creating one or more logical volumes
  31. (kind of logical partitions) in volume groups.
  32. %prep
  33. %setup -q -n LVM
  34. %patch0 -p1 -b .evilinstall
  35. %patch3 -p1 -b .diet
  36. %patch6 -p1 -b .pvmove
  37. %patch7 -p1
  38. %patch8 -p1
  39. %patch9 -p1 -b .vgscanfix
  40. %patch10 -p1 -b .signals
  41. %patch11 -p1 -b .nomsdos
  42. %patch12 -p1 -b .viodasd
  43. %patch13 -p1 -b .kdevt
  44. cd %{version}
  45. # ugly hack to build diet-ized vgchange and vgscan
  46. %ifarch i386
  47. patch -p2 -i %{PATCH4}
  48. export CC="diet gcc"
  49. %endif
  50. # make the wrapper
  51. patch -p2 -i %{PATCH5}
  52. %build
  53. cd %{version}
  54. # make static versions of vgchange and vgscan (diet-ized on i386)
  55. %configure --prefix=%{_prefix} --sbindir=%{_syssbindir} --libdir=/%{_lib} --enable-static_link
  56. pushd tools/lib
  57. make
  58. cd ..
  59. make vgwrapper
  60. mv vgwrapper vgwrapper.static
  61. make clean
  62. popd
  63. patch -p2 -R -i %{PATCH5}
  64. %ifarch i386
  65. patch -p2 -R -i %{PATCH4}
  66. export CC=gcc
  67. %endif
  68. rm -f tools/vgwrapper.c tools/vgwrapper.o
  69. rm config.cache
  70. %configure --prefix=%{_prefix} --sbindir=%{_syssbindir} --libdir=/%{_lib}
  71. make
  72. %install
  73. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  74. mkdir -p $RPM_BUILD_ROOT/%{_lib} \
  75. $RPM_BUILD_ROOT%{_syssbindir} \
  76. $RPM_BUILD_ROOT%{_mandir}/man8
  77. cd %{version}
  78. make DESTDIR=$RPM_BUILD_ROOT install
  79. # install static versions
  80. install -m 755 tools/vgwrapper.static $RPM_BUILD_ROOT%{_syssbindir}/vgwrapper
  81. ln $RPM_BUILD_ROOT%{_syssbindir}/vgwrapper $RPM_BUILD_ROOT%{_syssbindir}/vgchange.static
  82. ln $RPM_BUILD_ROOT%{_syssbindir}/vgwrapper $RPM_BUILD_ROOT%{_syssbindir}/vgscan.static
  83. #
  84. install -m 644 %SOURCE2 $RPM_BUILD_ROOT/%{_mandir}/man8/pvscan.8
  85. #pushd $RPM_BUILD_ROOT/sbin
  86. #for i in *; do
  87. # mv $i $i.lvm1
  88. #done
  89. #popd
  90. # remove unpackaged files from the buildroot
  91. rm -rf $RPM_BUILD_ROOT/usr/lib
  92. #rm -fr $RPM_BUILD_ROOT/usr/share/
  93. %clean
  94. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  95. %post -p /sbin/ldconfig
  96. %postun -p /sbin/ldconfig
  97. %files
  98. %defattr(-,root,root)
  99. %doc %{version}/ABSTRACT %{version}/CHANGELOG %{version}/CONTRIBUTORS
  100. %doc %{version}/LVM-HOWTO %{version}/README %{version}/TODO
  101. %doc %{version}/WHATSNEW %{version}/FAQ
  102. %{_mandir}/man8/*
  103. /%{_lib}/*
  104. %{_syssbindir}/*
  105. %changelog
  106. * Thu Jun 17 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.0.3-19vl1
  107. - rebuild for Vine Linux based on Fedora 1.0.3-19.0
  108. - fixed %file section to add man8 man-pages
  109. - use better macros
  110. * Tue Apr 07 2004 Alasdair Kergon <agk@redhat.com> 1.0.3-19.0
  111. - Add .lvm1 suffix to all binaries; LVM2 is now the default.
  112. This package is only useful to Fedora users reverting to a 2.4 kernel.
  113. * Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
  114. - rebuilt
  115. * Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
  116. - rebuilt
  117. * Sun Dec 14 2003 Jeremy Katz <katzj@redhat.com> 1.0.3-17
  118. - fix build with minimal glibc-kernheaders
  119. * Thu Dec 11 2003 Florian La Roche <Florian.LaRoche@redhat.de> 1.0.3-16
  120. - remove man8 man-pages to not conflict with lvm2 rpm
  121. * Tue Jun 17 2003 Jeremy Katz <katzj@redhat.com> 1.0.3-15
  122. - add patch to work with viodasd
  123. - improve fix for vgscan segfaults to work correctly on big endian platforms
  124. * Thu Jun 12 2003 Jeremy Katz <katzj@redhat.com> 1.0.3-14
  125. - stop making all kinds of silly assumptions and using msdos partition
  126. table parsing. just use BLKGETSIZE and be happy (#97275)
  127. * Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
  128. - rebuilt
  129. * Wed Feb 19 2003 Bill Nottingham <notting@redhat.com> 1.0.3-12
  130. - don't set SIGCHLD to SIG_IGN and call wait() (#84100)
  131. * Wed Jan 22 2003 Tim Powers <timp@redhat.com>
  132. - rebuilt
  133. * Wed Nov 27 2002 Tim Powers <timp@redhat.com> 1.0.3-10
  134. - lib64'ize
  135. - remove unpackaged files from the buildroot
  136. * Mon Sep 02 2002 Michael Fulbright <msf@redhat.com> 1.0.3-9
  137. - Fix vgscan to not segfault from corrupt data on disk (if disk was reformatted
  138. and some LVM structures still exist, will die trying to parse)
  139. * Thu Jul 11 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.0.3-7
  140. - Fix pvscan.8 - it was the pvcreate one (#66273)
  141. * Fri Jun 21 2002 Tim Powers <timp@redhat.com>
  142. - automated rebuild
  143. * Thu May 23 2002 Tim Powers <timp@redhat.com>
  144. - automated rebuild
  145. * Wed Mar 27 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.0.3-4
  146. - Have a cookie
  147. * Wed Feb 20 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.0.3-2
  148. - sct's patch updated
  149. * Tue Feb 19 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.0.3-1
  150. - 1.0.3
  151. - Redo most patches.
  152. * Mon Feb 18 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.0.2-2
  153. - Make it build with new kernel headers
  154. - Hey ho, hey ho, off into the buildsystem we go (with sct's changes)
  155. - Added URL
  156. * Thu Feb 14 2002 Stephen C. Tweedie <sct@redhat.com>
  157. - Add support for new (non-data-corrupting) pvmove kernel ioctl
  158. * Mon Jan 28 2002 Jeremy Katz <katzj@redhat.com>
  159. - update to 1.0.2
  160. - add a static vgwrapper which can run both vgchange and vgscan for
  161. initrds; uses diet on i386
  162. * Wed Jan 09 2002 Tim Powers <timp@redhat.com>
  163. - automated rebuild
  164. * Fri Jan 04 2002 Florian La Roche <Florian.LaRoche@redhat.de>
  165. - remove the "mawk" requirement
  166. * Mon Dec 17 2001 Trond Eivind Glomsrød <teg@redhat.com> 1.0.1-1
  167. - 1.0.1
  168. - s/Copyright/License/
  169. - patch away evil use of user/group during installation
  170. - change install procedure
  171. * Wed Jan 24 2001 Than Ngo <than@redhat.com>
  172. - updated to 0.9
  173. - hacked for building on ia64 and sparc
  174. * Mon Dec 11 2000 Bill Nottingham <notting@redhat.com>
  175. - build library code with -fPIC
  176. * Wed Nov 1 2000 Matt Wilson <msw@redhat.com>
  177. - initialization of spec file.