File libreoffice-icon-theme-oxygen.spec of Package libreoffice-icon-theme-oxygen
#
# spec file for package libreoffice-icon-theme-oxygen
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
Name: libreoffice-icon-theme-oxygen
Version: 20180303
Release: 0
Summary: Oxygen LibreOffice Icon Theme (KDE4 default)
License: LGPL-3.0 or CC-BY-SA-3.0
Group: Productivity/Office/Suite
Url: http://www.documentfoundation.org/
Source0: images_oxygen.zip
Requires: libreoffice-icon-theme-galaxy
Requires(post): libreoffice-share-linker
Requires(postun): libreoffice-share-linker
Supplements: packageand(libreoffice:oxygen5-icon-theme)
Supplements: packageand(libreoffice:oxygen-icon-theme)
BuildArch: noarch
%description
This package provides Oxygen LibreOffice icon theme. It is used in KDE4 by default.
%build
install -D -t %buildroot%{_datadir}/libreoffice/share/config %{SOURCE0}
%posttrans
rpm -ql %{name} > %{_datadir}/libreoffice/icon-theme-oxygen_list.txt || true
if [ -f %{_datadir}/libreoffice/icon-theme-oxygen_list.txt ] ; then
%{_bindir}/libreoffice-share-linker %{_datadir}/libreoffice/icon-theme-oxygen_list.txt || true
fi
%postun
if [ "$1" = "0" -a -f %{_datadir}/libreoffice/icon-theme-oxygen_list.txt -a -x %{_bindir}/libreoffice-share-linker ]; then
%{_bindir}/libreoffice-share-linker --unlink %{_datadir}/libreoffice/icon-theme-oxygen_list.txt || true
rm -f %{_datadir}/libreoffice/icon-theme-oxygen_list.txt 2> /dev/null || true
fi
%files
%defattr(-,root,root)
%dir %{_datadir}/libreoffice
%dir %{_datadir}/libreoffice/share
%dir %{_datadir}/libreoffice/share/config
%{_datadir}/libreoffice/share/config/images_oxygen.zip
%changelog