gparted/gparted.spec
Dominique Leuenberger c7f5f5fcbb Accepting request 1067098 from home:polslinux:branches:devel:openSUSE:Factory:Apps
- Update to 1.5.0: 
  * Fix path used to resize btrfs needs to be a directory
  * Fix crash when copying NTFS to starting beyond 2 TiB
  * Enable repair when checking exfat file systems
  * Fix undeclared identifier 'basename' build failure with musl libc (!99)
  * Fix NULL == 0 assumption in call to ped_partition_flag_next() (!100)
  * Fix make distcheck failure found in GitLab CI job unbuntu_test (!103)
  * Add Alpine Linux CI jobs and resolve FAT16/32 label and UUID issues (!104)
  * Update used btrfs file system commands, btrfs-progs 4.5 required (!105)
  * Update AC_PROG_LIBTOOL to LT_INIT in configure.ac (!106)
  * Migrate from intltool to gettext translation (!107)
  * Increase minimum XFS size to 300 MiB (#217, !110)
  * Erase all Promise FastTrack RAID signatures (#220, !111)

OBS-URL: https://build.opensuse.org/request/show/1067098
OBS-URL: https://build.opensuse.org/package/show/devel:openSUSE:Factory:Apps/gparted?expand=0&rev=31
2023-02-27 08:13:34 +00:00

122 lines
3.7 KiB
RPMSpec

#
# spec file for package gparted
#
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: gparted
Version: 1.5.0
Release: 0
Summary: Gnome Partition Editor
License: GPL-2.0-only
Group: System/Filesystems
URL: http://gparted.sourceforge.net/
Source0: http://downloads.sourceforge.net/project/gparted/gparted/gparted-%{version}/%{name}-%{version}.tar.gz
Source1: http://downloads.sourceforge.net/project/gparted/gparted/gparted-%{version}/%{name}-%{version}.tar.gz.sig
Source98: %{name}.policy
Source99: %{name}.keyring
BuildRequires: polkit-devel
BuildRequires: e2fsprogs-devel
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: intltool
BuildRequires: perl-XML-Parser
BuildRequires: pkgconfig
BuildRequires: polkit
BuildRequires: /usr/bin/pkexec
BuildRequires: update-desktop-files
BuildRequires: xfsprogs-devel
BuildRequires: yelp-tools
BuildRequires: pkgconfig(glibmm-2.4) >= 2.32
BuildRequires: pkgconfig(gthread-2.0)
BuildRequires: pkgconfig(gtkmm-3.0) >= 3.4.0
BuildRequires: pkgconfig(libparted) >= 2.2
BuildRequires: pkgconfig(sigc++-2.0) >= 2.5.1
Requires: gpart
Requires: hdparm
Requires: mtools
Requires: parted
Requires: polkit
Requires: util-linux
Requires: xdg-utils
Recommends: btrfsprogs >= 4.1
Recommends: cryptsetup
Recommends: e2fsprogs
Recommends: exfatprogs
Recommends: hfsutils
Recommends: jfsutils
Recommends: nilfs-utils
Recommends: ntfsprogs
Recommends: udftools
Recommends: xfsprogs
Requires: /usr/bin/pkexec
%if !0%{?is_opensuse}
BuildRequires: translation-update-upstream
%endif
%description
GParted is a utility for creating, destroying, resizing, moving,
checking and copying partitions, and the filesystems on them. This is
useful for creating space for new operating systems, reorganizing
disk usage, copying data residing on hard disks and mirroring one
partition with another (disk imaging).
%lang_package
%prep
%autosetup -p1
%if !0%{?is_opensuse}
translation-update-upstream
%endif
%build
export GKSUPROG="pkexec"
%configure \
--enable-libparted-dmraid \
--enable-xhost-root
%make_build
%install
%make_install
install -Dm0644 %{SOURCE98} %{buildroot}%{_datadir}/polkit-1/actions/org.opensuse.policykit.%{name}.policy
# Here we remove upstream policy file since we have our own
rm %{buildroot}%{_datadir}/polkit-1/actions/org.gnome.%{name}.policy
%suse_update_desktop_file %{name}
%fdupes %{buildroot}%{_datadir}
%find_lang %{name} %{?no_lang_C}
%files
%doc README ChangeLog AUTHORS NEWS
%license COPYING
%{_bindir}/%{name}
%{_libexecdir}/%{name}bin
%{_mandir}/man8/%{name}.8%{?ext_man}
%dir %{_datadir}/appdata
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*x*/apps/%{name}.png
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_datadir}/polkit-1/actions/org.opensuse.policykit.%{name}.policy
%{_datadir}/help/C/%{name}/index.docbook
%{_datadir}/help/C/%{name}/figures/gparted_window.png
%dir %{_datadir}/help/C/%{name}
%dir %{_datadir}/help/C/%{name}/figures
%files lang -f %{name}.lang
%changelog