Name:           gnome-color-manager
Version:        3.30.0
Release:        2
Summary:        GNOME color management tools
License:        GPLv2+
URL:            http://mail.gnome.org/mailman/listinfo/gnome-color-manager-list
Source0:        http://download.gnome.org/sources/gnome-color-manager/3.30/gnome-color-manager-%{version}.tar.xz
BuildRequires:  gtk3-devel >= 3.0.0 desktop-file-utils gettext lcms2-devel libtiff-devel libexif-devel
BuildRequires:  exiv2-devel libcanberra-devel glib2-devel >= 2.25.9-2 docbook-utils colord-devel >= 0.1.12
BuildRequires:  colord-gtk-devel >= 0.1.22 itstool meson vte291-devel
Requires:       shared-mime-info
Obsoletes:      gnome-color-manager-devel <= 3.1.1
Provides:       gnome-color-manager-devel

%description
gnome-color-manager is a program that makes it easy to manage, install and generate color profiles
in the GNOME desktop.

%package        help
Summary:        Documentation for gnome-color-manager
BuildArch:      noarch
Requires:       gnome-color-manager = %{version}-%{release}

%description    help
Documentation for gnome-color-manager.

%prep
%autosetup -n gnome-color-manager-%{version}
%build
%meson
%meson_build
%install
%meson_install
%find_lang %name --with-gnome

%files -f gnome-color-manager.lang
%doc COPYING AUTHORS README
%{_bindir}/gcm-*
%{_libexecdir}/gcm-*
%{_datadir}/applications/{gcm-*.desktop,org.gnome.ColorProfileViewer.desktop}
%dir %{_datadir}/gnome-color-manager/{targets,icons,figures,ti1}
%{_datadir}/gnome-color-manager/{targets/*,icons/*,figures/*,ti1/*}
%{_datadir}/icons/hicolor/*/*/*.png
%{_datadir}/icons/hicolor/scalable/*/*.svg*
%{_datadir}/metainfo/org.gnome.ColorProfileViewer.appdata.xml

%files help
%{_mandir}/man1/*.1*

%changelog
* Wed Dec 11 2019 Ling Yang <lingyang2@huawei.com> - 3.30.0-2
- Package init
