%define name gparted %define version 0.4.5 %define release 1%{?_dist_release} Summary: Gnome Partition Editor Summary(ja): Gnome パーティション編集ツール Name: %{name} Version: %{version} Release: %{release} License: GPL Group: Applications/Administration URL: http://gparted.sourceforge.net Source0: %{name}-%{version}.tar.bz2 Source1: gparted-pam.d Source2: gparted-console.apps BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: gtk2-devel >= 2.6.0, gtkmm2-devel >= 2.8.0 BuildRequires: parted-devel >= 1.8.8, e2fsprogs-devel >= 1.41.0 BuildRequires: desktop-file-utils Requires: hal, e2fsprogs >= 1.41.0 Packager: kazutaka %description GParted stands for Gnome Partition Editor. Among other features it supports creating, resizing, moving and copying of partitions. %description -l ja GParted は Gnome 用のパーティション編集ツールです。特にパーティ ションの作成/リサイズ/移動/コピーをサポートしています。 %prep %setup -q %build %configure %__make %{?_smp_mflags} %install %__rm -rf ${RPM_BUILD_ROOT} %__make install DESTDIR=$RPM_BUILD_ROOT desktop-file-install --delete-original \ --vendor "" \ --dir %{buildroot}%{_datadir}/applications \ --mode 0644 \ %{buildroot}%{_datadir}/applications/%{name}.desktop sed -i 's#sbin#bin#' %{buildroot}%{_datadir}/applications/%{name}.desktop # Set up authentication via PAM. %__mkdir_p ${RPM_BUILD_ROOT}/%{_sysconfdir}/pam.d %__mkdir_p ${RPM_BUILD_ROOT}/%{_sysconfdir}/security/console.apps %__mkdir_p ${RPM_BUILD_ROOT}/%{_bindir} %__cp %{SOURCE1} ${RPM_BUILD_ROOT}/%{_sysconfdir}/pam.d/gparted %__cp %{SOURCE2} ${RPM_BUILD_ROOT}/%{_sysconfdir}/security/console.apps/gparted %__ln_s consolehelper ${RPM_BUILD_ROOT}/%{_bindir}/gparted %find_lang %{name} %clean %__rm -rf ${RPM_BUILD_ROOT} %preun if [ $1 -ge 0 ]; then if [ -a %{_datadir}/hal/fdi/policy/gparted-disable-automount.fdi ]; then rm -rf %{_datadir}/hal/fdi/policy/gparted-disable-automount.fdi fi fi %files -f %{name}.lang %defattr(-,root,root) %doc AUTHORS COPYING ChangeLog README %config(noreplace) %{_sysconfdir}/pam.d/gparted %config(noreplace) %{_sysconfdir}/security/console.apps/gparted %{_bindir}/gparted %{_sbindir}/gparted %{_sbindir}/gpartedbin %{_datadir}/applications/gparted.desktop %{_datadir}/gnome/help/gparted %{_datadir}/icons/hicolor/16x16/apps/gparted.png %{_datadir}/icons/hicolor/22x22/apps/gparted.png %{_datadir}/icons/hicolor/24x24/apps/gparted.png %{_datadir}/icons/hicolor/32x32/apps/gparted.png %{_datadir}/icons/hicolor/48x48/apps/gparted.png %{_datadir}/icons/hicolor/scalable/apps/gparted.svg %{_datadir}/omf/gparted %{_mandir}/man8/gparted.* %changelog * Tue May 19 2009 Kazutaka HARADA 0.4.5-1 - new upstream release * Sun May 03 2009 Kazutaka HARADA 0.4.4-1 - new upstream release - add mimimun version requiment for e2fsprogs >= 1.41.0 - add Packager tag * Tue Aug 19 2008 Daisuke SUZUKI 0.3.8-1 - new upstream release - build with parted-1.8.8 * Sat Apr 05 2008 Kazutaka HARADA 0.3.6-1 - new upstream release. - apply new versioning policy. * Sun Mar 02 2008 Kazutaka HARADA 0.3.5-0vl2 - rebuild for VineSeed. * Sun Mar 02 2008 Kazutaka HARADA 0.3.5-0vl1 - new upstream release. * Sun Mar 02 2008 Kazutaka HARADA 0.3.5-0vl1 - new upstream release. * Sat May 19 2007 Kazutaka HARADA 0.3.3-0vl2 - rebuild with new environment/toolchain. * Tue Dec 12 2006 Kazutaka HARADA 0.3.3-0vl1 - new upstream release. - add required parted version >= 1.7.1. - update japanese translation. * Thu Jun 8 2006 Kazutaka HARADA 0.2.5-0vl2 - add GnuPG signature. * Wed Jun 7 2006 Kazutaka HARADA 0.2.5-0vl1 - new upstream release. * Fri May 5 2006 Kazutaka HARADA 0.2.3-0vl3 - update ja.po. * Wed May 3 2006 Ryoichi INAGAKI 0.2.3-0vl2 - rebuilt with parted 1.6.25.1 * Tue Apr 27 2006 Kazutaka HARADA 0.2.3-0vl1 - initial build for VineSeed Plus.