Name:           gnome-themes-standard
Version:        3.27.90
Release:        3
Summary:        Standard themes for GNOME applications
License:        LGPLv2+
URL:            https://gitlab.gnome.org/GNOME/gnome-themes-extra
Source0:        https://download.gnome.org/sources/%{name}/3.27/%{name}-%{version}.tar.xz
# The following source come from upstream
Source2:        gtkrc

BuildRequires:  gtk2-devel >= 2.24.15 gtk3-devel >= 3.9.12 gdb
BuildRequires:  gtk-update-icon-cache intltool gettext autoconf automake libtool librsvg2-devel
Requires:       abattis-cantarell-fonts google-noto-emoji-color-fonts adwaita-icon-theme adwaita-gtk2-theme = %{version}-%{release}
Conflicts:      adwaita-gtk3-theme < 3.13.3

Provides:       adwaita-gtk2-theme
Obsoletes:      adwaita-gtk2-theme

%description
The GNOME Themes Standard package contains various components of the default GNOME theme,
which provides default appearance for cursors, desktop background, window borders and GTK+ applications.

%prep
%autosetup -n %{name}-%{version} -p1

%build
%configure
%make_build

%install
install -D %{_sourcedir}/gtkrc %{buildroot}%{_datadir}/gtk-2.0/gtkrc
%make_install

%check
make check


%files
%doc NEWS
%{_datadir}/icons/HighContrast/*
%ghost %{_datadir}/icons/HighContrast/icon-theme.cache
%{_datadir}/themes/Adwaita*
%{_datadir}/themes/HighContrast/*
%{_datadir}/gtk-2.0/gtkrc
%{_libdir}/gtk-2.0/2.10.0/engines/libadwaita.*

%changelog
* Fri Mar 20 2020 songnannan <songnannan2@huawei.com> - 3.27.90-3
- add gdb in buildrequires

* Tue Sep 17 2019 chenzhenyu <chenzhenyu13@huawei.com> - 3.27.90-2
- Package init
