add package

This commit is contained in:
bingo2008 2019-12-13 14:43:46 +08:00
parent e4a1fa685c
commit f2ddf4c3b8
2 changed files with 59 additions and 0 deletions

BIN
baobab-3.30.0.tar.xz Normal file

Binary file not shown.

59
baobab.spec Normal file
View File

@ -0,0 +1,59 @@
Name: baobab
Version: 3.30.0
Release: 2
Summary: Graphical directory tree analyzer
License: GPLv2+ and GFDL
URL: https://wiki.gnome.org/Apps/Baobab
Source0: https://download.gnome.org/sources/baobab/3.30/baobab-%{version}.tar.xz
BuildRequires: pkgconfig(gtk+-3.0) >= 3.20 libappstream-glib desktop-file-utils
BuildRequires: gettext itstool meson vala
Requires: gtk3 >= 3.20
Obsoletes: gnome-utils < 1:3.3 gnome-utils-devel < 1:3.3 gnome-utils-libs < 1:3.3
%description
Baobab can scan specific directories or the entire file system to provide users with a graphical
tree representation,including the size or percentage of each directory in a branch.It also auto-detects
in real-time any change made to your home folder as far as any mounted/unmounted device.
%package help
Summary: Documentation for baobab
%description help
This package provides documentation for baobab.
%prep
%autosetup -n baobab-3.30.0 -p1
%build
%meson
%meson_build
%install
%meson_install
%find_lang baobab --with-gnome
%check
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/metainfo/org.gnome.baobab.appdata.xml
desktop-file-validate %{buildroot}/%{_datadir}/applications/org.gnome.baobab.desktop
%files -f baobab.lang
%doc AUTHORS NEWS README COPYING COPYING.docs
%{_bindir}/baobab
%{_datadir}/applications/org.gnome.baobab.desktop
%{_datadir}/dbus-1/services/org.gnome.baobab.service
%{_datadir}/metainfo/org.gnome.baobab.appdata.xml
%{_datadir}/glib-2.0/schemas/org.gnome.baobab.gschema.xml
%{_datadir}/icons/hicolor/*/apps/baobab.png
%{_datadir}/icons/hicolor/symbolic/apps/baobab-symbolic.svg
%files help
%{_mandir}/man1/baobab.1*
%changelog
* Wed Dec 11 2019 fengbing <fengbing7@huawei.com> - 3.30.0-2
- Package init