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

#
# spec file for package gnome-disk-utility
#
# Copyright (c) 2011 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:        2.32.0
Release:        3
License:        LGPLv2.1+
Summary:        GNOME Disk management application
Url:            http://hal.freedesktop.org/releases/
Group:          Hardware/Other
Source:         %{name}-%{version}.tar.bz2
BuildRequires:  dbus-1-glib-devel
BuildRequires:  gdbm-devel
BuildRequires:  glib2-devel
BuildRequires:  gnome-doc-utils-devel
BuildRequires:  gtk-doc
BuildRequires:  libatasmart-devel
BuildRequires:  libavahi-glib-devel
BuildRequires:  libgnome-keyring-devel
BuildRequires:  libnotify-devel
BuildRequires:  libunique-devel
BuildRequires:  nautilus-devel
BuildRequires:  translation-update-upstream
BuildRequires:  udisks-devel
BuildRequires:  update-desktop-files
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Palimpsest is a disk management application, that supports partitioning,
file system creation, encryption, RAID, SMART monitoring, etc.

%package -n libgdu0
License:        LGPLv2.1+
Summary:        Shared libraries used by Palimpsest
Group:          Development/Libraries/C and C++
Recommends:     libgdu-lang
Requires:       udisks
# Needed to make lang package installable
Provides:       libgdu = %{version}

%description -n libgdu0
This package contains libraries that are used by the Palimpsest
disk management application. The libraries in this package do not
contain UI-related code.

%package -n libgdu-gtk0
License:        LGPLv2.1+
Summary:        Shared libraries used by Palimpsest
Group:          Development/Libraries/GNOME
Requires:       libgdu0 = %{version}

%description -n libgdu-gtk0
This package contains libraries that are used by the Palimpsest
disk management application. The libraries in this package contain
disk-related widgets for use in GTK+ applications.

%package -n libgdu-devel
License:        LGPLv2.1+
Summary:        Development files for libgdu
Group:          Development/Libraries/C and C++
Requires:       glib2-devel
Requires:       libgdu0 = %{version}

%description -n libgdu-devel
This package contains header files and libraries needed to
develop applications with libgdu.

%package -n libgdu-gtk-devel
License:        LGPLv2.1+
Summary:        Development files for libgdu-gtk
Group:          Development/Libraries/GNOME
Requires:       gtk2-devel
Requires:       libgdu-devel = %{version}
Requires:       libgdu-gtk0 = %{version}

%description -n libgdu-gtk-devel
This package contains header files and libraries needed to
develop applications with libgdu-gtk.

%lang_package -n libgdu
%prep
%setup -q
translation-update-upstream

%build
%configure --disable-static \
           --disable-scrollkeeper
make %{?jobs:-j%jobs}

%install
%makeinstall
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
%endif
find %{buildroot} -type f -name "*.la" -delete -print
%suse_update_desktop_file -G "Disk Utility" palimpsest System HardwareSettings
%suse_update_desktop_file gdu-notification-daemon
%find_lang %{name} %{?no_lang_C}

%clean
rm -rf %{buildroot}

%post
%desktop_database_post
%icon_theme_cache_post

%postun
%desktop_database_postun
%icon_theme_cache_postun

%post -n libgdu0
/sbin/ldconfig
%icon_theme_cache_post

%postun -n libgdu0
/sbin/ldconfig
%icon_theme_cache_postun

%post -n libgdu-gtk0 -p /sbin/ldconfig

%postun -n libgdu-gtk0 -p /sbin/ldconfig

%files
%defattr(-,root,root,-)
%doc README AUTHORS NEWS COPYING
%dir %{_datadir}/gnome/
%dir %{_datadir}/gnome/help/
%dir %{_datadir}/gnome/help/palimpsest/
%doc %{_datadir}/gnome/help/palimpsest/C/
%dir %{_datadir}/omf/
%dir %{_datadir}/omf/palimpsest/
%doc %{_datadir}/omf/palimpsest/palimpsest-C.omf
%{_libdir}/nautilus/extensions-2.0/*.so
%{_libexecdir}/gdu-format-tool
%{_libexecdir}/gdu-notification-daemon
%{_sysconfdir}/xdg/autostart/gdu-notification-daemon.desktop
%{_bindir}/palimpsest
%{_datadir}/applications/palimpsest.desktop
%{_datadir}/icons/hicolor/*/apps/nautilus-gdu.*
%{_datadir}/icons/hicolor/*/apps/palimpsest.*
%doc %{_datadir}/gnome/help/palimpsest
%doc %{_datadir}/omf/palimpsest

%files -n libgdu0
%defattr(-,root,root,-)
%doc README AUTHORS NEWS COPYING
%{_libdir}/libgdu.so.*
%{_datadir}/icons/hicolor/*/apps/*.png
%{_datadir}/icons/hicolor/scalable/apps/*.svg
%exclude %{_datadir}/icons/hicolor/*/apps/nautilus-gdu.*
%exclude %{_datadir}/icons/hicolor/*/apps/palimpsest.*

%files -n libgdu-gtk0
%defattr(-,root,root,-)
%{_libdir}/libgdu-gtk.so.*

%files -n libgdu-devel
%defattr(-,root,root,-)
%{_libdir}/libgdu.so
%{_libdir}/pkgconfig/gdu.pc
%dir %{_includedir}/gnome-disk-utility
%{_includedir}/gnome-disk-utility/gdu

%files -n libgdu-gtk-devel
%defattr(-,root,root,-)
%{_libdir}/libgdu-gtk.so
%{_libdir}/pkgconfig/gdu-gtk.pc
%{_includedir}/gnome-disk-utility/gdu-gtk

%files -n libgdu-lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by