]>
Commit | Line | Data |
---|---|---|
d264fe2c AG |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with internal_fuse # build with internal libfuse | |
a29dcab9 | 4 | %bcond_with quarantined # build with quarantined utilities |
aac95f91 | 5 | %bcond_without crypto # ntfsdecrypt utility |
d264fe2c AG |
6 | # |
7 | Summary: The NTFS driver with read and write support | |
8 | Summary(pl.UTF-8): Sterownik do NTFS umożliwiający odczyt i zapis | |
9 | Name: ntfs-3g_ntfsprogs | |
2c4ab88e | 10 | Version: 2021.8.22 |
d52d5eef | 11 | Release: 1 |
9b9d9e55 | 12 | Epoch: 1 |
d264fe2c AG |
13 | License: GPL v2+ |
14 | Group: Applications/System | |
15 | #Source0-Download: http://www.tuxera.com/community/ntfs-3g-download/ | |
16 | Source0: http://www.tuxera.com/opensource/%{name}-%{version}.tgz | |
2c4ab88e | 17 | # Source0-md5: 90da343e78877d388eb34cefae6799ae |
3c67eea5 | 18 | Source1: %{name}.rules |
d264fe2c AG |
19 | URL: http://www.tuxera.com/community/ |
20 | BuildRequires: autoconf >= 2.59 | |
21 | BuildRequires: automake | |
a29dcab9 | 22 | BuildRequires: hwinfo-devel |
d264fe2c AG |
23 | %{!?with_internal_fuse:BuildRequires: libfuse-devel >= 2.6.0} |
24 | BuildRequires: libtool | |
dd452336 | 25 | BuildRequires: libuuid-devel |
d264fe2c | 26 | BuildRequires: pkgconfig |
0ba21486 JB |
27 | %if %{with crypto} |
28 | BuildRequires: gnutls-devel >= 1.4.4 | |
29 | BuildRequires: libgcrypt-devel >= 1.2.2 | |
30 | %endif | |
d264fe2c AG |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
32 | ||
33 | %define _sbindir /sbin | |
34 | ||
35 | %description | |
b1eedaa2 AG |
36 | ntfs-3g_ntfsprogs is a stable, full-featured, read-write NTFS driver |
37 | for Linux, Android, Mac OS X, FreeBSD, NetBSD, OpenSolaris, QNX, | |
38 | Haiku, and other operating systems. It provides safe handling of the | |
39 | Windows XP, Windows Server 2003, Windows 2000, Windows Vista, Windows | |
40 | Server 2008 and Windows 7 NTFS file systems. | |
41 | ||
3bc16e1f JB |
42 | %description -l pl.UTF-8 |
43 | ntfs-3g_ntfsprogs to stabilny, pełny sterownik do systemu plików NTFS | |
44 | obsługujący odczyt i zapis dla systemów Linux, Android, Mac OS X, | |
45 | FreeBSD, NetBSD, OpenSolaris, QNX, Haiku i innych. Zapewnia bezpieczną | |
46 | obsługę systemów plików NTFS z systemów Windows XP, Windows Server | |
47 | 2003, Windows 2000, Windows Vista, Windows Server 2008 i Windows 7. | |
48 | ||
b1eedaa2 | 49 | %package -n ntfsprogs |
3bc16e1f JB |
50 | Summary: Utilities for NTFS file systems |
51 | Summary(pl.UTF-8): Narzędzia do systemów plików NTFS | |
b1eedaa2 | 52 | Group: Applications/System |
dd452336 | 53 | Requires: ntfs-3g-libs = %{epoch}:%{version}-%{release} |
b1eedaa2 AG |
54 | |
55 | %description -n ntfsprogs | |
3bc16e1f | 56 | This package contains the following utilities for NTFS file systems: |
d264fe2c AG |
57 | |
58 | - ntfsfix - attempt to fix an NTFS partition that has been damaged by | |
a2ec4a14 ŁK |
59 | the Linux NTFS driver. It should be run every time after you have used |
60 | the Linux NTFS driver to write to an NTFS partition to prevent massive | |
61 | data corruption from happening when Windows mounts the partition. | |
62 | IMPORTANT: Run this only *after* unmounting the partition in Linux but | |
63 | *before* rebooting into Windows NT/2000!, | |
d264fe2c AG |
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, | |
dd452336 | 68 | - ntfsclone - clone, image, restore or rescue NTFS. |
0ba21486 JB |
69 | %if %{with crypto} |
70 | - ntfsdecrypt - descrypt $EFS-encrypted files, | |
a2ec4a14 | 71 | - ntfsclone - clone, image, restore or rescue NTFS. |
dd452336 | 72 | %endif |
0ba21486 | 73 | - ntfswipe - wipe junk from unused space. |
a2ec4a14 | 74 | - ntfsclone - clone, image, restore or rescue NTFS. |
d264fe2c AG |
75 | |
76 | You can find more information about these utilities in their manuals. | |
77 | ||
b1eedaa2 | 78 | %description -n ntfsprogs -l pl.UTF-8 |
3bc16e1f | 79 | Ten pakiet zawiera następujące narzędzia do systemów plików NTFS: |
d264fe2c AG |
80 | |
81 | - ntfsfix - próbuje naprawiać partycję NTFS uszkodzone przez linuksowy | |
82 | sterownik do NTFS. Powinien być uruchamiany po każdym zapisie na | |
a2ec4a14 ŁK |
83 | partycji NTFS, aby zapobiec masowemu zniszczeniu danych. WAŻNE: należy |
84 | uruchamiać ten program tylko *po* odmontowaniu partycji pod Linuksem, | |
85 | ale *przed* uruchomieniem Windows NT/2000!, | |
dd452336 JB |
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, | |
0ba21486 JB |
90 | - ntfsclone - klonuje, tworzy obrazy i odtwarza NTFS, |
91 | %if %{with crypto} | |
92 | - ntfsdecrypt - odszyfrowuje pliki zaszyfrowane $EFS, | |
a2ec4a14 | 93 | - ntfsclone - klonuje, tworzy obrazy i odtwarza NTFS, |
dd452336 | 94 | %endif |
0ba21486 | 95 | - ntfswipe - czyszczenie pozostałości z nieużywanego miejsca. |
a2ec4a14 | 96 | - ntfsclone - klonuje, tworzy obrazy i odtwarza NTFS, |
d264fe2c AG |
97 | |
98 | Więcej informacji na temat tych narzędzi można znaleźć w manualach. | |
99 | ||
b1eedaa2 AG |
100 | %package -n ntfs-3g |
101 | Summary: The NTFS driver with read and write support | |
102 | Summary(pl.UTF-8): Sterownik do NTFS umożliwiający odczyt i zapis | |
103 | Group: Applications/System | |
cf215ffd | 104 | Obsoletes: ntfsprogs-fuse |
b1eedaa2 AG |
105 | |
106 | %description -n ntfs-3g | |
107 | The driver to NTFS with read and write support. It is able to | |
108 | unlimited and fully save file creation and deletion. | |
109 | ||
110 | %description -n ntfs-3g -l pl.UTF-8 | |
111 | Sterownik do systemu plików NTFS posiadający możliwość zarówno odczytu | |
112 | jak i zapisu. Umożliwia tworzenie i kasowanie plików nieograniczoną | |
113 | liczbę razy. | |
114 | ||
115 | %package -n ntfs-3g-libs | |
3bc16e1f JB |
116 | Summary: ntfs-3g shared library |
117 | Summary(pl.UTF-8): Biblioteka współdzielona ntfs-3g | |
b1eedaa2 AG |
118 | Group: Libraries |
119 | ||
120 | %description -n ntfs-3g-libs | |
3bc16e1f | 121 | ntfs-3g shared library. |
b1eedaa2 AG |
122 | |
123 | %description -n ntfs-3g-libs -l pl.UTF-8 | |
3bc16e1f | 124 | Biblioteka współdzielona ntfs-3g. |
b1eedaa2 AG |
125 | |
126 | %package -n ntfs-3g-devel | |
d264fe2c AG |
127 | Summary: Header files for libntfs-3g library |
128 | Summary(pl.UTF-8): Pliki nagłówkowe dla biblioteki libntfs-3g | |
129 | Group: Development/Libraries | |
9c8cf86d | 130 | Requires: ntfs-3g-libs = %{epoch}:%{version}-%{release} |
cf215ffd | 131 | Obsoletes: ntfsprogs-devel |
d264fe2c | 132 | |
b1eedaa2 | 133 | %description -n ntfs-3g-devel |
d264fe2c | 134 | This package includes the header files needed to link software with |
3bc16e1f | 135 | libntfs-3g library. |
d264fe2c | 136 | |
b1eedaa2 | 137 | %description -n ntfs-3g-devel -l pl.UTF-8 |
d264fe2c | 138 | Pliki nagłówkowe potrzebne do budowania programów korzystających z |
3bc16e1f | 139 | biblioteki libntfs-3g. |
d264fe2c | 140 | |
b1eedaa2 | 141 | %package -n ntfs-3g-static |
d264fe2c | 142 | Summary: Static version of libntfs-3g library |
3bc16e1f | 143 | Summary(pl.UTF-8): Statyczna wersja biblioteki libntfs-3g |
d264fe2c | 144 | Group: Development/Libraries |
9c8cf86d | 145 | Requires: ntfs-3g-devel = %{epoch}:%{version}-%{release} |
d264fe2c | 146 | |
b1eedaa2 | 147 | %description -n ntfs-3g-static |
d264fe2c AG |
148 | This package contains the static version of libntfs-3g library. |
149 | ||
b1eedaa2 | 150 | %description -n ntfs-3g-static -l pl.UTF-8 |
3bc16e1f | 151 | Ten pakiet zawiera statyczną wersję biblioteki libntfs-3g. |
d264fe2c | 152 | |
b1eedaa2 | 153 | %package -n ntfs-3g-udev |
d264fe2c AG |
154 | Summary: udev integration for ntfs-3g |
155 | Summary(pl.UTF-8): Integracja ntfs-3g z udevem | |
156 | Group: Applications/System | |
9c8cf86d | 157 | Requires: ntfs-3g = %{epoch}:%{version}-%{release} |
9b9d9e55 | 158 | Obsoletes: ntfs-3g-hal |
d264fe2c | 159 | |
b1eedaa2 | 160 | %description -n ntfs-3g-udev |
d264fe2c AG |
161 | udev integration for ntfs-3g. |
162 | ||
b1eedaa2 | 163 | %description -n ntfs-3g-udev -l pl.UTF-8 |
d264fe2c AG |
164 | Integracja ntfs-3g z udevem. |
165 | ||
166 | %prep | |
167 | %setup -q | |
168 | ||
169 | %build | |
170 | %{__libtoolize} | |
171 | %{__aclocal} | |
172 | %{__autoheader} | |
173 | %{__autoconf} | |
174 | %{__automake} | |
175 | ||
176 | %configure \ | |
177 | --disable-ldconfig \ | |
0ba21486 JB |
178 | %{?with_crypto:--enable-crypto} \ |
179 | --enable-extras \ | |
dd452336 | 180 | --enable-posix-acls \ |
a29dcab9 | 181 | %{?with_quarantined:--enable-quarantined} \ |
dd452336 | 182 | --enable-xattr-mappings \ |
d264fe2c AG |
183 | --with-fuse=%{?with_internal_fuse:in}%{!?with_internal_fuse:ex}ternal |
184 | ||
185 | %{__make} | |
186 | ||
187 | %install | |
188 | rm -rf $RPM_BUILD_ROOT | |
e6e6a390 JR |
189 | install -d $RPM_BUILD_ROOT{/%{_lib},/lib/udev/rules.d} |
190 | ||
d264fe2c AG |
191 | %{__make} install \ |
192 | DESTDIR=$RPM_BUILD_ROOT | |
193 | ||
e6e6a390 JR |
194 | mv -f $RPM_BUILD_ROOT%{_libdir}/libntfs-3g.so.* $RPM_BUILD_ROOT/%{_lib} |
195 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libntfs-3g.so | |
196 | ln -sf /%{_lib}/$(cd $RPM_BUILD_ROOT/%{_lib}; echo libntfs-3g.so.*.*) \ | |
197 | $RPM_BUILD_ROOT%{_libdir}/libntfs-3g.so | |
198 | ||
199 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libntfs-3g.la | |
200 | ||
d264fe2c AG |
201 | # mount.ntfs-3g manpage fix |
202 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man8/mount.ntfs-3g.8 | |
203 | echo ".so ntfs-3g.8" > $RPM_BUILD_ROOT%{_mandir}/man8/mount.ntfs-3g.8 | |
204 | ||
3c67eea5 | 205 | install %{SOURCE1} $RPM_BUILD_ROOT/lib/udev/rules.d/99-ntfs3g.rules |
d264fe2c AG |
206 | |
207 | # Symlink to allow automount using ntfs-3g: | |
208 | ln -sf %{_bindir}/ntfs-3g $RPM_BUILD_ROOT%{_sbindir}/mount.ntfs | |
209 | ||
a29dcab9 JP |
210 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/ntfs-3g |
211 | ||
d264fe2c AG |
212 | %clean |
213 | rm -rf $RPM_BUILD_ROOT | |
214 | ||
3bc16e1f JB |
215 | %post -n ntfs-3g-libs -p /sbin/ldconfig |
216 | %postun -n ntfs-3g-libs -p /sbin/ldconfig | |
d264fe2c | 217 | |
b1eedaa2 | 218 | %files -n ntfsprogs |
d264fe2c | 219 | %defattr(644,root,root,755) |
d264fe2c AG |
220 | %attr(755,root,root) %{_bindir}/ntfscat |
221 | %attr(755,root,root) %{_bindir}/ntfscluster | |
222 | %attr(755,root,root) %{_bindir}/ntfscmp | |
0ba21486 | 223 | %{?with_crypto:%attr(755,root,root) %{_bindir}/ntfsdecrypt} |
d264fe2c AG |
224 | %attr(755,root,root) %{_bindir}/ntfsfix |
225 | %attr(755,root,root) %{_bindir}/ntfsinfo | |
226 | %attr(755,root,root) %{_bindir}/ntfsls | |
f0ccf971 | 227 | %attr(755,root,root) %{_bindir}/ntfsrecover |
0ba21486 JB |
228 | %attr(755,root,root) %{_bindir}/ntfstruncate |
229 | %attr(755,root,root) %{_bindir}/ntfswipe | |
a29dcab9 JP |
230 | %if %{with quarantined} |
231 | %attr(755,root,root) %{_bindir}/ntfsck | |
232 | %attr(755,root,root) %{_bindir}/ntfsdump_logfile | |
233 | %attr(755,root,root) %{_bindir}/ntfsfallocate | |
234 | %attr(755,root,root) %{_bindir}/ntfsmftalloc | |
235 | %attr(755,root,root) %{_bindir}/ntfsmove | |
236 | %endif | |
d264fe2c AG |
237 | %attr(755,root,root) %{_sbindir}/mkntfs |
238 | %attr(755,root,root) %{_sbindir}/ntfsclone | |
239 | %attr(755,root,root) %{_sbindir}/ntfscp | |
240 | %attr(755,root,root) %{_sbindir}/ntfslabel | |
241 | %attr(755,root,root) %{_sbindir}/ntfsresize | |
242 | %attr(755,root,root) %{_sbindir}/ntfsundelete | |
243 | %attr(755,root,root) /sbin/mkfs.ntfs | |
d264fe2c AG |
244 | %{_mandir}/man8/mkfs.ntfs.8* |
245 | %{_mandir}/man8/mkntfs.8* | |
246 | %{_mandir}/man8/ntfscat.8* | |
247 | %{_mandir}/man8/ntfsclone.8* | |
248 | %{_mandir}/man8/ntfscluster.8* | |
249 | %{_mandir}/man8/ntfscmp.8* | |
250 | %{_mandir}/man8/ntfscp.8* | |
a29dcab9 JP |
251 | %{_mandir}/man8/ntfsdecrypt.8* |
252 | %{_mandir}/man8/ntfsfallocate.8* | |
d264fe2c AG |
253 | %{_mandir}/man8/ntfsfix.8* |
254 | %{_mandir}/man8/ntfsinfo.8* | |
255 | %{_mandir}/man8/ntfslabel.8* | |
256 | %{_mandir}/man8/ntfsls.8* | |
257 | %{_mandir}/man8/ntfsprogs.8* | |
f0ccf971 | 258 | %{_mandir}/man8/ntfsrecover.8* |
d264fe2c | 259 | %{_mandir}/man8/ntfsresize.8* |
a29dcab9 | 260 | %{_mandir}/man8/ntfstruncate.8* |
d264fe2c | 261 | %{_mandir}/man8/ntfsundelete.8* |
a29dcab9 | 262 | %{_mandir}/man8/ntfswipe.8* |
d264fe2c | 263 | |
b1eedaa2 AG |
264 | %files -n ntfs-3g |
265 | %defattr(644,root,root,755) | |
266 | %doc AUTHORS CREDITS ChangeLog NEWS README | |
267 | %attr(755,root,root) %{_bindir}/lowntfs-3g | |
268 | %attr(755,root,root) %{_bindir}/ntfs-3g | |
269 | %attr(755,root,root) %{_bindir}/ntfs-3g.probe | |
d52d5eef JP |
270 | %attr(755,root,root) %{_bindir}/ntfssecaudit |
271 | %attr(755,root,root) %{_bindir}/ntfsusermap | |
b1eedaa2 AG |
272 | %attr(755,root,root) %{_sbindir}/mount.lowntfs-3g |
273 | %attr(755,root,root) %{_sbindir}/mount.ntfs | |
274 | %attr(755,root,root) %{_sbindir}/mount.ntfs-3g | |
275 | %{_mandir}/man8/mount.lowntfs-3g.8* | |
276 | %{_mandir}/man8/mount.ntfs-3g.8* | |
277 | %{_mandir}/man8/ntfs-3g.8* | |
278 | %{_mandir}/man8/ntfs-3g.probe.8* | |
d52d5eef JP |
279 | %{_mandir}/man8/ntfssecaudit.8* |
280 | %{_mandir}/man8/ntfsusermap.8* | |
b1eedaa2 AG |
281 | |
282 | %files -n ntfs-3g-libs | |
283 | %defattr(644,root,root,755) | |
e6e6a390 | 284 | %attr(755,root,root) /%{_lib}/libntfs-3g.so.*.*.* |
2c4ab88e | 285 | %attr(755,root,root) %ghost /%{_lib}/libntfs-3g.so.89 |
b1eedaa2 AG |
286 | |
287 | %files -n ntfs-3g-devel | |
d264fe2c AG |
288 | %defattr(644,root,root,755) |
289 | %attr(755,root,root) %{_libdir}/libntfs-3g.so | |
d264fe2c AG |
290 | %{_includedir}/ntfs-3g |
291 | %{_pkgconfigdir}/libntfs-3g.pc | |
292 | ||
b1eedaa2 | 293 | %files -n ntfs-3g-static |
d264fe2c AG |
294 | %defattr(644,root,root,755) |
295 | %{_libdir}/libntfs-3g.a | |
296 | ||
b1eedaa2 | 297 | %files -n ntfs-3g-udev |
d264fe2c AG |
298 | %defattr(644,root,root,755) |
299 | /lib/udev/rules.d/99-ntfs3g.rules |