File gnome-disk-utility.spec of Package gnome-disk-utility

#
# spec file for package gnome-disk-utility
#
# Copyright (c) 2013 SUSE LINUX Products 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.9.0
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.9/%{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.5.8
BuildRequires:  pkgconfig(libcanberra-gtk3) >= 0.1
BuildRequires:  pkgconfig(liblzma) >= 5.0
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
# Lower liblzma dependency to 5.0; fail if it's no longer needed.
grep "LIBLZMA_REQUIRED=5.1.0" configure.ac
sed -i "s:LIBLZMA_REQUIRED=5.1.0:LIBLZMA_REQUIRED=5.0:g" configure*
translation-update-upstream

%build
%configure \
        --disable-static
make %{?_smp_mflags} V=1

%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
%desktop_database_post
%icon_theme_cache_post
%icon_theme_cache_post HighContrast

%postun
%desktop_database_postun
%icon_theme_cache_postun
%icon_theme_cache_postun HighContrast

%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}/gnome-disk-utility/
%{_datadir}/icons/hicolor/*/apps/gnome-disks*
%{_datadir}/icons/HighContrast/
%{_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
openSUSE Build Service is sponsored by