[7076] | 1 | %bcond_with externalfuse |
---|
| 2 | |
---|
[521] | 3 | Summary: Linux NTFS userspace driver |
---|
| 4 | Summary(ja): Linux NTFS ユーザ空間ドライバ |
---|
| 5 | Name: ntfs-3g |
---|
[7076] | 6 | |
---|
| 7 | Version: 2012.1.15 |
---|
[521] | 8 | Release: 1%{?_dist_release} |
---|
[7076] | 9 | |
---|
[521] | 10 | License: GPL |
---|
| 11 | Group: System Environment/Base |
---|
[7076] | 12 | URL: http://www.ntfs-3g.org/ |
---|
| 13 | |
---|
| 14 | Source0: http://www.ntfs-3g.org/%{name}_ntfsprogs-%{version}.tgz |
---|
[521] | 15 | Source1: 20-ntfs-config-write-policy.fdi |
---|
[7076] | 16 | Patch0: ntfs-3g_ntfsprogs-2011.10.9-RC-ntfsck-unsupported-return-0.patch |
---|
| 17 | Patch1: ntfs-3g-junction-point-fix.patch |
---|
| 18 | # Windows 8 safety checks |
---|
| 19 | Patch2: ntfs-3g-4d0b9163c9ef1f0cdbbf533317b291220c7fd1c7.patch |
---|
| 20 | Patch3: ntfs-3g-559270a8f67c77a7ce51246c23d2b2837bcff0c9.patch |
---|
| 21 | |
---|
[521] | 22 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 23 | |
---|
[7076] | 24 | BuildRequires: libtool |
---|
| 25 | BuildRequires: libattr-devel |
---|
| 26 | BuildRequires: libconfig-devel |
---|
| 27 | BuildRequires: libgcrypt-devel |
---|
| 28 | BuildRequires: gnutls-devel |
---|
| 29 | BuildRequires: libuuid-devel |
---|
| 30 | %if %{with externalfuse} |
---|
| 31 | BuildRequires: fuse-devel |
---|
| 32 | Requires: fuse |
---|
| 33 | %endif |
---|
| 34 | |
---|
[521] | 35 | %description |
---|
| 36 | The ntfs-3g driver is an open source, GPL licensed, third generation |
---|
| 37 | Linux NTFS driver. It provides full read-write access to NTFS, excluding |
---|
| 38 | access to encrypted files, writing compressed files, changing file |
---|
| 39 | ownership, access right. |
---|
| 40 | |
---|
| 41 | Technically it's based on and a major improvement to the third |
---|
| 42 | generation Linux NTFS driver, ntfsmount. The improvements include |
---|
| 43 | functionality, quality and performance enhancements. |
---|
| 44 | |
---|
| 45 | ntfs-3g features are being merged to ntfsmount. In the meanwhile, |
---|
| 46 | ntfs-3g is currently the only free, as in either speech or beer, NTFS |
---|
| 47 | driver for Linux that supports unlimited file creation and deletion. |
---|
| 48 | |
---|
| 49 | %package devel |
---|
| 50 | Summary: Development files and libraries for ntfs-3g |
---|
| 51 | Summary(ja): ntfs-3g の開発ファイルとライブラリ |
---|
| 52 | Group: Development/Libraries |
---|
| 53 | Requires: %{name} = %{version}-%{release} |
---|
[7076] | 54 | Provides: ntfsprogs-devel = %{version}-%{release} |
---|
| 55 | Obsoletes: ntfsprogs-devel < 2.0.0-3 |
---|
[521] | 56 | |
---|
| 57 | %description devel |
---|
| 58 | Headers and libraries for developing applications that use ntfs-3g |
---|
| 59 | functionality. |
---|
| 60 | |
---|
[7076] | 61 | %package -n ntfsprogs |
---|
| 62 | Summary: NTFS filesystem libraries and utilities |
---|
| 63 | Summary(ja): NTFS ファイルシステム用ライブラリおよびユーティリティ |
---|
| 64 | Group: System Environment/Base |
---|
| 65 | Provides: ntfsprogs-gnomevfs = %{version}-%{release} |
---|
| 66 | Obsoletes: ntfsprogs-gnomevfs < 2.0.0-3 |
---|
| 67 | |
---|
| 68 | %description -n ntfsprogs |
---|
| 69 | The ntfsprogs package currently consists of a library and utilities |
---|
| 70 | such as mkntfs, ntfscat, ntfsls, ntfsresize, and ntfsundelete |
---|
| 71 | (for a full list of included utilities see man 8 ntfsprogs after |
---|
| 72 | installation). |
---|
| 73 | |
---|
| 74 | |
---|
[521] | 75 | %prep |
---|
[7076] | 76 | %setup -q -n %{name}_ntfsprogs-%{version} |
---|
| 77 | %patch0 -p1 -b .unsupported |
---|
| 78 | %patch1 -p1 -b .junction-fix |
---|
| 79 | %patch2 -p1 -b .4d0b9163 |
---|
| 80 | %patch3 -p1 -b .559270a8 |
---|
[521] | 81 | |
---|
| 82 | %build |
---|
[7076] | 83 | %configure --disable-static \ |
---|
| 84 | --disable-ldconfig \ |
---|
| 85 | %{?with_ externalfuse:--with-fuse=external} \ |
---|
[521] | 86 | --exec-prefix=/ \ |
---|
| 87 | --bindir=/bin \ |
---|
| 88 | --sbindir=/sbin \ |
---|
[7076] | 89 | --libdir=/%{_lib} \ |
---|
| 90 | --enable-crypto \ |
---|
| 91 | --enable-extras |
---|
| 92 | make %{?_smp_mflags} LIBTOOL=%{_bindir}/libtool |
---|
[521] | 93 | |
---|
| 94 | %install |
---|
| 95 | rm -rf $RPM_BUILD_ROOT |
---|
| 96 | mkdir -p $RPM_BUILD_ROOT/sbin |
---|
[7076] | 97 | make DESTDIR=$RPM_BUILD_ROOT LIBTOOL=%{_bindir}/libtool install |
---|
| 98 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.{la,a} |
---|
| 99 | rm -f $RPM_BUILD_ROOT/%{_lib}/libntfs-3g.a |
---|
[521] | 100 | |
---|
| 101 | # make the symlink an actual copy to avoid confusion |
---|
| 102 | rm -rf $RPM_BUILD_ROOT/sbin/mount.ntfs-3g |
---|
| 103 | cp -a $RPM_BUILD_ROOT/bin/ntfs-3g $RPM_BUILD_ROOT/sbin/mount.ntfs-3g |
---|
| 104 | |
---|
| 105 | # make compatibility symlinks |
---|
| 106 | ln -s ntfs-3g $RPM_BUILD_ROOT/bin/ntfsmount |
---|
| 107 | ln -s mount.ntfs-3g $RPM_BUILD_ROOT/sbin/mount.ntfs-fuse |
---|
| 108 | ln -s mount.ntfs-3g $RPM_BUILD_ROOT/sbin/mount.ntfs |
---|
[7076] | 109 | ln -s ../bin/ntfsck $RPM_BUILD_ROOT/sbin/fsck.ntfs |
---|
[521] | 110 | mkdir -p $RPM_BUILD_ROOT%{_bindir} |
---|
| 111 | ln -s /bin/ntfs-3g $RPM_BUILD_ROOT%{_bindir}/ntfs-3g |
---|
| 112 | ln -s /bin/ntfsmount $RPM_BUILD_ROOT%{_bindir}/ntfsmount |
---|
| 113 | |
---|
| 114 | # Put the .pc file in the right place. |
---|
| 115 | mkdir -p $RPM_BUILD_ROOT%{_libdir}/pkgconfig/ |
---|
| 116 | mv $RPM_BUILD_ROOT/%{_lib}/pkgconfig/libntfs-3g.pc $RPM_BUILD_ROOT%{_libdir}/pkgconfig/ |
---|
| 117 | |
---|
[7076] | 118 | |
---|
| 119 | |
---|
[521] | 120 | mkdir -p $RPM_BUILD_ROOT%{_datadir}/hal/fdi/policy/10osvendor/ |
---|
| 121 | cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/hal/fdi/policy/10osvendor/ |
---|
| 122 | |
---|
| 123 | rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name} |
---|
[2782] | 124 | rm -f $RPM_BUILD_ROOT/%{_lib}/libntfs-3g.la |
---|
[521] | 125 | |
---|
| 126 | %clean |
---|
| 127 | rm -rf $RPM_BUILD_ROOT |
---|
| 128 | |
---|
| 129 | %post -p /sbin/ldconfig |
---|
| 130 | |
---|
| 131 | %postun -p /sbin/ldconfig |
---|
| 132 | |
---|
| 133 | %files |
---|
| 134 | %defattr(-,root,root,-) |
---|
| 135 | %doc AUTHORS ChangeLog COPYING CREDITS NEWS README |
---|
[2782] | 136 | /sbin/mount.lowntfs-3g |
---|
[521] | 137 | /sbin/mount.ntfs |
---|
| 138 | %attr(4754,root,root) /sbin/mount.ntfs-3g |
---|
| 139 | /sbin/mount.ntfs-fuse |
---|
[2782] | 140 | /bin/lowntfs-3g |
---|
[521] | 141 | /bin/ntfs-3g |
---|
| 142 | /bin/ntfs-3g.probe |
---|
[2782] | 143 | /bin/ntfs-3g.secaudit |
---|
| 144 | /bin/ntfs-3g.usermap |
---|
[521] | 145 | /bin/ntfsmount |
---|
| 146 | %{_bindir}/ntfs-3g |
---|
| 147 | %{_bindir}/ntfsmount |
---|
| 148 | /%{_lib}/libntfs-3g.so.* |
---|
| 149 | %{_datadir}/hal/fdi/policy/10osvendor/20-ntfs-config-write-policy.fdi |
---|
[7076] | 150 | %{_mandir}/man8/mount.lowntfs-3g.* |
---|
| 151 | %{_mandir}/man8/mount.ntfs-3g.* |
---|
| 152 | %{_mandir}/man8/ntfs-3g* |
---|
[521] | 153 | |
---|
| 154 | %files devel |
---|
| 155 | %defattr(-,root,root,-) |
---|
| 156 | %{_includedir}/ntfs-3g/ |
---|
| 157 | /%{_lib}/libntfs-3g.so |
---|
| 158 | %{_libdir}/pkgconfig/*.pc |
---|
| 159 | |
---|
[7076] | 160 | %files -n ntfsprogs |
---|
| 161 | %doc AUTHORS COPYING CREDITS ChangeLog NEWS README |
---|
| 162 | /bin/ntfscat |
---|
| 163 | /bin/ntfscluster |
---|
| 164 | /bin/ntfscmp |
---|
| 165 | /bin/ntfsfix |
---|
| 166 | /bin/ntfsinfo |
---|
| 167 | /bin/ntfsls |
---|
| 168 | # extras |
---|
| 169 | /bin/ntfsck |
---|
| 170 | /bin/ntfsdecrypt |
---|
| 171 | /bin/ntfsdump_logfile |
---|
| 172 | /bin/ntfsmftalloc |
---|
| 173 | /bin/ntfsmove |
---|
| 174 | /bin/ntfstruncate |
---|
| 175 | /bin/ntfswipe |
---|
| 176 | /sbin/fsck.ntfs |
---|
| 177 | /sbin/mkfs.ntfs |
---|
| 178 | /sbin/mkntfs |
---|
| 179 | /sbin/ntfsclone |
---|
| 180 | /sbin/ntfscp |
---|
| 181 | /sbin/ntfslabel |
---|
| 182 | /sbin/ntfsresize |
---|
| 183 | /sbin/ntfsundelete |
---|
| 184 | %{_mandir}/man8/mkntfs.8* |
---|
| 185 | %{_mandir}/man8/mkfs.ntfs.8* |
---|
| 186 | %{_mandir}/man8/ntfs[^m][^o]*.8* |
---|
| 187 | |
---|
| 188 | |
---|
[521] | 189 | %changelog |
---|
[7076] | 190 | * Mon Nov 05 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2012.1.15-1 |
---|
| 191 | - new upstream release |
---|
| 192 | - merge ntfsprogs |
---|
| 193 | - add Obsoletes and Provides ntfsprogs* |
---|
| 194 | - add BR: for ntfsprogs |
---|
| 195 | |
---|
[2782] | 196 | * Sat Feb 26 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2011.1.15-1 |
---|
| 197 | - new upstream release |
---|
| 198 | - fix %%files (add lowntfs-3g) |
---|
| 199 | |
---|
[521] | 200 | * Mon Jun 15 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2009.4.4-1 |
---|
| 201 | - new upstream release |
---|
| 202 | - use internal fuse-lite, remove BR: fuse-devel and R: fuse |
---|
| 203 | - move binaries to /bin |
---|
| 204 | - move libraries to /%%{_lib} |
---|
| 205 | - add fdi file to enable hal automounting |
---|
| 206 | |
---|
| 207 | * Sun Jan 25 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2009.1.1-1 |
---|
| 208 | - new upstream release |
---|
| 209 | |
---|
| 210 | * Sun Aug 17 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2812-1 |
---|
| 211 | - new upstream release |
---|
| 212 | |
---|
| 213 | * Fri Jul 25 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2712-1 |
---|
| 214 | - new upstream release |
---|
| 215 | |
---|
| 216 | * Thu Apr 24 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2412-1 |
---|
| 217 | - new upstream release |
---|
| 218 | |
---|
| 219 | * Tue Jun 05 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 1.516-0vl1 |
---|
| 220 | - initial build for Vine Linux |
---|
| 221 | |
---|
| 222 | * Tue May 15 2007 Tom "spot" Callaway <tcallawa@redhat.com> 2:1.516-1 |
---|
| 223 | - bump to 1.516 |
---|
| 224 | - fix bugzilla 232031 |
---|
| 225 | |
---|
| 226 | * Sun Apr 15 2007 Tom "spot" Callaway <tcallawa@redhat.com> 2:1.417-1 |
---|
| 227 | - bump to 1.417 |
---|
| 228 | |
---|
| 229 | * Sun Apr 15 2007 Tom "spot" Callaway <tcallawa@redhat.com> 2:1.416-1 |
---|
| 230 | - bump to 1.416 |
---|
| 231 | - drop patch0, upstreamed |
---|
| 232 | |
---|
| 233 | * Wed Apr 4 2007 Tom "spot" Callaway <tcallawa@redhat.com> 2:1.328-2 |
---|
| 234 | - allow non-root users to mount/umount ntfs volumes (Laszlo Dvornik) |
---|
| 235 | |
---|
| 236 | * Sat Mar 31 2007 Tom "spot" Callaway <tcallawa@redhat.com> 2:1.328-1 |
---|
| 237 | - bump to 1.328 |
---|
| 238 | - drop patch, use --disable-ldconfig instead |
---|
| 239 | |
---|
| 240 | * Wed Feb 21 2007 Tom "spot" Callaway <tcallawa@redhat.com> 2:1.0-1 |
---|
| 241 | - 1.0 release! |
---|
| 242 | |
---|
| 243 | * Fri Jan 19 2007 Tom "spot" Callaway <tcallawa@redhat.com> 2:0-0.9.20070118 |
---|
| 244 | - symlink to mount.ntfs |
---|
| 245 | |
---|
| 246 | * Wed Jan 17 2007 Tom "spot" Callaway <tcallawa@redhat.com> 2:0-0.8.20070118 |
---|
| 247 | - bump to 20070118 |
---|
| 248 | |
---|
| 249 | * Wed Jan 17 2007 Tom "spot" Callaway <tcallawa@redhat.com> 2:0-0.7.20070116 |
---|
| 250 | - bump to latest version for all active dists |
---|
| 251 | |
---|
| 252 | * Wed Jan 3 2007 Tom "spot" Callaway <tcallawa@redhat.com> 1:0-0.6.20070102 |
---|
| 253 | - bump to latest version (note that upstream fixed their date mistake) |
---|
| 254 | |
---|
| 255 | * Wed Nov 1 2006 Tom "spot" Callaway <tcallawa@redhat.com> 1:0-0.5.20070920 |
---|
| 256 | - add an obsoletes for ntfsprogs-fuse |
---|
| 257 | - make some convenience symlinks |
---|
| 258 | |
---|
| 259 | * Wed Oct 25 2006 Tom "spot" Callaway <tcallawa@redhat.com> 1:0-0.4.20070920 |
---|
| 260 | - add some extra Provides |
---|
| 261 | |
---|
| 262 | * Mon Oct 16 2006 Tom "spot" Callaway <tcallawa@redhat.com> 1:0-0.3.20070920 |
---|
| 263 | - add explicit Requires on fuse |
---|
| 264 | |
---|
| 265 | * Mon Oct 16 2006 Tom "spot" Callaway <tcallawa@redhat.com> 1:0-0.2.20070920 |
---|
| 266 | - fixed versioning (bumped epoch, since it now shows as older) |
---|
| 267 | - change sbin symlink to actual copy to be safe |
---|
| 268 | |
---|
| 269 | * Sun Oct 15 2006 Tom "spot" Callaway <tcallawa@redhat.com> 0.1.20070920-1 |
---|
| 270 | - Initial package for Fedora Extras |
---|