3 %bcond_with internal_fuse # build with internal libfuse
4 %bcond_without crypto # ntfsdecrypt utility
6 Summary: The NTFS driver with read and write support
7 Summary(pl.UTF-8): Sterownik do NTFS umożliwiający odczyt i zapis
8 Name: ntfs-3g_ntfsprogs
13 Group: Applications/System
14 #Source0-Download: http://www.tuxera.com/community/ntfs-3g-download/
15 Source0: http://www.tuxera.com/opensource/%{name}-%{version}.tgz
16 # Source0-md5: 2d6fb47ddf62b51733227126fe9227fe
17 Source1: %{name}.rules
18 URL: http://www.tuxera.com/community/
19 BuildRequires: autoconf >= 2.59
20 BuildRequires: automake
21 %{!?with_internal_fuse:BuildRequires: libfuse-devel >= 2.6.0}
22 BuildRequires: libtool
23 BuildRequires: libuuid-devel
24 BuildRequires: pkgconfig
26 BuildRequires: gnutls-devel >= 1.4.4
27 BuildRequires: libgcrypt-devel >= 1.2.2
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 %define _sbindir /sbin
34 ntfs-3g_ntfsprogs is a stable, full-featured, read-write NTFS driver
35 for Linux, Android, Mac OS X, FreeBSD, NetBSD, OpenSolaris, QNX,
36 Haiku, and other operating systems. It provides safe handling of the
37 Windows XP, Windows Server 2003, Windows 2000, Windows Vista, Windows
38 Server 2008 and Windows 7 NTFS file systems.
40 %description -l pl.UTF-8
41 ntfs-3g_ntfsprogs to stabilny, pełny sterownik do systemu plików NTFS
42 obsługujący odczyt i zapis dla systemów Linux, Android, Mac OS X,
43 FreeBSD, NetBSD, OpenSolaris, QNX, Haiku i innych. Zapewnia bezpieczną
44 obsługę systemów plików NTFS z systemów Windows XP, Windows Server
45 2003, Windows 2000, Windows Vista, Windows Server 2008 i Windows 7.
48 Summary: Utilities for NTFS file systems
49 Summary(pl.UTF-8): Narzędzia do systemów plików NTFS
50 Group: Applications/System
51 Requires: ntfs-3g-libs = %{epoch}:%{version}-%{release}
53 %description -n ntfsprogs
54 This package contains the following utilities for NTFS file systems:
56 - ntfsfix - attempt to fix an NTFS partition that has been damaged by
57 the Linux NTFS driver. It should be run every time after you have
58 used the Linux NTFS driver to write to an NTFS partition to prevent
59 massive data corruption from happening when Windows mounts the
62 IMPORTANT: Run this only *after* unmounting the partition in Linux
63 but *before* rebooting into Windows NT/2000!,
64 - mkntfs - create partition with the NTFS filesystem,
65 - ntfslabel - display/change the label of an NTFS partition,
66 - ntfsundelete - recover deleted files from an NTFS volume,
67 - ntfsresize - resize an NTFS volume,
68 - ntfsclone - clone, image, restore or rescue NTFS.
70 - ntfsdecrypt - descrypt $EFS-encrypted files,
72 - ntfswipe - wipe junk from unused space.
74 You can find more information about these utilities in their manuals.
76 %description -n ntfsprogs -l pl.UTF-8
77 Ten pakiet zawiera następujące narzędzia do systemów plików NTFS:
79 - ntfsfix - próbuje naprawiać partycję NTFS uszkodzone przez linuksowy
80 sterownik do NTFS. Powinien być uruchamiany po każdym zapisie na
81 partycji NTFS, aby zapobiec masowemu zniszczeniu danych.
83 WAŻNE: należy uruchamiać ten program tylko *po* odmontowaniu
84 partycji pod Linuksem, ale *przed* uruchomieniem Windows NT/2000!
86 - mkntfs - "formatuje" partycję NTFS,
87 - ntfslabel - wyświetla/zmienia etykietę partycji NTFS,
88 - ntfsundelete - odzyskuje usunięte pliki z wolumenu NTFS,
89 - ntfsresize - zmienia rozmiar wolumenu NTFS,
90 - ntfsclone - klonuje, tworzy obrazy i odtwarza NTFS,
92 - ntfsdecrypt - odszyfrowuje pliki zaszyfrowane $EFS,
94 - ntfswipe - czyszczenie pozostałości z nieużywanego miejsca.
96 Więcej informacji na temat tych narzędzi można znaleźć w manualach.
99 Summary: The NTFS driver with read and write support
100 Summary(pl.UTF-8): Sterownik do NTFS umożliwiający odczyt i zapis
101 Group: Applications/System
102 Obsoletes: ntfsprogs-fuse
104 %description -n ntfs-3g
105 The driver to NTFS with read and write support. It is able to
106 unlimited and fully save file creation and deletion.
108 %description -n ntfs-3g -l pl.UTF-8
109 Sterownik do systemu plików NTFS posiadający możliwość zarówno odczytu
110 jak i zapisu. Umożliwia tworzenie i kasowanie plików nieograniczoną
113 %package -n ntfs-3g-libs
114 Summary: ntfs-3g shared library
115 Summary(pl.UTF-8): Biblioteka współdzielona ntfs-3g
118 %description -n ntfs-3g-libs
119 ntfs-3g shared library.
121 %description -n ntfs-3g-libs -l pl.UTF-8
122 Biblioteka współdzielona ntfs-3g.
124 %package -n ntfs-3g-devel
125 Summary: Header files for libntfs-3g library
126 Summary(pl.UTF-8): Pliki nagłówkowe dla biblioteki libntfs-3g
127 Group: Development/Libraries
128 Requires: ntfs-3g-libs = %{epoch}:%{version}-%{release}
129 Obsoletes: ntfsprogs-devel
131 %description -n ntfs-3g-devel
132 This package includes the header files needed to link software with
135 %description -n ntfs-3g-devel -l pl.UTF-8
136 Pliki nagłówkowe potrzebne do budowania programów korzystających z
137 biblioteki libntfs-3g.
139 %package -n ntfs-3g-static
140 Summary: Static version of libntfs-3g library
141 Summary(pl.UTF-8): Statyczna wersja biblioteki libntfs-3g
142 Group: Development/Libraries
143 Requires: ntfs-3g-devel = %{epoch}:%{version}-%{release}
145 %description -n ntfs-3g-static
146 This package contains the static version of libntfs-3g library.
148 %description -n ntfs-3g-static -l pl.UTF-8
149 Ten pakiet zawiera statyczną wersję biblioteki libntfs-3g.
151 %package -n ntfs-3g-udev
152 Summary: udev integration for ntfs-3g
153 Summary(pl.UTF-8): Integracja ntfs-3g z udevem
154 Group: Applications/System
155 Requires: ntfs-3g = %{epoch}:%{version}-%{release}
156 Obsoletes: ntfs-3g-hal
158 %description -n ntfs-3g-udev
159 udev integration for ntfs-3g.
161 %description -n ntfs-3g-udev -l pl.UTF-8
162 Integracja ntfs-3g z udevem.
176 %{?with_crypto:--enable-crypto} \
178 --enable-posix-acls \
179 --enable-xattr-mappings \
180 --with-fuse=%{?with_internal_fuse:in}%{!?with_internal_fuse:ex}ternal
185 rm -rf $RPM_BUILD_ROOT
186 install -d $RPM_BUILD_ROOT{/%{_lib},/lib/udev/rules.d}
189 DESTDIR=$RPM_BUILD_ROOT
191 mv -f $RPM_BUILD_ROOT%{_libdir}/libntfs-3g.so.* $RPM_BUILD_ROOT/%{_lib}
192 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libntfs-3g.so
193 ln -sf /%{_lib}/$(cd $RPM_BUILD_ROOT/%{_lib}; echo libntfs-3g.so.*.*) \
194 $RPM_BUILD_ROOT%{_libdir}/libntfs-3g.so
196 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libntfs-3g.la
198 # mount.ntfs-3g manpage fix
199 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man8/mount.ntfs-3g.8
200 echo ".so ntfs-3g.8" > $RPM_BUILD_ROOT%{_mandir}/man8/mount.ntfs-3g.8
202 install %{SOURCE1} $RPM_BUILD_ROOT/lib/udev/rules.d/99-ntfs3g.rules
204 # Symlink to allow automount using ntfs-3g:
205 ln -sf %{_bindir}/ntfs-3g $RPM_BUILD_ROOT%{_sbindir}/mount.ntfs
208 rm -rf $RPM_BUILD_ROOT
210 %post -n ntfs-3g-libs -p /sbin/ldconfig
211 %postun -n ntfs-3g-libs -p /sbin/ldconfig
214 %defattr(644,root,root,755)
215 %attr(755,root,root) %{_bindir}/ntfscat
216 %attr(755,root,root) %{_bindir}/ntfsck
217 %attr(755,root,root) %{_bindir}/ntfscluster
218 %attr(755,root,root) %{_bindir}/ntfscmp
219 %{?with_crypto:%attr(755,root,root) %{_bindir}/ntfsdecrypt}
220 %attr(755,root,root) %{_bindir}/ntfsdump_logfile
221 %attr(755,root,root) %{_bindir}/ntfsfix
222 %attr(755,root,root) %{_bindir}/ntfsinfo
223 %attr(755,root,root) %{_bindir}/ntfsls
224 %attr(755,root,root) %{_bindir}/ntfsmftalloc
225 %attr(755,root,root) %{_bindir}/ntfsmove
226 %attr(755,root,root) %{_bindir}/ntfstruncate
227 %attr(755,root,root) %{_bindir}/ntfswipe
228 %attr(755,root,root) %{_sbindir}/mkntfs
229 %attr(755,root,root) %{_sbindir}/ntfsclone
230 %attr(755,root,root) %{_sbindir}/ntfscp
231 %attr(755,root,root) %{_sbindir}/ntfslabel
232 %attr(755,root,root) %{_sbindir}/ntfsresize
233 %attr(755,root,root) %{_sbindir}/ntfsundelete
234 %attr(755,root,root) /sbin/mkfs.ntfs
235 %{_mandir}/man8/mkfs.ntfs.8*
236 %{_mandir}/man8/mkntfs.8*
237 %{_mandir}/man8/ntfscat.8*
238 %{_mandir}/man8/ntfsclone.8*
239 %{_mandir}/man8/ntfscluster.8*
240 %{_mandir}/man8/ntfscmp.8*
241 %{_mandir}/man8/ntfscp.8*
242 %{_mandir}/man8/ntfsfix.8*
243 %{_mandir}/man8/ntfsinfo.8*
244 %{_mandir}/man8/ntfslabel.8*
245 %{_mandir}/man8/ntfsls.8*
246 %{_mandir}/man8/ntfsprogs.8*
247 %{_mandir}/man8/ntfsresize.8*
248 %{_mandir}/man8/ntfsundelete.8*
251 %defattr(644,root,root,755)
252 %doc AUTHORS CREDITS ChangeLog NEWS README
253 %attr(755,root,root) %{_bindir}/lowntfs-3g
254 %attr(755,root,root) %{_bindir}/ntfs-3g
255 %attr(755,root,root) %{_bindir}/ntfs-3g.probe
256 %attr(755,root,root) %{_bindir}/ntfs-3g.secaudit
257 %attr(755,root,root) %{_bindir}/ntfs-3g.usermap
258 %attr(755,root,root) %{_sbindir}/mount.lowntfs-3g
259 %attr(755,root,root) %{_sbindir}/mount.ntfs
260 %attr(755,root,root) %{_sbindir}/mount.ntfs-3g
261 %{_mandir}/man8/mount.lowntfs-3g.8*
262 %{_mandir}/man8/mount.ntfs-3g.8*
263 %{_mandir}/man8/ntfs-3g.8*
264 %{_mandir}/man8/ntfs-3g.probe.8*
265 %{_mandir}/man8/ntfs-3g.secaudit.8*
266 %{_mandir}/man8/ntfs-3g.usermap.8*
268 %files -n ntfs-3g-libs
269 %defattr(644,root,root,755)
270 %attr(755,root,root) /%{_lib}/libntfs-3g.so.*.*.*
271 %attr(755,root,root) %ghost /%{_lib}/libntfs-3g.so.84
273 %files -n ntfs-3g-devel
274 %defattr(644,root,root,755)
275 %attr(755,root,root) %{_libdir}/libntfs-3g.so
276 %{_includedir}/ntfs-3g
277 %{_pkgconfigdir}/libntfs-3g.pc
279 %files -n ntfs-3g-static
280 %defattr(644,root,root,755)
281 %{_libdir}/libntfs-3g.a
283 %files -n ntfs-3g-udev
284 %defattr(644,root,root,755)
285 /lib/udev/rules.d/99-ntfs3g.rules