File flat-remix-gnome.spec of Package flat-remix-gnome

#
# spec file for package flat-remix-gtk
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#

Name:           flat-remix-gnome
Version:        0
Release:        0
Summary:        Flat Remix is a GNOME Shell theme inspired by material design
License:        CC-BY-SA-4.0
Url:            https://drasite.com/flat-remix-gnome
Group:          User Interface/Desktops        
Source0:        %{name}-%{version}.tar.xz
BuildRequires:  fdupes
BuildArch:		noarch
BuildRequires:	glib2-devel, gnome-extensions, gnome-shell >= 42.0, dconf, gnome-shell-extension-user-theme, ImageMagick, make
Requires:		glib2-devel, gnome-extensions, gnome-shell >= 42.0, dconf, gnome-shell-extension-user-theme, ImageMagick, make

%description
Flat Remix is a GNOME Shell theme inspired by material design. It is mostly flat using a colorful palette with some shadows, highlights, and gradients for some depth. 

Themes:
 • Flat Remix
 • Flat Remix Dark
 • Flat Remix Darkest
 • Flat Remix Miami
 • Flat Remix Miami Dark

Variants:
 • Full Panel: No topbar spacing

Color Variants:
 • Blue
 • Green
 • Red
 • Yellow

%prep
%autosetup -p1
sed -e 's|cp ../sass/gnome-shell/upstream/pad-osd.css .|rm -f ./pad-osd.css\n	cp ../sass/gnome-shell/upstream/pad-osd.css .|' -i src/gresource/Makefile

%build

%install
%make_install DESTDIR=%{buildroot}
%fdupes %{buildroot}/%{_datadir}

%post
cd /usr/share/flat-remix-gnome
make
make install


%preun
if [ $1 == 0 ]
then
	cd /usr/share/flat-remix-gnome
	make uninstall
fi

%files
%defattr(-,root,root)
%license LICENSE
%doc README.md
%{_datadir}/flat-remix-gnome

%changelog
* Tue Sep 01 2020 sp1rit
- 20200723: Initial Packaging
openSUSE Build Service is sponsored by