Name: ntfs-config Version: 0.5.5 Release: 1%{?dist} Summary: A front-end to Enable/disable NTFS write support Group: Applications/System License: GPL URL: http://givre.cabspace.com/ntfs-config/ Source0: http://givre.cabspace.com/ntfs-config/download/%{name}-%{version}.tar.gz Source1: %{name}.pam Source2: %{name}.consoleapps #Patch0: %{name}-desktop.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: gettext, perl-XML-Parser Buildrequires: hal-devel, libglade2-devel BuildRequires: desktop-file-utils Requires: ntfs-3g Requires: redhat-artwork, usermode %description ntfs-config will allow you to enable/disable write support for external and/or internal device with only two click. This will configure your system to use the new ntfs-3g driver instead of the current read-only kernel one. %prep %setup -q -n %{name}-%{version} #Remove gksu from .desktop files to match with fedora authentication's program #%patch0 -p 1 ##applicable for oldest version sed -e 's|gksu ntfs-config|ntfs-config|g' -i data/ntfs-config.desktop.in %build %configure make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_sbindir} mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/pam.d mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/security/console.apps make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p -Dm 644" desktop-file-install \ --vendor "" \ --dir $RPM_BUILD_ROOT/%{_datadir}/applications \ --mode 0644 \ $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop #move ntfs-config executable file in the right location to #fix rpmlint error. mv $RPM_BUILD_ROOT%{_bindir}/%{name} $RPM_BUILD_ROOT%{_sbindir}/ #Add PAM authentication to match with fedora authentication's program ln -s consolehelper $RPM_BUILD_ROOT%{_bindir}/%{name} install -Dm 644 %{SOURCE1} $RPM_BUILD_ROOT/%{_sysconfdir}/pam.d/%{name} install -Dm 644 %{SOURCE2} $RPM_BUILD_ROOT/%{_sysconfdir}/security/console.apps/%{name} %find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT %files -f %{name}.lang %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING README TODO %{_sbindir}/%{name} %{_bindir}/%{name} %{_datadir}/%{name}/ %{_datadir}/applications/%{name}.desktop %{_mandir}/man8/%{name}* %config(noreplace) %{_sysconfdir}/pam.d/%{name} %config(noreplace) %{_sysconfdir}/security/console.apps/%{name} %changelog * Thu Mar 01 2007 Xavier Lamien - 0.5.5-1 - Updated release. - Disabled patch0 that doesn't works with new release. * Mon Feb 13 2007 Xavier Lamien - 0.5.4-2 - Added pam configuration as source files instead of use echo command. - Added timestamp in install section. - Removed "--add-categories" from "desktop-file-install" command. - Added missing documentation in "doc". - Removed some BR. * Thu Feb 08 2007 Xavier Lamien - 0.5.4-1.fc6 - New : check if ntfs-3g is install before starting the app. - Added a --revert option that allow users to revert all changes made by ntfs-config. - Added new translations. * Fri Jan 26 2007 Xavier Lamien - 0.5.2-1.fc6 - Improved debugging output. - Added a manpage - Fixed typo when searching for an ntfs kernel driver. - Added Turkish translation. - Added Dutch translation. - Added Swedish translation. * Tue Jan 23 2007 Xavier Lamien - 0.5-1.fc6 - Added PAM authentication. - Added new feature for fedora users. - Fixed ntfs-config policy for removable device. - Fixed fdi rules which should only apply for hotpluggable device. - Fixed lisence which was mix up of LGPL and GPL, it's a pure GPL now. - Fixed some spelling mistakes. - Updated french translation. - Added italien translation. - Added chinese translation. * Thu Jan 18 2007 Xavier Lamien - 0.4.1-1.fc6 - Initiale RPM release.