2011-07-25 12:58:45 +02:00
|
|
|
#
|
|
|
|
# spec file for package ntfs-3g_ntfsprogs
|
|
|
|
#
|
2022-05-29 21:53:17 +02:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2011-07-25 12:58:45 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2021-03-15 15:23:39 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-07-25 12:58:45 +02:00
|
|
|
#
|
|
|
|
|
2012-02-17 09:53:46 +01:00
|
|
|
|
2022-05-29 21:53:17 +02:00
|
|
|
%define sover 89
|
2021-03-15 15:23:39 +01:00
|
|
|
%if 0%{?usrmerged}
|
2022-05-29 21:53:17 +02:00
|
|
|
%define sbindir %{_sbindir}
|
2021-03-15 15:23:39 +01:00
|
|
|
%else
|
|
|
|
%define sbindir /sbin
|
|
|
|
%endif
|
2011-07-25 12:58:45 +02:00
|
|
|
Name: ntfs-3g_ntfsprogs
|
2022-11-01 15:34:13 +01:00
|
|
|
Version: 2022.10.3
|
2022-05-29 21:53:17 +02:00
|
|
|
Release: 0
|
2011-07-25 12:58:45 +02:00
|
|
|
Summary: NTFS Support in Userspace
|
2018-08-10 00:52:25 +02:00
|
|
|
License: GPL-2.0-or-later
|
2011-07-25 12:58:45 +02:00
|
|
|
Group: System/Filesystems
|
2021-09-13 18:00:15 +02:00
|
|
|
URL: https://github.com/tuxera/ntfs-3g/
|
2022-05-29 21:53:17 +02:00
|
|
|
Source: https://tuxera.com/opensource/%{name}-%{version}.tgz
|
2018-08-10 00:52:25 +02:00
|
|
|
BuildRequires: autoconf
|
2016-04-04 16:13:06 +02:00
|
|
|
BuildRequires: gnutls-devel
|
2014-11-18 23:32:07 +01:00
|
|
|
BuildRequires: hwinfo-devel
|
2016-04-04 16:13:06 +02:00
|
|
|
BuildRequires: libgcrypt-devel
|
2014-11-18 23:32:07 +01:00
|
|
|
BuildRequires: libuuid-devel
|
2012-11-27 18:56:57 +01:00
|
|
|
BuildRequires: pkgconfig
|
2021-03-15 15:23:39 +01:00
|
|
|
BuildRequires: pkgconfig(fuse) >= 2.6.0
|
2011-07-25 12:58:45 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
NTFS-3G allows for read/write access to NTFS partitions which can be
|
|
|
|
shared with Windows XP, Windows Server 2003, Windows 2000, Windows
|
|
|
|
Vista and Windows Seven.
|
|
|
|
|
|
|
|
%package -n ntfs-3g
|
|
|
|
Summary: NTFS Support in Userspace
|
2018-08-10 00:52:25 +02:00
|
|
|
License: GPL-2.0-or-later
|
2011-07-25 12:58:45 +02:00
|
|
|
Group: System/Filesystems
|
|
|
|
Provides: ntfsprogs-fuse = 1.13.1
|
|
|
|
Obsoletes: ntfsprogs-fuse < 1.13.1
|
2012-11-27 18:56:57 +01:00
|
|
|
%if 0%{?suse_version}
|
2011-07-25 12:58:45 +02:00
|
|
|
Requires(post): update-alternatives
|
2021-09-13 18:00:15 +02:00
|
|
|
Requires(postun):update-alternatives
|
2011-07-25 12:58:45 +02:00
|
|
|
Supplements: filesystem(ntfs-3g)
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description -n ntfs-3g
|
|
|
|
NTFS-3G allows for read/write access to NTFS partitions which can be
|
|
|
|
shared with Windows XP, Windows Server 2003, Windows 2000, Windows
|
|
|
|
Vista and Windows Seven.
|
|
|
|
|
2022-05-29 21:53:17 +02:00
|
|
|
%package -n libntfs-3g%{sover}
|
2011-07-25 12:58:45 +02:00
|
|
|
Summary: NTFS Support in Userspace -- Library
|
2018-08-10 00:52:25 +02:00
|
|
|
License: LGPL-2.1-or-later
|
2011-07-25 12:58:45 +02:00
|
|
|
Group: System/Filesystems
|
|
|
|
|
2022-05-29 21:53:17 +02:00
|
|
|
%description -n libntfs-3g%{sover}
|
2011-07-25 12:58:45 +02:00
|
|
|
NTFS-3G allows for read/write access to NTFS partitions which can be
|
|
|
|
shared with Windows XP, Windows Server 2003, Windows 2000, Windows
|
|
|
|
Vista and Windows Seven.
|
|
|
|
|
|
|
|
%package -n libntfs-3g-devel
|
|
|
|
Summary: NTFS Support in Userspace -- Development Files
|
2018-08-10 00:52:25 +02:00
|
|
|
License: LGPL-2.1-or-later
|
2011-07-25 12:58:45 +02:00
|
|
|
Group: System/Filesystems
|
|
|
|
Requires: glibc-devel
|
2022-05-29 21:53:17 +02:00
|
|
|
Requires: libntfs-3g%{sover} = %{version}
|
2011-07-25 12:58:45 +02:00
|
|
|
Provides: ntfs-3g-devel = %{version}
|
|
|
|
Obsoletes: ntfs-3g-devel < %{version}
|
|
|
|
|
|
|
|
%description -n libntfs-3g-devel
|
|
|
|
NTFS-3G allows for read/write access to NTFS partitions which can be
|
|
|
|
shared with Windows XP, Windows Server 2003, Windows 2000, Windows
|
|
|
|
Vista and Windows Seven.
|
|
|
|
|
|
|
|
%package -n ntfsprogs
|
|
|
|
Summary: NTFS Utilities
|
2018-08-10 00:52:25 +02:00
|
|
|
License: GPL-2.0-or-later
|
2011-07-25 12:58:45 +02:00
|
|
|
Group: System/Filesystems
|
|
|
|
|
|
|
|
%description -n ntfsprogs
|
|
|
|
The ntfsprogs includes utilities for doing all required tasks to NTFS
|
|
|
|
partitions. In general, just run a utility without any command line
|
|
|
|
options to display the version number and usage syntax.
|
|
|
|
|
2016-04-04 16:13:06 +02:00
|
|
|
%package -n ntfsprogs-extra
|
|
|
|
Summary: NTFS Utilities which can damage your filesystem such that Windows can't read it
|
2018-08-10 00:52:25 +02:00
|
|
|
License: GPL-2.0-or-later
|
2016-04-04 16:13:06 +02:00
|
|
|
Group: System/Filesystems
|
|
|
|
|
|
|
|
%description -n ntfsprogs-extra
|
|
|
|
These are programs which are considered non-functional or only test-oriented. They are kept in the source
|
2021-09-13 18:00:15 +02:00
|
|
|
tarball so that volunteers can capitalize on them for improvement.
|
2016-04-04 16:13:06 +02:00
|
|
|
|
2022-05-29 21:53:17 +02:00
|
|
|
In particular ntfsck is just a place holder. Distributions are expected not to recommend inserting a positive value in the last field of %{_sysconfdir}/fstab for ntfs partitions.
|
2016-04-04 16:13:06 +02:00
|
|
|
|
2021-09-13 18:00:15 +02:00
|
|
|
They have been orphaned for ten years and are unlikely to be upgraded (except ntfsfallocate, if there is some demand).
|
2016-04-04 16:13:06 +02:00
|
|
|
|
2011-07-25 12:58:45 +02:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2018-08-10 00:52:25 +02:00
|
|
|
# Rebuild configure to pick up the updated AC_HEADER_MAJOR
|
|
|
|
autoconf
|
2011-07-25 12:58:45 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
#
|
|
|
|
# regarding -Wno-sign-compare - checked with the Szaka: There is one variable
|
|
|
|
# which is signed and would possibly ok to be unsigned. Any solution to this
|
|
|
|
# needs to be carefully reviewed and tested, so we do not change the code now:
|
|
|
|
#
|
2022-05-29 21:53:17 +02:00
|
|
|
export CFLAGS="%{optflags} -Wformat -Wformat-security -W -Wno-sign-compare -fPIE"
|
2015-01-02 13:05:51 +01:00
|
|
|
export LDFLAGS="-pie"
|
2012-11-27 18:56:57 +01:00
|
|
|
%configure --exec-prefix=/ --disable-static --with-pic --disable-ldconfig \
|
2016-04-04 16:13:06 +02:00
|
|
|
--with-fuse=external --enable-posix-acls \
|
|
|
|
--enable-extras \
|
|
|
|
--enable-crypto \
|
|
|
|
--enable-quarantined
|
2022-05-29 21:53:17 +02:00
|
|
|
%make_build
|
2011-07-25 12:58:45 +02:00
|
|
|
|
|
|
|
%install
|
2022-05-29 21:53:17 +02:00
|
|
|
%make_install
|
2021-03-15 15:23:39 +01:00
|
|
|
%if 0%{?usrmerged}
|
|
|
|
mv %{buildroot}/sbin/* %{buildroot}%{_sbindir}
|
|
|
|
%endif
|
2022-05-29 21:53:17 +02:00
|
|
|
rm -v %{buildroot}%{_libdir}/libntfs-3g.la
|
2016-08-17 18:15:53 +02:00
|
|
|
# Alternatives for mount.ntfs (binary and manpage)
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
|
2021-03-15 15:23:39 +01:00
|
|
|
ln -s -f %{_sysconfdir}/alternatives/mount.ntfs %{buildroot}%{sbindir}/mount.ntfs
|
2016-08-17 18:15:53 +02:00
|
|
|
ln -s -f %{_sysconfdir}/alternatives/mount.ntfs.8%{ext_man} %{buildroot}%{_mandir}/man8/mount.ntfs.8%{?ext_man}
|
2011-07-25 12:58:45 +02:00
|
|
|
|
|
|
|
%check
|
|
|
|
TESTFS=$(mktemp) || exit 1
|
|
|
|
ntfsprogs/mkntfs -q -F $TESTFS 3000
|
|
|
|
src/ntfs-3g.probe --readonly $TESTFS
|
|
|
|
src/ntfs-3g.probe --readwrite $TESTFS
|
|
|
|
rm -v $TESTFS
|
|
|
|
|
|
|
|
%post -n ntfs-3g
|
|
|
|
# If the mount.ntfs group is in automatic mode, then this will also switch all
|
|
|
|
# symlinks automatically
|
2021-03-15 15:23:39 +01:00
|
|
|
update-alternatives --install %{sbindir}/mount.ntfs mount.ntfs %{sbindir}/mount.ntfs-3g 10 \
|
|
|
|
--slave %{_mandir}/man8/mount.ntfs.8%{?ext_man} mount.ntfs.8%{?ext_man} %{_mandir}/man8/mount.ntfs-3g.8%{?ext_man}
|
2011-07-25 12:58:45 +02:00
|
|
|
|
2021-03-15 15:23:39 +01:00
|
|
|
%postun -n ntfs-3g
|
2011-07-25 12:58:45 +02:00
|
|
|
# Note: we don't use "$1 -eq 0", to avoid issues if the package gets renamed
|
2021-03-15 15:23:39 +01:00
|
|
|
if [ ! -f %{sbindir}/mount.ntfs-3g ]; then
|
|
|
|
update-alternatives --remove mount.ntfs %{sbindir}/mount.ntfs-3g
|
2011-07-25 12:58:45 +02:00
|
|
|
fi
|
|
|
|
|
2022-05-29 21:53:17 +02:00
|
|
|
%post -n libntfs-3g%{sover} -p /sbin/ldconfig
|
|
|
|
%postun -n libntfs-3g%{sover} -p /sbin/ldconfig
|
2011-07-25 12:58:45 +02:00
|
|
|
|
|
|
|
%files -n ntfs-3g
|
2018-08-10 00:52:25 +02:00
|
|
|
%doc AUTHORS ChangeLog CREDITS NEWS README
|
|
|
|
%license COPYING
|
2011-07-25 12:58:45 +02:00
|
|
|
%{_bindir}/ntfs-3g
|
|
|
|
%{_bindir}/ntfs-3g.probe
|
2017-06-26 19:19:02 +02:00
|
|
|
%{_bindir}/ntfssecaudit
|
|
|
|
%{_bindir}/ntfsusermap
|
2011-07-25 12:58:45 +02:00
|
|
|
%{_bindir}/lowntfs-3g
|
2021-03-15 15:23:39 +01:00
|
|
|
%{sbindir}/mount.ntfs
|
2016-08-17 18:15:53 +02:00
|
|
|
%ghost %{_sysconfdir}/alternatives/mount.ntfs
|
|
|
|
%ghost %{_sysconfdir}/alternatives/mount.ntfs.8%{?ext_man}
|
2021-03-15 15:23:39 +01:00
|
|
|
%{sbindir}/mount.ntfs-3g
|
|
|
|
%{sbindir}/mount.lowntfs-3g
|
2011-07-25 12:58:45 +02:00
|
|
|
%{_mandir}/man8/mount.lowntfs-3g.8%{?ext_man}
|
2021-03-15 15:23:39 +01:00
|
|
|
%{_mandir}/man8/mount.ntfs.8%{?ext_man}
|
2011-07-25 12:58:45 +02:00
|
|
|
%{_mandir}/man8/mount.ntfs-3g.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/ntfs-3g.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/ntfs-3g.probe.8%{?ext_man}
|
2017-06-26 19:19:02 +02:00
|
|
|
%{_mandir}/man8/ntfssecaudit.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/ntfsusermap.8%{?ext_man}
|
2011-07-25 12:58:45 +02:00
|
|
|
# We already have this, so no need to package it again.
|
2022-05-29 21:53:17 +02:00
|
|
|
%exclude %{_datadir}/doc/ntfs-3g/README
|
2011-07-25 12:58:45 +02:00
|
|
|
|
2022-05-29 21:53:17 +02:00
|
|
|
%files -n libntfs-3g%{sover}
|
2018-08-10 00:52:25 +02:00
|
|
|
%license COPYING.LIB
|
2012-02-17 09:53:46 +01:00
|
|
|
%{_libdir}/libntfs-3g.so.*
|
2011-07-25 12:58:45 +02:00
|
|
|
|
|
|
|
%files -n libntfs-3g-devel
|
|
|
|
%{_includedir}/ntfs-3g/
|
|
|
|
%{_libdir}/libntfs-3g.so
|
|
|
|
%{_libdir}/pkgconfig/libntfs-3g.pc
|
|
|
|
|
|
|
|
%files -n ntfsprogs
|
2018-08-10 00:52:25 +02:00
|
|
|
%doc AUTHORS ChangeLog CREDITS NEWS README
|
|
|
|
%license COPYING
|
2021-09-13 18:00:15 +02:00
|
|
|
%{_sbindir}/mkfs.ntfs
|
2011-07-25 12:58:45 +02:00
|
|
|
%{_sbindir}/mkntfs
|
|
|
|
%{_sbindir}/ntfsclone
|
|
|
|
%{_sbindir}/ntfscp
|
|
|
|
%{_sbindir}/ntfslabel
|
|
|
|
%{_sbindir}/ntfsresize
|
|
|
|
%{_sbindir}/ntfsundelete
|
|
|
|
%{_bindir}/ntfscat
|
|
|
|
%{_bindir}/ntfscluster
|
|
|
|
%{_bindir}/ntfscmp
|
|
|
|
%{_bindir}/ntfsfix
|
|
|
|
%{_bindir}/ntfsinfo
|
|
|
|
%{_bindir}/ntfsls
|
2016-04-04 16:13:06 +02:00
|
|
|
%{_bindir}/ntfswipe
|
|
|
|
%{_bindir}/ntfstruncate
|
|
|
|
%{_bindir}/ntfsdecrypt
|
|
|
|
%{_bindir}/ntfsrecover
|
2011-07-25 12:58:45 +02:00
|
|
|
%{_mandir}/man8/mkfs.ntfs.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/mkntfs.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/ntfscat.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/ntfsclone.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/ntfscluster.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/ntfscmp.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/ntfscp.8%{?ext_man}
|
2015-06-02 15:14:11 +02:00
|
|
|
%{_mandir}/man8/ntfsdecrypt.8%{?ext_man}
|
2011-07-25 12:58:45 +02:00
|
|
|
%{_mandir}/man8/ntfsfix.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/ntfsinfo.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/ntfslabel.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/ntfsls.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/ntfsprogs.8%{?ext_man}
|
|
|
|
%{_mandir}/man8/ntfsresize.8%{?ext_man}
|
2015-06-02 15:14:11 +02:00
|
|
|
%{_mandir}/man8/ntfstruncate.8%{?ext_man}
|
2011-07-25 12:58:45 +02:00
|
|
|
%{_mandir}/man8/ntfsundelete.8%{?ext_man}
|
2015-06-02 15:14:11 +02:00
|
|
|
%{_mandir}/man8/ntfswipe.8%{?ext_man}
|
2016-04-04 16:13:06 +02:00
|
|
|
%{_mandir}/man8/ntfsrecover.8%{?ext_man}
|
|
|
|
|
|
|
|
%files -n ntfsprogs-extra
|
2018-08-10 00:52:25 +02:00
|
|
|
%doc AUTHORS ChangeLog CREDITS NEWS README
|
|
|
|
%license COPYING
|
2016-04-04 16:13:06 +02:00
|
|
|
%{_bindir}/ntfsck
|
|
|
|
%{_bindir}/ntfsdump_logfile
|
|
|
|
%{_bindir}/ntfsfallocate
|
|
|
|
%{_bindir}/ntfsmftalloc
|
|
|
|
%{_bindir}/ntfsmove
|
|
|
|
%{_mandir}/man8/ntfsfallocate.8%{?ext_man}
|
2011-07-25 12:58:45 +02:00
|
|
|
|
|
|
|
%changelog
|