[ntfs-3g/el5/master] 2011.4.12 and ntfsprogs merge

Tom Callaway spot at fedoraproject.org
Thu Apr 14 17:13:29 UTC 2011


commit 3a68ee77bbf8b1fe298981e4f7987bce4ce45be8
Author: Tom "spot" Callaway <tcallawa at redhat.com>
Date:   Thu Apr 14 13:13:34 2011 -0400

    2011.4.12 and ntfsprogs merge

 ntfs-3g-2011.4.12-ntfsprogs-header-fix.patch |   20 +++++
 ntfs-3g.spec                                 |  108 +++++++++++++++++++++-----
 sources                                      |    2 +-
 3 files changed, 108 insertions(+), 22 deletions(-)
---
diff --git a/ntfs-3g-2011.4.12-ntfsprogs-header-fix.patch b/ntfs-3g-2011.4.12-ntfsprogs-header-fix.patch
new file mode 100644
index 0000000..82eafd5
--- /dev/null
+++ b/ntfs-3g-2011.4.12-ntfsprogs-header-fix.patch
@@ -0,0 +1,20 @@
+diff -up ntfs-3g_ntfsprogs-2011.4.12/ntfsprogs/ntfsck.c.header-fix ntfs-3g_ntfsprogs-2011.4.12/ntfsprogs/ntfsck.c
+--- ntfs-3g_ntfsprogs-2011.4.12/ntfsprogs/ntfsck.c.header-fix	2011-04-14 12:20:03.884433071 -0400
++++ ntfs-3g_ntfsprogs-2011.4.12/ntfsprogs/ntfsck.c	2011-04-14 12:20:42.779958187 -0400
+@@ -37,11 +37,11 @@
+ #include <fcntl.h>
+ #endif
+ 
+-#include <ntfs-3g/layout.h>
+-#include <ntfs-3g/bitmap.h>
+-#include <ntfs-3g/endians.h>
+-#include <ntfs-3g/bootsect.h>
+-#include <ntfs-3g/misc.h>
++#include <layout.h>
++#include <bitmap.h>
++#include <endians.h>
++#include <bootsect.h>
++#include <misc.h>
+ 
+ #include "cluster.h"
+ #include "utils.h"
diff --git a/ntfs-3g.spec b/ntfs-3g.spec
index 22527df..00264d1 100644
--- a/ntfs-3g.spec
+++ b/ntfs-3g.spec
@@ -7,11 +7,11 @@
 
 Name:		ntfs-3g
 Summary:	Linux NTFS userspace driver
-Version:	2011.1.15
+Version:	2011.4.12
 Release:	1%{?dist}
 License:	GPLv2+
 Group:		System Environment/Base
-Source0:	http://tuxera.com/opensource/ntfs-3g-%{version}%{?subver}.tgz
+Source0:	http://tuxera.com/opensource/%{name}_ntfsprogs-%{version}%{?subver}.tgz
 Source1:	20-ntfs-config-write-policy.fdi
 URL:		http://www.ntfs-3g.org/
 BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -20,10 +20,13 @@ BuildRequires:	fuse-devel
 Requires:	fuse
 %endif
 BuildRequires:	libtool, libattr-devel
+# ntfsprogs BuildRequires
+BuildRequires:  libconfig-devel, libgcrypt-devel, gnutls-devel, libuuid-devel
 Epoch:		2
 Provides:	ntfsprogs-fuse = %{epoch}:%{version}-%{release}
 Obsoletes:	ntfsprogs-fuse
 Provides:	fuse-ntfs-3g = %{epoch}:%{version}-%{release}
+Patch0:		ntfs-3g-2011.4.12-ntfsprogs-header-fix.patch
 
 %description
 NTFS-3G is a stable, open source, GPL licensed, POSIX, read/write NTFS 
@@ -41,13 +44,28 @@ Summary:	Development files and libraries for ntfs-3g
 Group:		Development/Libraries
 Requires:	%{name} = %{epoch}:%{version}-%{release}
 Requires:	pkgconfig
+Provides:	ntfsprogs-devel = %{epoch}:%{version}-%{release}
+Obsoletes:	ntfsprogs-devel
 
 %description devel
 Headers and libraries for developing applications that use ntfs-3g
 functionality.
 
+%package -n ntfsprogs
+Summary:	NTFS filesystem libraries and utilities
+Group:		System Environment/Base
+# We don't really provide this. This code is dead and buried now.
+Provides:	ntfsprogs-gnomevfs = %{epoch}:%{version}-%{release}
+Obsoletes:	ntfsprogs-gnomevfs
+
+%description -n ntfsprogs
+The ntfsprogs package currently consists of a library and utilities such as 
+mkntfs, ntfscat, ntfsls, ntfsresize, and ntfsundelete (for a full list of 
+included utilities see man 8 ntfsprogs after installation).
+
 %prep
-%setup -q -n %{name}-%{version}%{?subver}
+%setup -q -n %{name}_ntfsprogs-%{version}%{?subver}
+%patch0 -p1 -b .header-fix
 
 %build
 CFLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64"
@@ -60,50 +78,61 @@ CFLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64"
 	--exec-prefix=/ \
 	--bindir=/bin \
 	--sbindir=/sbin \
+	--enable-crypto \
 	--libdir=/%{_lib}
 make %{?_smp_mflags} LIBTOOL=%{_bindir}/libtool
+pushd ntfsprogs
+make %{?_smp_mflags} extras
+popd
 
 %install
