ntfs-3g-vl.spec 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. %bcond_with externalfuse
  2. Summary: Linux NTFS userspace driver
  3. Summary(ja): Linux NTFS ユーザ空間ドライバ
  4. Name: ntfs-3g
  5. Version: 2015.3.14
  6. Release: 1%{?_dist_release}
  7. License: GPLv2+
  8. Group: System Environment/Base
  9. URL: http://www.ntfs-3g.org/
  10. Source0: http://tuxera.com/opensource/%{name}_ntfsprogs-%{version}.tgz
  11. Source1: 20-ntfs-config-write-policy.fdi
  12. Patch0: ntfs-3g_ntfsprogs-2011.10.9-RC-ntfsck-unsupported-return-0.patch
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  14. BuildRequires: libtool
  15. BuildRequires: libattr-devel
  16. BuildRequires: libconfig-devel
  17. BuildRequires: libgcrypt-devel
  18. BuildRequires: gnutls-devel
  19. BuildRequires: libuuid-devel
  20. %if %{with externalfuse}
  21. BuildRequires: fuse-devel
  22. Requires: fuse
  23. %endif
  24. %description
  25. NTFS-3G is a stable, open source, GPL licensed, POSIX, read/write NTFS
  26. driver for Linux and many other operating systems. It provides safe
  27. handling of the Windows XP, Windows Server 2003, Windows 2000, Windows
  28. Vista, Windows Server 2008 and Windows 7 NTFS file systems. NTFS-3G can
  29. create, remove, rename, move files, directories, hard links, and streams;
  30. it can read and write normal and transparently compressed files, including
  31. streams and sparse files; it can handle special files like symbolic links,
  32. devices, and FIFOs, ACL, extended attributes; moreover it provides full
  33. file access right and ownership support.
  34. %package devel
  35. Summary: Development files and libraries for ntfs-3g
  36. Summary(ja): ntfs-3g の開発ファイルとライブラリ
  37. Group: Development/Libraries
  38. Requires: %{name} = %{version}-%{release}
  39. Requires: pkgconfig
  40. Provides: ntfsprogs-devel = %{version}-%{release}
  41. Obsoletes: ntfsprogs-devel < 2.0.0-3
  42. %description devel
  43. Headers and libraries for developing applications that use ntfs-3g
  44. functionality.
  45. %package -n ntfsprogs
  46. Summary: NTFS filesystem libraries and utilities
  47. Summary(ja): NTFS ファイルシステム用ライブラリおよびユーティリティ
  48. Group: System Environment/Base
  49. Provides: ntfsprogs-gnomevfs = %{version}-%{release}
  50. Obsoletes: ntfsprogs-gnomevfs < 2.0.0-3
  51. %description -n ntfsprogs
  52. The ntfsprogs package currently consists of a library and utilities
  53. such as mkntfs, ntfscat, ntfsls, ntfsresize, and ntfsundelete
  54. (for a full list of included utilities see man 8 ntfsprogs after
  55. installation).
  56. %prep
  57. %setup -q -n %{name}_ntfsprogs-%{version}
  58. %patch0 -p1 -b .unsupported
  59. %build
  60. %configure --disable-static \
  61. --disable-ldconfig \
  62. %{?with_ externalfuse:--with-fuse=external} \
  63. --exec-prefix=/ \
  64. --enable-crypto \
  65. --enable-extras \
  66. --enable-quarantined
  67. make %{?_smp_mflags} LIBTOOL=%{_bindir}/libtool
  68. %install
  69. rm -rf $RPM_BUILD_ROOT
  70. make DESTDIR=$RPM_BUILD_ROOT LIBTOOL=%{_bindir}/libtool install
  71. rm -f $RPM_BUILD_ROOT%{_libdir}/*.{la,a}
  72. rm -rf $RPM_BUILD_ROOT%{_sbindir}/mount.ntfs-3g
  73. cp -a $RPM_BUILD_ROOT%{_bindir}/ntfs-3g $RPM_BUILD_ROOT%{_sbindir}/mount.ntfs-3g
  74. # make compatibility symlinks
  75. pushd $RPM_BUILD_ROOT%{_bindir}
  76. ln -s ntfs-3g ntfsmount
  77. popd
  78. pushd $RPM_BUILD_ROOT%{_sbindir}
  79. ln -s mount.ntfs-3g mount.ntfs-fuse
  80. # And since there is no other package in Fedora that provides an ntfs
  81. # mount...
  82. ln -s mount.ntfs-3g mount.ntfs
  83. # Need this for fsck to find it
  84. ln -s ../bin/ntfsck fsck.ntfs
  85. popd
  86. mv $RPM_BUILD_ROOT/sbin/* $RPM_BUILD_ROOT%{_sbindir}
  87. rm -rf $RPM_BUILD_ROOT/sbin
  88. # We get this on our own, thanks.
  89. rm -rf $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}/README
  90. %clean
  91. rm -rf $RPM_BUILD_ROOT
  92. %post -p /sbin/ldconfig
  93. %postun -p /sbin/ldconfig
  94. %files
  95. %defattr(-,root,root,-)
  96. %doc AUTHORS ChangeLog COPYING CREDITS NEWS README
  97. %{_sbindir}/mount.ntfs
  98. %{_sbindir}/mount.ntfs-3g
  99. %{_sbindir}/mount.ntfs-fuse
  100. %{_sbindir}/mount.lowntfs-3g
  101. %{_bindir}/ntfs-3g
  102. %{_bindir}/ntfsmount
  103. %{_bindir}/ntfs-3g.probe
  104. %{_bindir}/ntfs-3g.secaudit
  105. %{_bindir}/ntfs-3g.usermap
  106. %{_bindir}/lowntfs-3g
  107. %{_libdir}/libntfs-3g.so.*
  108. %{_mandir}/man8/mount.lowntfs-3g.*
  109. %{_mandir}/man8/mount.ntfs-3g.*
  110. %{_mandir}/man8/ntfs-3g*
  111. %files devel
  112. %defattr(-,root,root,-)
  113. %{_includedir}/ntfs-3g/
  114. %{_libdir}/libntfs-3g.so
  115. %{_libdir}/pkgconfig/*.pc
  116. %files -n ntfsprogs
  117. %doc AUTHORS COPYING CREDITS ChangeLog NEWS README
  118. %{_bindir}/ntfscat
  119. %{_bindir}/ntfscluster
  120. %{_bindir}/ntfscmp
  121. %{_bindir}/ntfsfix
  122. %{_bindir}/ntfsinfo
  123. %{_bindir}/ntfsls
  124. # extras
  125. %{_bindir}/ntfsck
  126. %{_bindir}/ntfsdecrypt
  127. %{_bindir}/ntfsdump_logfile
  128. %{_bindir}/ntfsfallocate
  129. %{_bindir}/ntfsmftalloc
  130. %{_bindir}/ntfsmove
  131. %{_bindir}/ntfstruncate
  132. %{_bindir}/ntfswipe
  133. %{_sbindir}/fsck.ntfs
  134. %{_sbindir}/mkfs.ntfs
  135. %{_sbindir}/mkntfs
  136. %{_sbindir}/ntfsclone
  137. %{_sbindir}/ntfscp
  138. %{_sbindir}/ntfslabel
  139. %{_sbindir}/ntfsresize
  140. %{_sbindir}/ntfsundelete
  141. %{_mandir}/man8/mkntfs.8*
  142. %{_mandir}/man8/mkfs.ntfs.8*
  143. %{_mandir}/man8/ntfs[^m][^o]*.8*
  144. %exclude %{_mandir}/man8/ntfs-3g*
  145. %changelog
  146. * Fri Apr 24 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 2015.3.14-1
  147. - new upstream release
  148. - dropt hal files, since hal is very old
  149. * Sun Mar 02 2014 NAKAMURA Kenta <kenta@vinelinux.org> 2014.2.15-1
  150. - new upstream release
  151. * Wed Feb 19 2014 NAKAMURA Kenta <kenta@vinelinux.org> 2013.1.13-2
  152. - rebuilt with gnutls-3.2 and libgcrypt-1.6
  153. * Tue Feb 19 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 2013.1.13-1
  154. - new upstream release
  155. * Mon Nov 05 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2012.1.15-1
  156. - new upstream release
  157. - merge ntfsprogs
  158. - add Obsoletes and Provides ntfsprogs*
  159. - add BR: for ntfsprogs
  160. * Sat Feb 26 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2011.1.15-1
  161. - new upstream release
  162. - fix %%files (add lowntfs-3g)
  163. * Mon Jun 15 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2009.4.4-1
  164. - new upstream release
  165. - use internal fuse-lite, remove BR: fuse-devel and R: fuse
  166. - move binaries to /bin
  167. - move libraries to /%%{_lib}
  168. - add fdi file to enable hal automounting
  169. * Sun Jan 25 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2009.1.1-1
  170. - new upstream release
  171. * Sun Aug 17 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2812-1
  172. - new upstream release
  173. * Fri Jul 25 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2712-1
  174. - new upstream release
  175. * Thu Apr 24 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2412-1
  176. - new upstream release
  177. * Tue Jun 05 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.516-0vl1
  178. - initial build for Vine Linux
  179. * Tue May 15 2007 Tom "spot" Callaway <tcallawa@redhat.com> 2:1.516-1
  180. - bump to 1.516
  181. - fix bugzilla 232031
  182. * Sun Apr 15 2007 Tom "spot" Callaway <tcallawa@redhat.com> 2:1.417-1
  183. - bump to 1.417
  184. * Sun Apr 15 2007 Tom "spot" Callaway <tcallawa@redhat.com> 2:1.416-1
  185. - bump to 1.416
  186. - drop patch0, upstreamed
  187. * Wed Apr 4 2007 Tom "spot" Callaway <tcallawa@redhat.com> 2:1.328-2
  188. - allow non-root users to mount/umount ntfs volumes (Laszlo Dvornik)
  189. * Sat Mar 31 2007 Tom "spot" Callaway <tcallawa@redhat.com> 2:1.328-1
  190. - bump to 1.328
  191. - drop patch, use --disable-ldconfig instead
  192. * Wed Feb 21 2007 Tom "spot" Callaway <tcallawa@redhat.com> 2:1.0-1
  193. - 1.0 release!
  194. * Fri Jan 19 2007 Tom "spot" Callaway <tcallawa@redhat.com> 2:0-0.9.20070118
  195. - symlink to mount.ntfs
  196. * Wed Jan 17 2007 Tom "spot" Callaway <tcallawa@redhat.com> 2:0-0.8.20070118
  197. - bump to 20070118
  198. * Wed Jan 17 2007 Tom "spot" Callaway <tcallawa@redhat.com> 2:0-0.7.20070116
  199. - bump to latest version for all active dists
  200. * Wed Jan 3 2007 Tom "spot" Callaway <tcallawa@redhat.com> 1:0-0.6.20070102
  201. - bump to latest version (note that upstream fixed their date mistake)
  202. * Wed Nov 1 2006 Tom "spot" Callaway <tcallawa@redhat.com> 1:0-0.5.20070920
  203. - add an obsoletes for ntfsprogs-fuse
  204. - make some convenience symlinks
  205. * Wed Oct 25 2006 Tom "spot" Callaway <tcallawa@redhat.com> 1:0-0.4.20070920
  206. - add some extra Provides
  207. * Mon Oct 16 2006 Tom "spot" Callaway <tcallawa@redhat.com> 1:0-0.3.20070920
  208. - add explicit Requires on fuse
  209. * Mon Oct 16 2006 Tom "spot" Callaway <tcallawa@redhat.com> 1:0-0.2.20070920
  210. - fixed versioning (bumped epoch, since it now shows as older)
  211. - change sbin symlink to actual copy to be safe
  212. * Sun Oct 15 2006 Tom "spot" Callaway <tcallawa@redhat.com> 0.1.20070920-1
  213. - Initial package for Fedora Extras