%define libname lib%{name} Name: ntfs-3g Version: 2011.1.15 Release: 1mamba Epoch: 1 Summary: A read-write NTFS driver Group: System/Kernel and Hardware/Drivers Vendor: openmamba Distribution: openmamba Packager: Stefano Cotta Ramusino URL: http://www.tuxera.com/community/ Source: http://tuxera.com/opensource/ntfs-3g-%{version}.tgz Source1: ntfs-3g-policy Patch: ntfs-3g-2010.3.6-nomtab.patch License: GPL Requires: %{libname} = %{?epoch:%epoch:}%{version}-%{release} Requires: fuse ## AUTOBUILDREQ-BEGIN BuildRequires: fuse BuildRequires: glibc-devel ## AUTOBUILDREQ-END BuildRequires: libfuse-devel BuildRoot: %{_tmppath}/%{name}-%{version}-root %description The NTFS-3G driver is an open source, GPL licensed, third generation Linux NTFS driver for 32-bit, little-endian architectures which was implemented by the Linux-NTFS project. It provides full read-write access to NTFS, excluding access to encrypted files, writing compressed files, changing file ownership, access right. Technically it's based on and a major improvement to the third generation Linux NTFS driver, ntfsmount. The improvements includes functionality, quality and performance enhancements. %package -n %{libname} Summary: NTFS-3G library Group: System/Libraries %description -n %{libname} The NTFS-3G driver library. %package -n %{libname}-devel Summary: Devel package for %{libname} Group: Development/Libraries Requires: %{libname} = %{?epoch:%epoch:}%{version}-%{release} %description -n %{libname}-devel The NTFS-3G driver library. This package contains static libraries and header files need for development. %prep %setup -q #%patch -p1 %build %configure \ --disable-ldconfig %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall install -D -m 644 %{S:1} \ %{buildroot}%{_datadir}/hal/fdi/policy/10osvendor/10-ntfs-3g-policy.fdi rm -rf %{buildroot}%{_defaultdocdir}/ntfs-3g %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post tmpdir=`mktemp -d /tmp/%{name}.XXXXXX` || exit 1 trap 'ret=$?; rm -rf $tmpdir && exit $ret' 0 trap '(exit $?); exit' 1 2 13 15 tmpfstab=`env TMPDIR="" mktemp -p $tmpdir tmpfile.XXXXXX` || exit 1 [ -e /etc/fstab ] && cp /etc/fstab $tmpfstab || touch /etc/fstab while read fs mount_point fstype options dump fsck_order ignore; do case $fs in /dev/*) [ "$fstype" = ntfs-3g ] && continue if [ "$fstype" != ntfs ]; then devdisk="${fs/[0-9]*/}" devfstype=$( /sbin/fdisk -l $devdisk 2>/dev/null | \ sed -n "/^${fs//\//\\/}/{ s,\*,,; # remove the star (bootable partition) # select the 5th column (fs id) s/\([^ ]*[ ]*\)\{4\}\([^ ]*\).*/\2/p}" ) [ "$devfstype" = 7 ] || continue fi options="noauto,users,umask=002" [ "$LANG" ] && options="$options,locale=$LANG" sed -i "\@^$fs[ \t]*@d" /etc/fstab 2>/dev/null echo "$fs $mount_point ntfs-3g $options 0 0" >> /etc/fstab ;; esac done < $tmpfstab > $tmpfstab : %postun #erase if [ $1 -eq 0 ]; then tmpdir=`mktemp -d /tmp/%{name}.XXXXXX` || exit 1 trap 'ret=$?; rm -rf $tmpdir && exit $ret' 0 trap '(exit $?); exit' 1 2 13 15 tmpfstab=`env TMPDIR="" mktemp -p $tmpdir tmpfile.XXXXXX` || exit 1 [ -e /etc/fstab ] && cp /etc/fstab $tmpfstab || touch /etc/fstab while read fs mount_point fstype options dump fsck_order ignore; do case $fs in /dev/*) [ "$fstype" = ntfs-3g ] || continue options="noauto,user,ro,umask=002" sed -i "\@^$fs[ \t]*@d" /etc/fstab 2>/dev/null echo "$fs $mount_point auto $options 0 0" >> /etc/fstab ;; esac done < $tmpfstab > $tmpfstab fi : %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig %files %defattr(-,root,root) %{_bindir}/ntfs-3g* %{_bindir}/lowntfs-3g* %attr(754,root,root) /sbin/mount.ntfs-3g %attr(754,root,root) /sbin/mount.lowntfs-3g %{_datadir}/hal/fdi/policy/10osvendor/10-ntfs-3g-policy.fdi %{_mandir}/man8/*ntfs-3g* %doc AUTHORS COPYING.LIB CREDITS ChangeLog NEWS README %files -n %{libname} %defattr(-,root,root) %{_libdir}/libntfs-3g.so.* %files -n %{libname}-devel %defattr(-,root,root) %{_includedir}/ntfs-3g %{_libdir}/libntfs-3g.a %{_libdir}/libntfs-3g.la %{_libdir}/libntfs-3g.so %{_libdir}/pkgconfig/libntfs-3g.pc %changelog * Tue Jan 25 2011 Automatic Build System 2011.1.15-1mamba - automatic update by autodist * Fri Oct 08 2010 Automatic Build System 2010.10.2-1mamba - automatic update to 2010.10.2 by autodist * Mon Aug 09 2010 Automatic Build System 2010.8.8-1mamba - automatic update to 2010.8.8 by autodist * Sat May 22 2010 Automatic Build System 2010.5.16-1mamba - automatic update to 2010.5.16 by autodist * Sun Apr 11 2010 Silvan Calarco 2010.3.6-2mamba - removed duplicates of library in libntfs-3g-devel * Mon Mar 29 2010 Stefano Cotta Ramusino 2010.3.6-1mamba - update to 2010.3.6 * Mon Jan 18 2010 Automatic Build System 2010.1.16-1mamba - automatic update to 2010.1.16 by autodist * Tue Nov 17 2009 Automatic Build System 2009.11.14-1mamba - automatic update to 2009.11.14 by autodist * Fri Apr 03 2009 Silvan Calarco 2009.4.4-1mamba - automatic update to 2009.4.4 by autodist * Fri Mar 27 2009 Silvan Calarco 2009.3.8-1mamba - automatic update to 2009.3.8 by autodist * Thu Feb 12 2009 Silvan Calarco 2009.2.1-1mamba - automatic update to 2009.2.1 by autodist * Fri Jan 23 2009 Silvan Calarco 2009.1.1-1mamba - automatic update to 2009.1.1 by autodist * Mon Dec 01 2008 Silvan Calarco 1.5130-1mamba - automatic update to 1.5130 by autodist * Tue Oct 14 2008 Silvan Calarco 1.5012-1mamba - automatic update to 1.5012 by autodist * Fri Sep 19 2008 Silvan Calarco 1.2918-1mamba - automatic update to 1.2918 by autodist * Fri Aug 29 2008 Silvan Calarco 1.2812-1mamba - update to 1.2812 * Mon Mar 10 2008 Silvan Calarco 1.2310-1mamba - update to 1.2310 * Sat Nov 17 2007 Stefano Cotta Ramusino 1.1104-1mamba - update to 1.1104 * Sat Aug 25 2007 Stefano Cotta Ramusino 1.810-1mamba - update to 1.810 - enabled hal backends to use ntfs-3g instead of standard ntfs driver * Sun May 27 2007 Stefano Cotta Ramusino 1.516-2mamba - bumped to epoch 1 - added %%post and %%postun scripts to enable/disable writing on ntfs partitions * Mon May 21 2007 Stefano Cotta Ramusino 1.516-1mamba - update to 1.516 * Wed Apr 25 2007 Stefano Cotta Ramusino 1.417-1mamba - update to 1.417 * Mon Jul 17 2006 Stefano Cotta Ramusino 20070714-1qilnx - package created by autospec