parted-vl.spec 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. %define _sbindir /sbin
  2. Summary: The GNU disk partition manipulation program.
  3. Summary(ja): ディスクパーティション操作ツール
  4. Name: parted
  5. Version: 2.3
  6. Release: 1%{?_dist_release}
  7. License: GPL
  8. Group: Applications/Administration
  9. URL: http://www.gnu.org/software/parted/
  10. Source0: ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz
  11. # Recognize scsi disks with a high major as such
  12. Patch0: parted-2.2-hi-major-sd-rh611691.patch
  13. # Report partitions changes when using blkext major numbers
  14. Patch1: parted-2.3-lpn.patch
  15. Buildroot: %{_tmppath}/%{name}-%{version}-root
  16. BuildRequires: e2fsprogs-devel, ncurses-devel, readline-devel
  17. BuildRequires: python-devel, ncurses-devel
  18. BuildRequires: device-mapper-devel
  19. BuildRequires: libtool, automake, autoconf
  20. BuildRequires: gettext-devel >= 0.18
  21. BuildRequires: texinfo
  22. BuildRequires: libuuid-devel
  23. BuildRequires: libblkid-devel >= 2.17
  24. BuildRequires: gnupg
  25. Provides: libparted = %{version}-%{release}
  26. Vendor: Project Vine
  27. Distribution: Vine Linux
  28. %description
  29. GNU Parted is a program that allows you to create, destroy,
  30. resize, move and copy hard disk partitions. This is useful for
  31. creating space for new operating systems, reorganising disk
  32. usage, and copying data to new hard disks.
  33. %description -l ja
  34. GNU Parted はハードディスクのパーティションを作成/削除/リサイズ/
  35. 移動/コピーすることが出来るプログラムです.新しいオペレーティング
  36. システムをインストールするスペースを確保したり,ディスクのパーティションを
  37. 整理したり,新しいハードディスクにデータをコピーする際に非常に便利です.
  38. %package devel
  39. Summary: Files for developing apps which will manipulate disk partitions.
  40. Summary(ja) : パーティション操作をするアプリケーションの開発用ファイル
  41. Group: Development/Libraries
  42. Requires: parted = %{version}-%{release}
  43. Provides: libparted-devel = %{version}-%{release}
  44. %description devel
  45. The GNU Parted library is a set of routines for hard disk partition
  46. manipulation. If you want to develop programs that manipulate disk
  47. partitions and filesystems using the routines provided by the GNU
  48. Parted library, you need to install this package.
  49. %description devel -l ja
  50. GNU Parted ライブラリにはハードディスクのパーティションを操作する
  51. 関数が用意されています。GNU Parted ライブラリが提供する関数を使って
  52. ディスクパーティションやファイルシステムを操作するプログラムを開発
  53. したいのであれば、このパッケージをインストールして下さい。
  54. %prep
  55. %setup -q
  56. %patch0 -p1
  57. %patch1 -p1
  58. iconv -f ISO-8859-1 -t UTF8 AUTHORS > tmp; touch -r AUTHORS tmp; mv tmp AUTHORS
  59. %build
  60. %configure \
  61. --enable-device-mapper \
  62. --enable-shared \
  63. --enable-Werror=no
  64. %__make %{?_smp_mflags}
  65. %install
  66. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  67. %__make install DESTDIR=$RPM_BUILD_ROOT
  68. # Remove components we do not ship
  69. %{__rm} -rf %{buildroot}%{_libdir}/*.la
  70. %{__rm} -rf %{buildroot}%{_infodir}/dir
  71. %{__rm} -rf %{buildroot}%{_bindir}/label
  72. %find_lang %{name}
  73. %post
  74. /sbin/ldconfig
  75. /sbin/install-info %{_infodir}/parted.info.gz %{_infodir}/dir >/dev/null 2>&1 || :
  76. %postun
  77. /sbin/ldconfig
  78. %preun
  79. if [ $1 = 0 ]; then
  80. /sbin/install-info --delete %{_infodir}/parted.info.gz %{_infodir}/dir >/dev/null 2>&1 || :
  81. fi
  82. %clean
  83. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  84. %files -f %{name}.lang
  85. %defattr(-,root,root)
  86. %doc AUTHORS BUGS COPYING ChangeLog NEWS README THANKS TODO
  87. %doc doc/FAT doc/USER.jp
  88. %{_sbindir}/*
  89. %{_mandir}/man8/*
  90. %{_libdir}/lib*.so.*
  91. %{_infodir}/parted.info*
  92. %files devel
  93. %defattr(-,root,root)
  94. %doc doc/API
  95. %{_includedir}/*
  96. %{_libdir}/lib*.so
  97. %{_libdir}/*.a
  98. %{_libdir}/pkgconfig/libparted.pc
  99. %changelog
  100. * Tue Nov 9 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.3-1
  101. - new upstream release
  102. - drop old patches
  103. - new patch for 2.3 from fc14
  104. - add BRs: libuuid-devel, libblkid-devel >= 2.17, gnupg
  105. - change BR: gettext -> gettext-devel >= 0.18
  106. * Sun Oct 03 2010 Shu KONNO <owa@bg.wakwak.com> 1.8.8-2
  107. - rebuilt with rpm-4.8.1 for pkg-config
  108. * Sun Aug 17 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.8.8-1
  109. - new upstream release
  110. - import patch[1-8] from fedora
  111. * Sat May 19 2007 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 1.8.1-1vl2
  112. - rebuild with new environment/toolchain.
  113. * Fri Dec 8 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.8.1-1vl1
  114. - new upstream release
  115. - remove Patch0, 3, 100, 150, 151 and 152 (merged into upstream)
  116. * Sat Sep 9 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.6.25.1-0vl2
  117. - changed Group to Applications/Administration
  118. * Wed May 3 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.6.25.1-0vl1
  119. - new upstream release
  120. * Thu Dec 1 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.6.25-3vl1
  121. - new upstream release
  122. - updated Patch3, 100, 150 and 151 from Fedora
  123. * Wed Nov 09 2005 Chris Lumens <clumens@redhat.com> 1.6.25-1
  124. - Update DASD, iseries, and SX8 patches.
  125. * Mon Aug 22 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.6.24-0vl1
  126. - new upstream release
  127. - updated Patch100, 151
  128. * Mon Apr 11 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.6.22-0vl1
  129. - new upstream release
  130. * Thu Jan 27 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.6.21-1vl1
  131. - new upstream release
  132. - added Patch3 and Patch152, updated Patch150 (from Fedora)
  133. * Tue Dec 14 2004 Jeremy Katz <katzj@redhat.com> - 1.6.19-2
  134. - add support for Promise SX8 devices
  135. * Thu Nov 11 2004 Jeremy Katz <katzj@redhat.com> - 1.6.16-2
  136. - add patch from Matt Domsch to fix consistency of GPT disk labels
  137. with the EFI specification for disks > 2TB (#138480)
  138. * Tue Nov 23 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.6.18-0vl1
  139. - new upstream release
  140. * Thu Nov 18 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.6.16-0vl1
  141. - new upstream release
  142. * Sat Sep 26 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.6.15-0vl1
  143. - new upstream release
  144. - added BuildRequires: automake autoconf gettext
  145. - patches from Fedora development
  146. * Tue Aug 24 2004 Jeremy Katz <katzj@redhat.com> - 1.6.12-2
  147. - fix assertion error when checking flags on non-active partition (#130692)
  148. - buildrequires: gettext-devel
  149. * Mon Aug 16 2004 Jeremy Katz <katzj@redhat.com> - 1.6.12-1
  150. - update to 1.6.12 with major changes to CHS handling to hopefully fix #115980
  151. - adjust dasd patch accordingly, drop some included patches
  152. * Mon Jul 19 2004 Karsten Hopp <karsten@redhat.de> 1.6.11-4
  153. - update dasd patch for dos-type partitions on mainframes (scsi disks)
  154. * Sun Aug 22 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.6.12-0vl1
  155. - new upstream release
  156. - removed BuildRequires: automake17 autoconf
  157. - updated %post %postun section to install .info file
  158. * Sun Apr 18 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.6.10-0vl2
  159. - dropped BuildRequires: libunicode-devel
  160. * Sat Apr 17 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.6.10-0vl1
  161. - updated to current stable release 1.6.10
  162. - changed BuildRequires: automake17
  163. - added compile optioin -Os
  164. - dropped patch1
  165. * Fri Jun 6 2003 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.6.5-0vl1
  166. - updated to current stable release 1.6.5
  167. - changed summay and description based on Rawhide specfile
  168. * Tue Jan 29 2002 Toru Sagami <sagami@vinelinux.org> 1.4.24-0vl1
  169. - updated to current stable release 1.4.24
  170. * Sun Jan 06 2002 Toru Sagami <sagami@vinelinux.org>
  171. - 1.4.21-0vl1
  172. - enable __libtoolize
  173. * Wed Nov 21 2001 Toru Sagami <sagami@vinelinux.org>
  174. - 1.4.19-0vl1
  175. * Thu Oct 04 2001 Toru Sagami <sagami@vinelinux.org>
  176. - 1.4.19-0vl1
  177. * Sun Aug 19 2001 Toru Sagami <sagami@vinelinux.org>
  178. - 1.4.18-0vl1
  179. - Where did any python related files go? Erase'em.
  180. * Wed Aug 15 2001 <sagami@vinelinux.org>
  181. - 1.4.16-0vl1
  182. - build w/ --enable-shared --enable-all-static, instead of --disable-shared
  183. - consequently, eliminate Requires against e2fsprogs, readline
  184. - ldconfig at post/postun
  185. * Mon Jul 09 2001 <sagami@vinelinux.org>
  186. - 1.4.15-0vl1: use %%{find_lang}, added doc/FAQ
  187. - %%define __libtoolize /bin/true
  188. * Mon May 28 2001 <sagami@vinelinux.org>
  189. - 1.4.13-0vl1
  190. * Wed Apr 18 2001 <sagami@vinelinux.org>
  191. - 1.4.10-0vl1
  192. * Sun Jan 21 2001 Toru Sagami <czs14350@mb.infoweb.ne.jp>
  193. - updated to 1.4.7-0vl1
  194. - changed Group for devel subpackage
  195. - added USER.jp in %doc
  196. * Sun Dec 10 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  197. - 1.4.2-1vl2
  198. - partially used rpmmacros
  199. * Mon Nov 20 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  200. - 1.4.2-1vl1
  201. - build for Vine Linux
  202. - added Japanese summary and description
  203. * Mon Mar 13 2000 Fabian Emmes <fab@orlen.de>
  204. - changed "unset LINGUAS" line
  205. - reintroduced %build section ;)
  206. - started changelog