-rm -rf $RPM_BUILD_ROOT
-make DESTDIR=$RPM_BUILD_ROOT install
-rm -rf $RPM_BUILD_ROOT/%{_lib}/*.la
-rm -rf $RPM_BUILD_ROOT/%{_lib}/*.a
+rm -rf %{buildroot}
+make DESTDIR=%{buildroot} install
+rm -rf %{buildroot}/%{_lib}/*.la
+rm -rf %{buildroot}/%{_lib}/*.a
 
 # make the symlink an actual copy to avoid confusion
-rm -rf $RPM_BUILD_ROOT/sbin/mount.ntfs-3g
-cp -a $RPM_BUILD_ROOT/bin/ntfs-3g $RPM_BUILD_ROOT/sbin/mount.ntfs-3g
+rm -rf %{buildroot}/sbin/mount.ntfs-3g
+cp -a %{buildroot}/bin/ntfs-3g %{buildroot}/sbin/mount.ntfs-3g
 
 # Actually make some symlinks for simplicity...
 # ... since we're obsoleting ntfsprogs-fuse
-cd $RPM_BUILD_ROOT/bin
+pushd %{buildroot}/bin
 ln -s ntfs-3g ntfsmount
-cd $RPM_BUILD_ROOT/sbin
+popd
+pushd %{buildroot}/sbin
 ln -s mount.ntfs-3g mount.ntfs-fuse
 # And since there is no other package in Fedora that provides an ntfs 
 # mount...
 ln -s mount.ntfs-3g mount.ntfs
+popd
 
 # Compat symlinks
-mkdir -p $RPM_BUILD_ROOT%{_bindir}
-cd $RPM_BUILD_ROOT%{_bindir}
+mkdir -p %{buildroot}%{_bindir}
+pushd %{buildroot}%{_bindir}
 ln -s /bin/ntfs-3g ntfs-3g
 ln -s /bin/ntfsmount ntfsmount
+popd
 
 # Put the .pc file in the right place.
-mkdir -p $RPM_BUILD_ROOT%{_libdir}/pkgconfig/
-mv $RPM_BUILD_ROOT/%{_lib}/pkgconfig/libntfs-3g.pc $RPM_BUILD_ROOT%{_libdir}/pkgconfig/
+mkdir -p %{buildroot}%{_libdir}/pkgconfig/
+mv %{buildroot}/%{_lib}/pkgconfig/libntfs-3g.pc %{buildroot}%{_libdir}/pkgconfig/
 
 # We get this on our own, thanks.
-rm -rf $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}/README
+rm -rf %{buildroot}%{_defaultdocdir}/%{name}/README
 
-mkdir -p $RPM_BUILD_ROOT%{_datadir}/hal/fdi/policy/10osvendor/
-cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/hal/fdi/policy/10osvendor/
+mkdir -p %{buildroot}%{_datadir}/hal/fdi/policy/10osvendor/
+cp -a %{SOURCE1} %{buildroot}%{_datadir}/hal/fdi/policy/10osvendor/
+
+# Install the "extra" binaries
+for i in ntfsck ntfsdecrypt ntfsdump_logfile ntfsmftalloc ntfsmove ntfstruncate ntfswipe; do
+	install -m755 ntfsprogs/$i %{buildroot}/bin/
+done
 
 %clean
-rm -rf $RPM_BUILD_ROOT
+rm -rf %{buildroot}
 
 %post -p /sbin/ldconfig
-
 %postun -p /sbin/ldconfig
 
 %files
@@ -122,7 +151,9 @@ rm -rf $RPM_BUILD_ROOT
 %{_bindir}/ntfs-3g
 %{_bindir}/ntfsmount
 /%{_lib}/libntfs-3g.so.*
-%{_mandir}/man8/*
+%{_mandir}/man8/mount.lowntfs-3g.*
+%{_mandir}/man8/mount.ntfs-3g.*
+%{_mandir}/man8/ntfs-3g*
 %{_datadir}/hal/fdi/policy/10osvendor/20-ntfs-config-write-policy.fdi
 
 %files devel
@@ -131,7 +162,42 @@ rm -rf $RPM_BUILD_ROOT
 /%{_lib}/libntfs-3g.so
 %{_libdir}/pkgconfig/libntfs-3g.pc
 
+%files -n ntfsprogs
+%defattr(-,root,root,-)
+%doc AUTHORS COPYING CREDITS ChangeLog NEWS README
+/bin/ntfscat
+/bin/ntfscluster
+/bin/ntfscmp
+/bin/ntfsfix
+/bin/ntfsinfo
+/bin/ntfsls
+# Extras
+/bin/ntfsck
+/bin/ntfsdecrypt
+/bin/ntfsdump_logfile
+/bin/ntfsmftalloc
+/bin/ntfsmove
+/bin/ntfstruncate
+/bin/ntfswipe
+/sbin/mkfs.ntfs
+/sbin/mkntfs
+/sbin/ntfsclone
+/sbin/ntfscp
+/sbin/ntfslabel
+/sbin/ntfsresize
+/sbin/ntfsundelete
+%{_mandir}/man8/mkntfs.8*
+%{_mandir}/man8/mkfs.ntfs.8*
+%{_mandir}/man8/ntfs[^m][^o]*.8*
+
 %changelog
+* Thu Apr 14 2011 Tom Callaway <spot at fedoraproject.org> - 2:2011.4.12-1
+- update to 2011.4.12
+- pickup ntfsprogs and obsolete the old separate packages
+
+* Tue Feb 08 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2:2011.1.15-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
+
 * Tue Jan 25 2011 Tom Callaway <spot at fedoraproject.org> - 2:2011.1.15-1
 - update to 2011.1.15
 
diff --git a/sources b/sources
index 0aa3c38..85a757f 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-15a5cf5752012269fa168c24191f00e2  ntfs-3g-2011.1.15.tgz
+9c4ce318373b15332239a77a9d2a39fe  ntfs-3g_ntfsprogs-2011.4.12.tgz


More information about the scm-commits mailing list