Browse Source

mint-x-icons package update

Signed-off-by: guibuilder_pel7x64builder0 <guibuilder@powerel.org>
master
guibuilder_pel7x64builder0 6 years ago
parent
commit
6e46e2194c
  1. 164
      SPECS/mint-x-icons.spec

164
SPECS/mint-x-icons.spec

@ -0,0 +1,164 @@ @@ -0,0 +1,164 @@
%bcond_without nm_icons


Name: mint-x-icons
Version: 1.5.1
Release: 1%{?dist}
Summary: Icon theme for Linux Mint

License: GPLv3+
URL: http://linuxmint.com
Source0: http://packages.linuxmint.com/pool/main/m/%{name}/%{name}_%{version}.tar.xz

BuildArch: noarch

BuildRequires: fdupes

Requires: filesystem
Requires: gnome-icon-theme
Requires: hicolor-icon-theme

%description
%{summary}.


%prep
%autosetup -c


%build
%if %{with nm_icons}
# Remove icons for nm-applet, because they are ugly.
%{_bindir}/find %{name}%{_prefix} -name "nm-*" -type f -delete
%{_bindir}/find %{name}%{_prefix} -name "nm-*" -xtype l \
-exec %{_bindir}/unlink {} \;
%{_bindir}/find %{name}%{_prefix} -name 'gnome-netstatus*' -xtype l \
-exec %{__file} {} \; | %{__grep} 'broken' | \
%{__sed} -e 's!:[ \t]\+.*$!!g' | \
%{_bindir}/xargs --max-args=1 %{_bindir}/unlink
%endif # with nm_icons


%install
%{__cp} -pr %{name}%{_prefix} %{buildroot}
%fdupes -s %{buildroot}


%if 0%{?fedora} || 0%{?rhel} >= 8
%transfiletriggerin -- %{_datadir}/icons/Mint-X
for _dir in %{_datadir}/icons/Mint-X*/ ; do
%{_bindir}/gtk-update-icon-cache --force ${_dir} &>/dev/null || :
done


%transfiletriggerpostun -- %{_datadir}/icons/Mint-X
for _dir in %{_datadir}/icons/Mint-X*/ ; do
%{_bindir}/gtk-update-icon-cache --force ${_dir} &>/dev/null || :
done
%else
%post
for _dir in %{_datadir}/icons/Mint-X*/ ; do
/bin/touch --no-create ${_dir} &>/dev/null || :
done


%postun
if [ $1 -eq 0 ] ; then
for _dir in %{_datadir}/icons/Mint-X*/ ; do
%{_bindir}/gtk-update-icon-cache ${_dir} &>/dev/null || :
done
fi


%posttrans
for _dir in %{_datadir}/icons/Mint-X*/ ; do
%{_bindir}/gtk-update-icon-cache ${_dir} &>/dev/null || :
done
%endif


%files
%license %{name}/debian/copyright
%doc %{name}/debian/changelog
%{_datadir}/icons/Mint-X*


%changelog
* Tue Nov 27 2018 Leigh Scott <leigh123linux@googlemail.com> - 1.5.1-1
- New upstream release

* Thu Aug 16 2018 Leigh Scott <leigh123linux@googlemail.com> - 1.5.0-1
- New upstream release

* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.9-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

* Thu Jun 07 2018 Leigh Scott <leigh123linux@googlemail.com> - 1.4.9-1
- New upstream release

* Mon May 07 2018 Leigh Scott <leigh123linux@googlemail.com> - 1.4.8-1
- New upstream release

* Fri Apr 27 2018 Leigh Scott <leigh123linux@googlemail.com> - 1.4.7-1
- New upstream release

* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.6-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

* Mon Jan 08 2018 Björn Esser <besser82@fedoraproject.org> - 1.4.6-5
- Use rpm filetriggers on Fedora and/or RHEL >= 8

* Thu Nov 23 2017 Björn Esser <besser82@fedoraproject.org> - 1.4.6-4
- Re-add the NetworkManager related icons

* Thu Nov 23 2017 Björn Esser <besser82@fedoraproject.org> - 1.4.6-3
- Just delete the ones related to NetworkManager

* Thu Nov 23 2017 Björn Esser <besser82@fedoraproject.org> - 1.4.6-2
- Fix dangling-relative-symlinks

* Thu Nov 23 2017 Björn Esser <besser82@fedoraproject.org> - 1.4.6-1
- New upstream release (rhbz#1515233)

* Thu Nov 23 2017 Björn Esser <besser82@fedoraproject.org> - 1.4.5-2
- Simplify scriptlets

* Wed Nov 15 2017 Björn Esser <besser82@fedoraproject.org> - 1.4.5-1
- New upstream release (rhbz#1512345)

* Mon Nov 06 2017 Björn Esser <besser82@fedoraproject.org> - 1.4.4-1
- New upstream release (rhbz#1509753)

* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

* Tue Jun 13 2017 Björn Esser <besser82@fedoraproject.org> - 1.4.3-1
- New upstream release (rhbz#1460844)

* Sun May 14 2017 Leigh Scott <leigh123linux@googlemail.com> - 1.4.2-4
- Remove NetworkManager related icons symlinks

* Fri May 12 2017 Björn Esser <besser82@fedoraproject.org> - 1.4.2-3
- Fully remove all NetworkManager related icons
- Add needed Requires: {gnome,hicolor}-icon-theme

* Thu May 11 2017 Björn Esser <besser82@fedoraproject.org> - 1.4.2-2
- Remove icons for nm-applet, because they are ugly

* Mon May 08 2017 Björn Esser <besser82@fedoraproject.org> - 1.4.2-1
- New upstream release (rhbz#1448742)

* Wed Mar 22 2017 Björn Esser <besser82@fedoraproject.org> - 1.4.1-1
- New upstream release (rhbz#1434631)

* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.4.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

* Sun Jan 29 2017 Björn Esser <besser82@fedoraproject.org> - 1.4.0-2
- Symlink files to save disk-space

* Mon Jan 09 2017 Björn Esser <bjoern.esser@gmail.com> - 1.4.0-1
- Initial rpm-release (rhbz#1411152)

* Sun Jan 08 2017 Björn Esser <bjoern.esser@gmail.com> - 1.4.0-0.1
- Initial package (rhbz#1411152)
Loading…
Cancel
Save