]> git.pld-linux.org Git - packages/ntfs-3g_ntfsprogs.git/blame - ntfs-3g_ntfsprogs.spec
up to 2021.8.22 (new soname)
[packages/ntfs-3g_ntfsprogs.git] / ntfs-3g_ntfsprogs.spec
CommitLineData
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#
7Summary: The NTFS driver with read and write support
8Summary(pl.UTF-8): Sterownik do NTFS umożliwiający odczyt i zapis
9Name: ntfs-3g_ntfsprogs
2c4ab88e 10Version: 2021.8.22
d52d5eef 11Release: 1
9b9d9e55 12Epoch: 1
d264fe2c
AG
13License: GPL v2+
14Group: Applications/System
15#Source0-Download: http://www.tuxera.com/community/ntfs-3g-download/
16Source0: http://www.tuxera.com/opensource/%{name}-%{version}.tgz
2c4ab88e 17# Source0-md5: 90da343e78877d388eb34cefae6799ae
3c67eea5 18Source1: %{name}.rules
d264fe2c
AG
19URL: http://www.tuxera.com/community/
20BuildRequires: autoconf >= 2.59
21BuildRequires: automake
a29dcab9 22BuildRequires: hwinfo-devel
d264fe2c
AG
23%{!?with_internal_fuse:BuildRequires: libfuse-devel >= 2.6.0}
24BuildRequires: libtool
dd452336 25BuildRequires: libuuid-devel
d264fe2c 26BuildRequires: pkgconfig
0ba21486
JB
27%if %{with crypto}
28BuildRequires: gnutls-devel >= 1.4.4
29BuildRequires: libgcrypt-devel >= 1.2.2
30%endif
d264fe2c
AG
31BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33%define _sbindir /sbin
34
35%description
b1eedaa2
AG
36ntfs-3g_ntfsprogs is a stable, full-featured, read-write NTFS driver
37for Linux, Android, Mac OS X, FreeBSD, NetBSD, OpenSolaris, QNX,
38Haiku, and other operating systems. It provides safe handling of the
39Windows XP, Windows Server 2003, Windows 2000, Windows Vista, Windows
40Server 2008 and Windows 7 NTFS file systems.
41
3bc16e1f
JB
42%description -l pl.UTF-8
43ntfs-3g_ntfsprogs to stabilny, pełny sterownik do systemu plików NTFS
44obsługujący odczyt i zapis dla systemów Linux, Android, Mac OS X,
45FreeBSD, NetBSD, OpenSolaris, QNX, Haiku i innych. Zapewnia bezpieczną
46obsługę systemów plików NTFS z systemów Windows XP, Windows Server
472003, Windows 2000, Windows Vista, Windows Server 2008 i Windows 7.
48
b1eedaa2 49%package -n ntfsprogs
3bc16e1f
JB
50Summary: Utilities for NTFS file systems
51Summary(pl.UTF-8): Narzędzia do systemów plików NTFS
b1eedaa2 52Group: Applications/System
dd452336 53Requires: ntfs-3g-libs = %{epoch}:%{version}-%{release}
b1eedaa2
AG
54
55%description -n ntfsprogs
3bc16e1f 56This 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
76You can find more information about these utilities in their manuals.
77
b1eedaa2 78%description -n ntfsprogs -l pl.UTF-8
3bc16e1f 79Ten 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
98Więcej informacji na temat tych narzędzi można znaleźć w manualach.
99
b1eedaa2
AG
100%package -n ntfs-3g
101Summary: The NTFS driver with read and write support
102Summary(pl.UTF-8): Sterownik do NTFS umożliwiający odczyt i zapis
103Group: Applications/System
cf215ffd 104Obsoletes: ntfsprogs-fuse
b1eedaa2
AG
105
106%description -n ntfs-3g
107The driver to NTFS with read and write support. It is able to
108unlimited and fully save file creation and deletion.
109
110%description -n ntfs-3g -l pl.UTF-8
111Sterownik do systemu plików NTFS posiadający możliwość zarówno odczytu
112jak i zapisu. Umożliwia tworzenie i kasowanie plików nieograniczoną
113liczbę razy.
114
115%package -n ntfs-3g-libs
3bc16e1f
JB
116Summary: ntfs-3g shared library
117Summary(pl.UTF-8): Biblioteka współdzielona ntfs-3g
b1eedaa2
AG
118Group: Libraries
119
120%description -n ntfs-3g-libs
3bc16e1f 121ntfs-3g shared library.
b1eedaa2
AG
122
123%description -n ntfs-3g-libs -l pl.UTF-8
3bc16e1f 124Biblioteka współdzielona ntfs-3g.
b1eedaa2
AG
125
126%package -n ntfs-3g-devel
d264fe2c
AG
127Summary: Header files for libntfs-3g library
128Summary(pl.UTF-8): Pliki nagłówkowe dla biblioteki libntfs-3g
129Group: Development/Libraries
9c8cf86d 130Requires: ntfs-3g-libs = %{epoch}:%{version}-%{release}
cf215ffd 131Obsoletes: ntfsprogs-devel
d264fe2c 132
b1eedaa2 133%description -n ntfs-3g-devel
d264fe2c 134This package includes the header files needed to link software with
3bc16e1f 135libntfs-3g library.
d264fe2c 136
b1eedaa2 137%description -n ntfs-3g-devel -l pl.UTF-8
d264fe2c 138Pliki nagłówkowe potrzebne do budowania programów korzystających z
3bc16e1f 139biblioteki libntfs-3g.
d264fe2c 140
b1eedaa2 141%package -n ntfs-3g-static
d264fe2c 142Summary: Static version of libntfs-3g library
3bc16e1f 143Summary(pl.UTF-8): Statyczna wersja biblioteki libntfs-3g
d264fe2c 144Group: Development/Libraries
9c8cf86d 145Requires: ntfs-3g-devel = %{epoch}:%{version}-%{release}
d264fe2c 146
b1eedaa2 147%description -n ntfs-3g-static
d264fe2c
AG
148This package contains the static version of libntfs-3g library.
149
b1eedaa2 150%description -n ntfs-3g-static -l pl.UTF-8
3bc16e1f 151Ten pakiet zawiera statyczną wersję biblioteki libntfs-3g.
d264fe2c 152
b1eedaa2 153%package -n ntfs-3g-udev
d264fe2c
AG
154Summary: udev integration for ntfs-3g
155Summary(pl.UTF-8): Integracja ntfs-3g z udevem
156Group: Applications/System
9c8cf86d 157Requires: ntfs-3g = %{epoch}:%{version}-%{release}
9b9d9e55 158Obsoletes: ntfs-3g-hal
d264fe2c 159
b1eedaa2 160%description -n ntfs-3g-udev
d264fe2c
AG
161udev integration for ntfs-3g.
162
b1eedaa2 163%description -n ntfs-3g-udev -l pl.UTF-8
d264fe2c
AG
164Integracja 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
188rm -rf $RPM_BUILD_ROOT
e6e6a390
JR
189install -d $RPM_BUILD_ROOT{/%{_lib},/lib/udev/rules.d}
190
d264fe2c
AG
191%{__make} install \
192 DESTDIR=$RPM_BUILD_ROOT
193
e6e6a390
JR
194mv -f $RPM_BUILD_ROOT%{_libdir}/libntfs-3g.so.* $RPM_BUILD_ROOT/%{_lib}
195%{__rm} $RPM_BUILD_ROOT%{_libdir}/libntfs-3g.so
196ln -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
203echo ".so ntfs-3g.8" > $RPM_BUILD_ROOT%{_mandir}/man8/mount.ntfs-3g.8
204
3c67eea5 205install %{SOURCE1} $RPM_BUILD_ROOT/lib/udev/rules.d/99-ntfs3g.rules
d264fe2c
AG
206
207# Symlink to allow automount using ntfs-3g:
208ln -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
213rm -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
This page took 0.238847 seconds and 4 git commands to generate.