Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37774112
en ru br
ALT Linux repos
S:1.5.0-alt1
5.0: 0.4.3-alt2
4.1: 0.3.9-alt0.M41.1
4.0: 0.3.3-alt5.M40.1
3.0: 0.0.8-alt0.1.1

Other repositories
Upstream:0.3.3

Group :: System/Configuration/Hardware
RPM: gparted

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%def_with pic

%define Name GParted
Name: gparted
Version: 0.3.3
Release: alt5.M40.1
Summary: Gnome Partition Editor
License: GPL2+
Group: System/Configuration/Hardware
URL: http://%name.sourceforge.net/
Source0: %name-%version.tar.bz2
#http://prdownloads.sourceforge.net/%name/%name-%version.tar.bz2?download
Source1: %name-pam
Source2: %name-security
Patch: %name-0.3.3-disable_hal_dirty_hack.patch

BuildRequires: libparted-devel >= 1.7.1
BuildRequires: libgtkmm2-devel >= 2.8
BuildRequires: fontconfig freetype2 gcc-c++ glib2-devel glibc-devel
BuildRequires: libatk-devel libcairo-devel libe2fs-devel
BuildRequires: libglibmm-devel libgtk+2-devel libpango-devel pkg-config
BuildRequires: perl-XML-Parser parted libprogsreiserfs-devel
BuildRequires: libsigc++2.0-devel libstdc++-devel

%description
%Name stands for Gnome Partition Editor. It uses libparted to detect
and manipulate devices and partitiontables while several (optional)
filesystemtools provide support for filesystems not included in
libparted. These optional packages will be detected at runtime and
don't require a rebuild of %Name.
%Name is written in C++ and uses gtkmm as Graphical Toolkit. The
general approach is to keep the GUI as simple as possible.

%description -l ru_RU.CP1251
%Name - Gnome Partition Editor. Он использует libparted для
обнаружения и манипуляций с устройствами и таблицами разделов, а также
некоторые (опционально) инструменты (не включенные в libparted) для
файловых систем, обеспечивающие их поддержку. Эти опциональные пакеты
обнаруживаются во время выполнения и не требуют пересборки %Name.
%Name написан на C++ и использует gtkmm в качестве графического
тулкита. Главная задача - оставить GUI максимально простым.

%description -l uk_UA.CP1251
%Name - Gnome Partition Editor. Він використовує libparted для
виявлення та маніпуляцій з пристроями і таблицями разділів, а також
деякі (опціонально) інструменти (не включені в libparted) для файлових
систем, що забезпечують їх підтримку. Ці опціональні пакети виявляються
під час виконання і не потребують перезбирання %Name.
%Name написаний на C++ і вікористовує gtkmm в якості графічного
тулкіту. Головне завдання - залишити GUI максимально простим.


%prep
%setup -q
%patch -p1
subst '/^Categories=/ s/GNOME/GTK2/' %name.desktop*


%build
%configure %{subst_with pic} --bindir=%_sbindir
%make_build


%install
%make_install DESTDIR=%buildroot install
install -d -m755 %buildroot%_bindir

# usermode

install -pD -m640 %SOURCE1 %buildroot%_sysconfdir/pam.d/%name
install -pD -m640 %SOURCE2 %buildroot%_sysconfdir/security/console.apps/%name
ln -s %_bindir/consolehelper %buildroot%_bindir/%name
bzip2 --best --keep --force ChangeLog

#menu

%ifndef _desktopdir
install -d %buildroot%_menudir
cat > %buildroot%_menudir/%name <<__MENU__
?package(%name): command="%name" needs="X11" \
icon="%name.png" section="Configuration/Hardware" \
title="%Name" \
genericname="Partition Editor" \
longtitle="GUI partition editor"
__MENU__
%endif

%find_lang %name


%post
%update_menus


%postun
%clean_menus


%files -f %name.lang
%doc AUTHORS ChangeLog.* README
%_sbindir/*
%_bindir/*
%_sysconfdir/pam.d/*
%_sysconfdir/security/console.apps/*
%_pixmapsdir/*
%ifdef _desktopdir
%_desktopdir/*
%else
%_menudir/*
%endif


%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin