Пакет gparted: Specfile

%def_with pic

%define Name GParted
Name: gparted
Version: 0.8.0
Release: alt1.1
Summary: %Name Partition Editor
Summary(ru_RU.CP1251): \xd0\xe5\xe4\xe0\xea\xf2\xee\xf0 \xf0\xe0\xe7\xe4\xe5\xeb\xee\xe2 %Name
Summary(uk_UA.CP1251): \xd0\xe5\xe4\xe0\xea\xf2\xee\xf0 \xf0\xee\xe7\xe4\xb3\xeb\xb3\xe2 %Name
License: %gpl2plus
Group: System/Configuration/Hardware
URL: http://%name.sourceforge.net/
Source0: %name-%version.tar
#http://prdownloads.sourceforge.net/%name/%name-%version.tar.bz2?download
Source1: %name-pam
Source2: %name-security
Patch0: %name-%version-%release.patch
Patch1: %name-0.8.0-alt-DSO.patch
#Patch1: %name-%version-led.patch
Packager: Led <led@altlinux.ru>
AutoReq: yes, noshell

BuildRequires(pre): rpm-build-licenses
BuildRequires: libparted-devel >= 1.7.1
BuildRequires: libgtkmm2-devel >= 2.8
BuildRequires: gcc-c++ libprogsreiserfs-devel libuuid-devel intltool
BuildRequires: perl-XML-Parser gnome-doc-utils librarian

%description
%Name stands for %Name 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 - %Name Partition Editor. \xce\xed \xe8\xf1\xef\xee\xeb\xfc\xe7\xf3\xe5\xf2 libparted \xe4\xeb\xff
\xee\xe1\xed\xe0\xf0\xf3\xe6\xe5\xed\xe8\xff \xe8 \xec\xe0\xed\xe8\xef\xf3\xeb\xff\xf6\xe8\xe9 \xf1 \xf3\xf1\xf2\xf0\xee\xe9\xf1\xf2\xe2\xe0\xec\xe8 \xe8 \xf2\xe0\xe1\xeb\xe8\xf6\xe0\xec\xe8 \xf0\xe0\xe7\xe4\xe5\xeb\xee\xe2, \xe0 \xf2\xe0\xea\xe6\xe5
\xed\xe5\xea\xee\xf2\xee\xf0\xfb\xe5 (\xed\xe5\xee\xe1\xff\xe7\xe0\xf2\xe5\xeb\xfc\xed\xfb\xe5) \xe8\xed\xf1\xf2\xf0\xf3\xec\xe5\xed\xf2\xfb (\xed\xe5 \xe2\xea\xeb\xfe\xf7\xe5\xed\xed\xfb\xe5 \xe2 libparted),
\xee\xe1\xe5\xf1\xef\xe5\xf7\xe8\xe2\xe0\xfe\xf9\xe8\xe5 \xef\xee\xe4\xe4\xe5\xf0\xe6\xea\xf3 \xf4\xe0\xe9\xeb\xee\xe2\xfb\xf5 \xf1\xe8\xf1\xf2\xe5\xec. \xdd\xf2\xe8 \xed\xe5\xee\xe1\xff\xe7\xe0\xf2\xe5\xeb\xfc\xed\xfb\xe5 \xef\xe0\xea\xe5\xf2\xfb
\xee\xe1\xed\xe0\xf0\xf3\xe6\xe8\xe2\xe0\xfe\xf2\xf1\xff \xe2\xee \xe2\xf0\xe5\xec\xff \xe2\xfb\xef\xee\xeb\xed\xe5\xed\xe8\xff \xe8 \xed\xe5 \xf2\xf0\xe5\xe1\xf3\xfe\xf2 \xef\xe5\xf0\xe5\xf1\xe1\xee\xf0\xea\xe8 %Name.
%Name \xed\xe0\xef\xe8\xf1\xe0\xed \xed\xe0 C++ \xf1 \xe8\xf1\xef\xee\xeb\xfc\xe7\xee\xe2\xe0\xed\xe8\xe5\xec gtkmm \xe2 \xea\xe0\xf7\xe5\xf1\xf2\xe2\xe5 \xe3\xf0\xe0\xf4\xe8\xf7\xe5\xf1\xea\xee\xe3\xee
\xe8\xed\xf1\xf2\xf0\xf3\xec\xe5\xed\xf2\xe0\xf0\xe8\xff. \xc3\xeb\xe0\xe2\xed\xe0\xff \xe7\xe0\xe4\xe0\xf7\xe0 - \xee\xf1\xf2\xe0\xe2\xe8\xf2\xfc GUI \xec\xe0\xea\xf1\xe8\xec\xe0\xeb\xfc\xed\xee \xef\xf0\xee\xf1\xf2\xfb\xec.

%description -l uk_UA.CP1251
%Name - %Name Partition Editor. ³\xed \xe2\xe8\xea\xee\xf0\xe8\xf1\xf2\xee\xe2\xf3\xba libparted \xe4\xeb\xff
\xe2\xe8\xff\xe2\xeb\xe5\xed\xed\xff \xf2\xe0 \xec\xe0\xed\xb3\xef\xf3\xeb\xff\xf6\xb3\xe9 \xe7 \xef\xf0\xe8\xf1\xf2\xf0\xee\xff\xec\xe8 \xb3 \xf2\xe0\xe1\xeb\xe8\xf6\xff\xec\xe8 \xf0\xe0\xe7\xe4\xb3\xeb\xb3\xe2, \xe0 \xf2\xe0\xea\xee\xe6
\xe4\xe5\xff\xea\xb3 (\xed\xe5\xee\xe1\xee\xe2'\xff\xe7\xea\xee\xe2\xb3) \xb3\xed\xf1\xf2\xf0\xf3\xec\xe5\xed\xf2\xe8 (\xed\xe5 \xe2\xea\xeb\xfe\xf7\xe5\xed\xb3 \xe2 libparted), \xff\xea\xb3
\xe7\xe0\xe1\xe5\xe7\xef\xe5\xf7\xf3\xfe\xf2\xfc \xef\xb3\xe4\xf2\xf0\xe8\xec\xea\xf3 \xf4\xe0\xe9\xeb\xee\xe2\xe8\xf5 \xf1\xe8\xf1\xf2\xe5\xec. ֳ \xed\xe5\xee\xe1\xee\xe2'\xff\xe7\xea\xee\xe2\xb3 \xef\xe0\xea\xe5\xf2\xe8
\xe2\xe8\xff\xe2\xeb\xff\xfe\xf2\xfc\xf1\xff \xef\xb3\xe4 \xf7\xe0\xf1 \xe2\xe8\xea\xee\xed\xe0\xed\xed\xff \xb3 \xed\xe5 \xef\xee\xf2\xf0\xe5\xe1\xf3\xfe\xf2\xfc \xef\xe5\xf0\xe5\xe1\xf3\xe4\xee\xe2\xe8 %Name.
%Name \xed\xe0\xef\xe8\xf1\xe0\xed\xee \xed\xe0 C++ \xe7 \xe2\xe8\xea\xee\xf0\xe8\xf1\xf2\xe0\xed\xed\xff\xec gtkmm \xe2 \xff\xea\xee\xf1\xf2\xb3 \xe3\xf0\xe0\xf4\xb3\xf7\xed\xee\xe3\xee
\xb3\xed\xf1\xf2\xf0\xf3\xec\xe5\xed\xf2\xe0\xf0\xb3\xfe. \xc3\xee\xeb\xee\xe2\xed\xe5 \xe7\xe0\xe2\xe4\xe0\xed\xed\xff - \xe7\xe0\xeb\xe8\xf8\xe8\xf2\xe8 GUI \xec\xe0\xea\xf1\xe8\xec\xe0\xeb\xfc\xed\xee \xef\xf0\xee\xf1\xf2\xe8\xec.


%prep
%setup
%patch0 -p1
%patch1 -p0


%build
%define _optlevel s
%autoreconf
%configure %{subst_with pic} --bindir=%_sbindir
%make_build
bzip2 --best --keep --force ChangeLog


%install
%make_install DESTDIR=%buildroot install

# usermode
install -pD -m640 %SOURCE1 %buildroot%_sysconfdir/pam.d/%name
install -pD -m640 %SOURCE2 %buildroot%_sysconfdir/security/console.apps/%name
install -d -m 0755 %buildroot%_bindir
ln -s %_bindir/consolehelper %buildroot%_bindir/%name

%find_lang --with-gnome %name


%files -f %name.lang
%doc AUTHORS ChangeLog.* README
%_sbindir/*
%_bindir/*
%_man8dir/*
%_sysconfdir/pam.d/*
%_sysconfdir/security/console.apps/*
%_iconsdir/hicolor/*/apps/*
%_desktopdir/*


%changelog
* Fri Jun 08 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 0.8.0-alt1.1
- Fixed build

* Thu Feb 17 2011 Mykola Grechukh <gns@altlinux.ru> 0.8.0-alt1
- 0.8.0

* Sat Dec 25 2010 Slava Dubrovskiy <dubrsl@altlinux.org> 0.7.1-alt1
- 0.7.1

* Sat Sep 25 2010 Michael Shigorin <mike@altlinux.org> 0.5.2-alt1
- rebuilt for Sisyphus (fixes: #23807)

* Sun Jul 25 2010 Led <led@altlinux.ru> 0.5.2-tmc2
- fixed ext4 support

* Sun Jul 04 2010 Led <led@altlinux.ru> 0.5.2-tmc1
- 0.5.2

* Sun Mar 21 2010 Michael Shigorin <mike@altlinux.org> 0.5.1-alt1
- rebuilt for Sisyphus on aris@' request;
  thanks led@ for gear repo

* Wed Mar 03 2010 Led <led@altlinux.ru> 0.5.1-tmc1
- 0.5.1

* Sun Jan 24 2010 Led <led@altlinux.ru> 0.5.0-tmc1
- 0.5.0

* Mon Dec 07 2009 Led <led@altlinux.ru> 0.4.8-alt2
- added nilfs2 support

* Sat Dec 05 2009 Led <led@altlinux.ru> 0.4.8-alt1
- 0.4.8

* Tue Oct 27 2009 Alexey Rusakov <ktirf@altlinux.org> 0.4.6-alt1.1
- thanks to led@ for keeping the package fresh in his git

* Tue Oct 20 2009 Led <led@altlinux.ru> 0.4.7-alt1
- 0.4.7

* Mon Aug 10 2009 Led <led@altlinux.ru> 0.4.6-alt1
- 0.4.6

* Mon May 11 2009 Led <led@altlinux.ru> 0.4.5-alt2
- added common class for FAT 16/32 and EXT 2/3/4
- updated BuildRequires

* Sat May 09 2009 Led <led@altlinux.ru> 0.4.5-alt1
- 0.4.5:
  + Improved crypt-luks detection
  + Improved dmraid device detection
  + Improved UUID detection
  + Enhanced to search for udevadm if udevsettle not found
  + Improved file system detection

* Fri Apr 03 2009 Led <led@altlinux.ru> 0.4.4-alt1
- 0.4.4:
  + enhanced move/resize functionality
  + added detection of LUKS encrypted partitions
  + added detection of btrfs file system
  + added initial support for dmraid devices

* Wed Mar 04 2009 Led <led@altlinux.ru> 0.4.3-alt2
- fixed mistranslation in ru.po (#19047) (thanx lav@)

* Sun Feb 15 2009 Led <led@altlinux.ru> 0.4.3-alt1
- 0.4.3:
  + fixed #18367

* Fri Dec 26 2008 Led <led@altlinux.ru> 0.4.1-alt2
- cleaned up spec
- fixed Exec in %name.desktop
- fixed ru and uk translations
- fixed descriptions and summaries

* Tue Dec 02 2008 Led <led@altlinux.ru> 0.4.1-alt1
- 0.4.1
- cleaned up spec

* Sun Sep 14 2008 Led <led@altlinux.ru> 0.3.9-alt1
- 0.3.9
- fixed %name.desktop

* Sat Aug 09 2008 Led <led@altlinux.ru> 0.3.8-alt2
- fixed %name.desktop

* Sun Jul 20 2008 Led <led@altlinux.ru> 0.3.8-alt1
- 0.3.8

* Mon Mar 31 2008 Led <led@altlinux.ru> 0.3.6-alt1
- 0.3.6

* Sun Mar 02 2008 Led <led@altlinux.ru> 0.3.5-alt2
- added icons

* Sun Feb 10 2008 Led <led@altlinux.ru> 0.3.5-alt1
- 0.3.5
- updated BuildRequires

* Sun Sep 16 2007 Led <led@altlinux.ru> 0.3.3-alt7
- added %name-0.3.3-disable_hal_dirty_hack.patch for disable dirty hack
  for HAL (fixed #12753)

* Wed Aug 15 2007 Led <led@altlinux.ru> 0.3.3-alt6
- rebuild with libparted-1.8.so.8
- fixed License

* Mon May 14 2007 Led <led@altlinux.ru> 0.3.3-alt5
- rebuild with libparted-1.8.so.7

* Sun Mar 25 2007 Led <led@altlinux.ru> 0.3.3-alt4
- rebuild with libparted-1.8.so.6

* Mon Mar 19 2007 Led <led@altlinux.ru> 0.3.3-alt3
- rebuild with libparted-1.8.so.4

* Tue Jan 16 2007 Led <led@altlinux.ru> 0.3.3-alt2
- rebuild with libparted-1.8.so.2

* Fri Dec 08 2006 Led <led@altlinux.ru> 0.3.3-alt1
- 0.3.3

* Mon Dec 04 2006 Led <led@altlinux.ru> 0.3.2-alt1
- 0.3.2:
  + added support for reading volumelabels (ext2/3 now)
- removed %name-0.3.1-configure.patch (fixed in upstream)
- fixed BuildRequires
- cleaned up %%setup due fixes in upstream
- fixed %name.desktop

* Thu Nov 23 2006 Led <led@altlinux.ru> 0.3.1-alt2
- rebuild with new libparted
- added %name-0.3.1-configure.patch
- fixed spec

* Tue Sep 12 2006 Led <led@altlinux.ru> 0.3.1-alt1
- 0.3.1
- fixed configure*

* Thu Sep 07 2006 Led <led@altlinux.ru> 0.3-alt1
- 0.3
- fixed BuildRequires

* Mon Jun 19 2006 Led <led@altlinux.ru> 0.2.5-alt4
- rebuild without changes for fixing unmets

* Tue May 30 2006 Led <led@altlinux.ru> 0.2.5-alt3
- rebuild with libparted-1.7.1

* Mon May 22 2006 Led <led@altlinux.ru> 0.2.5-alt2
- rebuild with libparted-1.7.0

* Mon May 22 2006 Led <led@altlinux.ru> 0.2.5-alt1
- fixed spec

* Mon May 15 2006 Led <led@altlinux.ru> 0.2.5-alt0.1
- 0.2.5
- removed unneedful BuildReq's

* Wed Apr 05 2006 Led <led@altlinux.ru> 0.2.4-alt0.1
- 0.2.4

* Wed Mar 29 2006 Led <led@altlinux.ru> 0.2.3-alt0.1
- 0.2.3

* Fri Feb 24 2006 Led <led@altlinux.ru> 0.2.2-alt0.1
- 0.2.2

* Fri Feb 17 2006 Led <led@altlinux.ru> 0.2.1-alt0.1
- 0.2.1
- removed unneedful BuildReq's

* Mon Jan 30 2006 Led <led@altlinux.ru> 0.2-alt1
- 0.2

* Mon Jan 23 2006 Led <led@altlinux.ru> 0.1-alt1
- 0.1
- removed empty NEWS from docs
- uk and ru Summary and description
- added usermode

* Sun Nov 27 2005 Alexey Rusakov <ktirf@altlinux.ru> 0.0.9-alt1
- new version
- the binary now lives in bindir instead of sbindir (it's an upstream change actually).

* Mon Sep 12 2005 ALT QA Team Robot <qa-robot@altlinux.org> 0.0.8-alt0.1.1
- rebuild with libparted.

* Sat Jan 29 2005 Yuri N. Sedunov <aris@altlinux.ru> 0.0.8-alt0.1
- 0.0.8

* Wed Dec 08 2004 Yuri N. Sedunov <aris@altlinux.ru> 0.0.7-alt0.1
- First build for Sisyphus.