SHA256
1
0
forked from pool/baobab
baobab/baobab.spec

95 lines
3.1 KiB
RPMSpec

#
# spec file for package baobab
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2011 Dominique Leuenberger, Amsterdam, The Netherlands
#
# 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: baobab
Version: 3.3.2
Release: 0
# FIXME: the %%{_datadir}/help/$locale/ files be found by %%find_lang
Summary: Disk Usage Analyzer
License: GPL-2.0+
Group: System/GUI/GNOME
Url: http://www.gnome.org
Source: http://download.gnome.org/sources/baobab/3.3/%{name}-%{version}.tar.xz
BuildRequires: intltool
BuildRequires: update-desktop-files
BuildRequires: yelp-tools
BuildRequires: pkgconfig(glib-2.0) >= 2.30.0
BuildRequires: pkgconfig(gtk+-3.0) >= 3.0.0
BuildRequires: pkgconfig(libgtop-2.0)
Recommends: %{name}-lang
Conflicts: gnome-utils < 3.3.1
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%glib2_gsettings_schema_requires
%description
Disk Usage Analyzer is a graphical, menu-driven application to analyse
disk usage in any GNOME environment. Disk Usage Analyzer can easily
scan either the whole filesystem tree, or a specific user-requested
directory branch (local or remote).
It also auto-detects in real-time any changes made to your home
directory as far as any mounted/unmounted device. Disk Usage Analyzer
also provides a full graphical treemap window for each selected folder.
%lang_package
%prep
%setup -q
%build
%configure --disable-scrollkeeper
make %{?_smp_mflags}
%install
%make_install
%suse_update_desktop_file %{name}
%find_lang %{name}
# Localized help
for help in %{buildroot}%{_datadir}/help/*/%{name}/; do
LOCALE=`echo $help | sed "s:.*%{_datadir}/help/\([^/]*\)/%{name}/:\1:g"`
echo "%%lang($LOCALE) %%dir %%{_datadir}/help/$LOCALE" >> %{name}.help-lang.tmp
echo "%%lang($LOCALE) %%doc /${help##%{buildroot}}" >> %{name}.help-lang.tmp
done
sort -u %{name}.help-lang.tmp | grep -v "^%%lang(C)" > %{name}.help-lang
rm %{name}.help-lang.tmp
%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 AUTHORS ChangeLog COPYING COPYING.docs NEWS README
%doc %{_datadir}/help/C/%{name}/
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1%{?ext_man}
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/glib-2.0/schemas/org.gnome.baobab.gschema.xml
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%files lang -f %{name}.lang -f %{name}.help-lang
%changelog