ntfsprogs-vl.spec 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  1. %define name ntfsprogs
  2. %define ver 2.0.0
  3. %define rel 2%{?_dist_release}
  4. Summary: NTFS filesystem libraries and utilities
  5. Summary(ja): NTFS ファイルシステム用ライブラリおよびユーティリティ
  6. Name: %{name}
  7. Version: %{ver}
  8. Release: %{rel}
  9. Source: http://prdownloads.sf.net/linux-ntfs/ntfsprogs-%{ver}.tar.bz2
  10. Patch0: ntfsprogs-2.0.0-build-extras-by-default.patch
  11. Patch1: ntfsprogs-2.0.0-mbonly-info.patch
  12. Patch2: ntfsprogs-2.0.0-check_volume.patch
  13. Patch3: ntfsprogs-2.0.0-undelete-segfault-fix.patch
  14. Patch4: ntfsprogs-2.0.0-avoid_crash_on_failed_readall_attr.patch
  15. Patch5: ntfsprogs-2.0.0-implicit-DSO-libgcrypt.patch
  16. BuildRequires: libuuid-devel
  17. BuildRequires: libgcrypt-devel
  18. Buildroot: %{_tmppath}/%{name}-root
  19. License: GPL
  20. Group: System Environment/Base
  21. %description
  22. The Linux-NTFS project (http://www.linux-ntfs.org/) aims to bring full support
  23. for the NTFS filesystem to the Linux operating system. The ntfsprogs package
  24. currently consists of a static library and utilities such as mkntfs, ntfscat,
  25. ntfsls, ntfsresize, and ntfsundelete (for a full list of included utilities
  26. see man 8 ntfsprogs after installation).
  27. %package gnomevfs
  28. Summary: NTFS GNOME virtual filesystem module
  29. Group: System Environment/Base
  30. Requires: ntfsprogs = %{ver}-%{rel}
  31. Requires: glib2 gnome-vfs2
  32. BuildRequires: glib2-devel gnome-vfs2-devel
  33. %description gnomevfs
  34. This package contains the NTFS GNOME virtual filesystem (VFS) module which
  35. allows GNOME VFS clients to seamlessly utilize the NTFS library (libntfs).
  36. #%package fuse
  37. #Summary: NTFS FUSE module (ntfsmount)
  38. #Group: System Environment/Base
  39. #Requires: ntfsprogs = %{ver}-%{rel}
  40. #Requires: fuse >= 2.3.0
  41. #
  42. #%description fuse
  43. #This package contains the ntfsmount utility which is an NTFS filesystem in
  44. #userspace (FUSE) module allowing users to mount an ntfs filesystem from
  45. #userspace and accessing it using the functionality provided by the NTFS
  46. #library (libntfs).
  47. %package devel
  48. Summary: files required to compile software that uses libntfs
  49. Group: Development/Libraries
  50. Requires: ntfsprogs = %{ver}-%{rel}
  51. %description devel
  52. This package includes the header files and libraries needed to link software
  53. with libntfs.
  54. %prep
  55. %setup
  56. %patch0 -p1
  57. %patch1 -p1
  58. %patch2 -p1 -b .check_volume
  59. %patch3 -p1 -b .undelete-segfault-fix
  60. %patch4 -p1 -b .avoid_crash_on_failed_readall_attr
  61. %patch5 -p1 -b .DSO
  62. %build
  63. autoreconf -if
  64. if [ -n "$LINGUAS" ]; then unset LINGUAS; fi
  65. %configure --enable-gnome-vfs --disable-static
  66. make %{?_smp_mflags}
  67. %install
  68. rm -rf "$RPM_BUILD_ROOT"
  69. make DESTDIR="$RPM_BUILD_ROOT" install-strip
  70. ## remove unuse files
  71. rm -rf $RPM_BUILD_ROOT%{_libdir}/*.la
  72. rm -rf $RPM_BUILD_ROOT%{_libdir}/gnome-vfs-2.0/modules/*.la
  73. %clean
  74. rm -rf "$RPM_BUILD_ROOT"
  75. %files
  76. %defattr(-,root,root)
  77. %doc AUTHORS COPYING CREDITS ChangeLog INSTALL NEWS README TODO.include TODO.libntfs TODO.ntfsprogs doc/CodingStyle doc/attribute_definitions doc/attributes.txt doc/compression.txt doc/tunable_settings doc/template.c doc/template.h doc/system_files.txt doc/system_security_descriptors.txt
  78. # %{_bindir}/ntfs[^m][^o]*
  79. %{_bindir}/*
  80. %{_sbindir}/*
  81. /sbin/mkfs.ntfs
  82. %{_mandir}/man8/mkntfs.8*
  83. %{_mandir}/man8/mkfs.ntfs.8*
  84. %{_mandir}/man8/ntfs[^m][^o]*.8*
  85. %{_mandir}/man8/libntfs*
  86. %{_libdir}/libntfs.*so*
  87. %files gnomevfs
  88. %defattr(-,root,root)
  89. %{_mandir}/man8/libntfs-gnomevfs.8*
  90. %{_libdir}/gnome-vfs-2.0/modules/libntfs-gnomevfs.*so*
  91. %config %{_sysconfdir}/gnome-vfs-2.0/modules/libntfs.conf
  92. %files devel
  93. %defattr(-,root,root)
  94. %{_includedir}/*
  95. # %{_libdir}/libntfs.*a*
  96. # %{_libdir}/gnome-vfs-2.0/modules/libntfs-gnomevfs.*a*
  97. %changelog
  98. * Sat Dec 04 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.0-2
  99. - add BuildRequires: libgcrypt-devel
  100. * Wed Nov 10 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.0.0-1
  101. - new upstream release
  102. - remove *.a files from -devel pkg
  103. - fix files list
  104. * Sat Sep 20 2008 Shu KONNO <owa@bg.wakwak.com> 1.13.0-1vl5
  105. - applied new versioning policy, spec in utf-8
  106. - removed *.la
  107. * Sat Apr 29 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 1.13.0-0vl1
  108. - added gnomevfs module
  109. - updated to 1.13.0
  110. * Fri Oct 7 2005 Anton Altaparmakov <aia21@cantab.net>
  111. - Fix the file distribution after new binaries have been added as they were
  112. ending up in the wrong rpms.
  113. * Mon Aug 15 2005 Szabolcs Szakacsits <szaka@sienet.hu>
  114. - Add mkfs.ntfs.
  115. * Wed Mar 10 2004 Anton Altaparmakov <aia21@cantab.net>
  116. - Cleanup descriptions ready for 1.9.0 release.
  117. * Mon Jan 19 2004 Anton Altaparmakov <aia21@cantab.net>
  118. - Add %config to tell rpm that libntfs.conf is a config file.
  119. * Thu Nov 6 2003 Anton Altaparmakov <aia21@cantab.net>
  120. - merge libntfs-gnomevfs
  121. * Fri Oct 19 2003 Richard Russon <ntfs@flatcap.org>
  122. - added the new utility ntfscat
  123. * Tue Sep 30 2003 Anton Altaparmakov <aia21@cantab.net>
  124. - added the new utilities, ntfsclone, ntfscluster, ntfsinfo, ntfsls.
  125. * Thu Jul 17 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 1.7.1-0vl1
  126. - initial build for Vine Linux
  127. * Sat Jan 18 2003 Anton Altaparmakov <aia21@cantab.net>
  128. - renamed to ntfsprogs.spec.in
  129. - change source tar ball name to ntfsprogs
  130. * Tue Dec 10 2002 Anton Altaparmakov <aia21@cantab.net>
  131. - added ntfsresize
  132. * Wed Jul 18 2002 Richard Russon <ntfs@flatcap.org>
  133. - added ntfsundelete
  134. - change TODO names
  135. * Wed Jul 3 2002 Anton Altaparmakov <aia21@cantab.net>
  136. - update my email address
  137. * Mon Jun 3 2002 Anton Altaparmakov <aia21@cam.ac.uk>
  138. - update %doc with new TODO files
  139. * Tue Apr 12 2002 Anton Altaparmakov <aia21@cam.ac.uk>
  140. - update %description text for ntfslabel
  141. * Tue Mar 12 2002 Anton Altaparmakov <aia21@cam.ac.uk>
  142. - update %description text
  143. * Sat Jan 26 2002 Anton Altaparmakov <aia21@cam.ac.uk>
  144. - update %description text
  145. - make dependencies pick the right version automatically
  146. * Thu Jan 10 2002 Anton Altaparmakov <aia21@cam.ac.uk>
  147. - add dependency on linux-ntfs to linux-ntfs-devel
  148. - update %description text
  149. * Fri Nov 09 2001 Anton Altaparmakov <aia21@cam.ac.uk>
  150. - update %description text
  151. - (re)enable installation of shared libraries
  152. * Wed Aug 22 2001 Anton Altaparmakov <aia21@cam.ac.uk>
  153. - update %description text
  154. * Thu Aug 2 2001 Anton Altaparmakov <aia21@cam.ac.uk>
  155. - update %description text
  156. * Wed Jul 25 2001 Anton Altaparmakov <aia21@cam.ac.uk>
  157. - include sbin install path (mkntfs now is in sbin)
  158. * Tue Jul 24 2001 Anton Altaparmakov <aia21@cam.ac.uk>
  159. - update %description text
  160. * Mon Jun 11 2001 Anton Altaparmakov <aia21@cam.ac.uk>
  161. - remove duplicate %configure options
  162. - remove shared library installation as shared libraries are disabled by
  163. default
  164. * Sun Jun 10 2001 Anton Altaparmakov <aia21@cam.ac.uk>
  165. - add man pages stuff
  166. - update info text
  167. - add new doc/ stuff
  168. - modify installation to do install-strip instead of install followed by manual
  169. stripping
  170. - update download URL to be the fast sourceforge http download server
  171. * Fri Feb 2 2001 Anton Altaparmakov <aia21@cam.ac.uk>
  172. - started changelog