From 492d37ffa820c364a61aa06d8a2c0ef5b6804b1c Mon Sep 17 00:00:00 2001 From: Tom Callaway Date: Mon, 21 Jan 2008 15:36:41 +0000 Subject: [PATCH] 1.2121-RC --- .cvsignore | 2 +- ntfs-3g.spec | 37 ++++++++++++++++++++++++++++++++----- sources | 2 +- 3 files changed, 34 insertions(+), 7 deletions(-) diff --git a/.cvsignore b/.cvsignore index a32f4a1..96d4fd4 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -ntfs-3g-1.1120.tgz +ntfs-3g-1.2121-RC.tgz diff --git a/ntfs-3g.spec b/ntfs-3g.spec index 434aa8c..644f248 100644 --- a/ntfs-3g.spec +++ b/ntfs-3g.spec @@ -1,14 +1,21 @@ +# Pass --with externalfuse to compile against system fuse lib +# Default is internal fuse-lite. +%define with_externalfuse %{?_with_externalfuse:1}%{!?_with_externalfuse:0} + Name: ntfs-3g Summary: Linux NTFS userspace driver -Version: 1.1120 -Release: 1%{?dist} +Version: 1.2121 +Release: 0.1.RC%{?dist} License: GPLv2+ Group: System Environment/Base -Source0: http://www.ntfs-3g.org/%{name}-%{version}.tgz +Source0: http://www.ntfs-3g.org/%{name}-%{version}-RC.tgz URL: http://www.ntfs-3g.org/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +%if %{with_externalfuse} BuildRequires: fuse-devel Requires: fuse +%endif +Requires: pkgconfig Epoch: 2 Provides: ntfsprogs-fuse = %{epoch}:%{version}-%{release} Obsoletes: ntfsprogs-fuse @@ -38,10 +45,20 @@ Headers and libraries for developing applications that use ntfs-3g functionality. %prep -%setup -q +%setup -q -n %{name}-%{version}-RC %build -%configure --disable-static --disable-ldconfig --exec-prefix=/ --bindir=/bin --libdir=/%{_lib} +CFLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64" +%configure \ + --disable-static \ + --disable-ldconfig \ +%if 0%{?_with_externalfuse:1} + --with-fuse=external \ +%endif + --exec-prefix=/ \ + --bindir=/bin \ + --sbindir=/sbin \ + --libdir=/%{_lib} make %{?_smp_mflags} %install @@ -69,6 +86,12 @@ cd $RPM_BUILD_ROOT%{_bindir} ln -s /bin/ntfs-3g ntfs-3g ln -s /bin/ntfsmount ntfsmount +# 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/ + +# We get this on our own, thanks. +rm -rf $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}/README %clean rm -rf $RPM_BUILD_ROOT @@ -85,6 +108,7 @@ rm -rf $RPM_BUILD_ROOT /sbin/mount.ntfs-fuse /bin/ntfs-3g /bin/ntfsmount +/bin/ntfs-3g.probe %{_bindir}/ntfs-3g %{_bindir}/ntfsmount /%{_lib}/libntfs-3g.so.* @@ -94,10 +118,13 @@ rm -rf $RPM_BUILD_ROOT %defattr(-,root,root,-) %{_includedir}/ntfs-3g/ /%{_lib}/libntfs-3g.so +%{_libdir}/pkgconfig/libntfs-3g.pc %changelog * Tue Nov 20 2007 Tom "spot" Callaway 2:1.1120-1 - bump to 1.1120 +- default to fuse-lite (internal to ntfs-3g), but enable --with externalfuse + as an option * Thu Nov 8 2007 Tom "spot" Callaway 2:1.1104-1 - bump to 1.1104 diff --git a/sources b/sources index 70dbe8b..2500e93 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -9561f07a6a5faa0fb6615727c0003b26 ntfs-3g-1.1120.tgz +adf5b08d02239e2045f6d8bf777ba16e ntfs-3g-1.2121-RC.tgz