File gnome-disk-utility.spec of Package gnome-disk-utility
#
# spec file for package gnome-disk-utility
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: gnome-disk-utility
Version: 3.16.2
Release: 0
Summary: Disks application for dealing with storage devices
License: GPL-2.0+
Group: Hardware/Other
Url: http://hal.freedesktop.org/releases/
Source: http://download.gnome.org/sources/gnome-disk-utility/3.16/%{name}-%{version}.tar.xz
BuildRequires: docbook-xsl-stylesheets
BuildRequires: intltool
BuildRequires: translation-update-upstream
BuildRequires: update-desktop-files
BuildRequires: xsltproc
BuildRequires: pkgconfig(dvdread) >= 4.2.0
BuildRequires: pkgconfig(gio-unix-2.0) >= 2.31.0
BuildRequires: pkgconfig(gmodule-2.0)
BuildRequires: pkgconfig(gnome-settings-daemon) >= 3.6.0
BuildRequires: pkgconfig(gtk+-3.0) >= 3.12.0
BuildRequires: pkgconfig(libcanberra-gtk3) >= 0.1
BuildRequires: pkgconfig(liblzma) >= 5.0.5
BuildRequires: pkgconfig(libnotify) >= 0.7
BuildRequires: pkgconfig(libsecret-1) >= 0.7
BuildRequires: pkgconfig(pwquality) >= 1.0.0
BuildRequires: pkgconfig(udisks2) >= 2.1.1
Requires: udisks2
Recommends: %{name}-lang
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The gnome-disk-utility project provides the Disks application for
dealing with storage devices.
%lang_package
%prep
%setup -q
translation-update-upstream
%build
%configure \
--disable-static
make %{?_smp_mflags}
%install
%make_install
find %{buildroot} -type f -name '*.la' -delete -print
%suse_update_desktop_file -r -G "Disk Utility" gnome-disks GNOME GTK System HardwareSettings
%suse_update_desktop_file -r -G "Disk Utility" gnome-disk-image-mounter GNOME GTK System HardwareSettings
%suse_update_desktop_file -r -G "Disk utility" gnome-disk-image-writer GNOME GTK System HardwareSettings
%find_lang %{name} %{?no_lang_C}
%clean
rm -rf %{buildroot}
%post
%glib2_gsettings_schema_post
%desktop_database_post
%icon_theme_cache_post
%postun
%glib2_gsettings_schema_postun
%desktop_database_postun
%icon_theme_cache_postun
%files
%defattr(-,root,root,-)
%doc README AUTHORS NEWS COPYING
%{_bindir}/gnome-disks
%{_bindir}/gnome-disk-image-mounter
%{_datadir}/applications/gnome-disks.desktop
%{_datadir}/applications/gnome-disk-image-mounter.desktop
%{_datadir}/applications/gnome-disk-image-writer.desktop
%{_datadir}/glib-2.0/schemas/org.gnome.Disks.gschema.xml
%{_datadir}/glib-2.0/schemas/org.gnome.settings-daemon.plugins.gdu-sd.gschema.xml
%{_datadir}/icons/hicolor/*/apps/gnome-disks*
%{_libdir}/gnome-settings-daemon-3.0/gdu-sd-plugin.gnome-settings-plugin
%{_libdir}/gnome-settings-daemon-3.0/libgdu-sd.so
%{_mandir}/man1/gnome-disk-image-mounter.1%{?ext_man}
%{_mandir}/man1/gnome-disks.1%{?ext_man}
%files lang -f %{name}.lang
%changelog