diff options
author | 2019-03-16 16:34:58 +0100 | |
---|---|---|
committer | 2019-03-16 19:37:31 +0100 | |
commit | 7ac0490a5752461867194da7e96da17ecc3121a8 (patch) | |
tree | 49b9eb2613c01f6ea288117ea9a78fbf1672d432 /flat-remix.spec | |
parent | 0403dfe89d94ebdbbd47eb26dc07d82c668eb87c (diff) | |
download | flat-remix-7ac0490a5752461867194da7e96da17ecc3121a8.tar.gz flat-remix-7ac0490a5752461867194da7e96da17ecc3121a8.zip |
Add flat-remix.spec
Diffstat (limited to 'flat-remix.spec')
-rw-r--r-- | flat-remix.spec | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/flat-remix.spec b/flat-remix.spec new file mode 100644 index 000000000..4c803ace6 --- /dev/null +++ b/flat-remix.spec @@ -0,0 +1,64 @@ +Name: flat-remix +Version: 20190109 +Release: 1 +License: GPLv3 +Summary: Flat Remix icon theme +Url: https://drasite.com/flat-remix +Group: User Interface/Desktops +Source: https://github.com/daniruiz/%{name}/archive/%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch + +%description +Flat remix is a pretty simple icon theme inspired on material design. + +This package contains the following icon themes: + + - Flat Remix + - Flat Remix Dark + - Flat Remix Light + +%prep +%setup -q + +%install +%make_install + +%build + +%post +for theme in \ + "Flat-Remix" \ + "Flat-Remix-Dark" \ + "Flat-Remix-Light" +do + /bin/touch --no-create /usr/share/icons/${theme} &>/dev/null || : + /usr/bin/gtk-update-icon-cache -q /usr/share/icons/${theme} || : +done + + +%postun +if [ $1 -eq 0 ]; then + for theme in \ + "Flat-Remix" \ + "Flat-Remix-Dark" \ + "Flat-Remix-Light" + do + /bin/touch --no-create /usr/share/icons/${theme} &>/dev/null || : + /usr/bin/gtk-update-icon-cache -q /usr/share/icons/${theme} || : + done +fi + +%files +%defattr(-,root,root) +%doc LICENSE README.md CREDITS +%{_datadir}/icons/Flat-Remix-Dark +%{_datadir}/icons/Flat-Remix-Light +%{_datadir}/icons/Flat-Remix +%ghost %{_datadir}/icons/Flat-Remix-Dark/icon-theme.cache +%ghost %{_datadir}/icons/Flat-Remix-Light/icon-theme.cache +%ghost %{_datadir}/icons/Flat-Remix/icon-theme.cache + +%changelog +* Mon Feb 19 2018 Daniel Ruiz de Alegría <daniruizdealegria@gmail.com> - 20180219-1 +- Initial Build |