From 09097068e8de158e6da113b8068d9eec94a6b32274828d5fcc24217b8dd893a4 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Mon, 27 Jan 2025 08:32:58 +0000 Subject: [PATCH] - Update to version 0.18: * Provide a pkgconfig file * Create HiDPI directories * Port build system to Meson - Create devel subpackage for pkgconfig file - Create all directories under symbolic (needed by budgie-desktop) - Create 1024x1024 HiDPI directories OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/hicolor-icon-theme?expand=0&rev=45 --- .gitattributes | 23 +++++ .gitignore | 1 + hicolor-icon-theme-0.17.tar.xz | 3 + hicolor-icon-theme-0.18.tar.xz | 3 + hicolor-icon-theme-rpmlintrc | 1 + hicolor-icon-theme.changes | 178 +++++++++++++++++++++++++++++++++ hicolor-icon-theme.spec | 79 +++++++++++++++ macros.hicolor | 42 ++++++++ 8 files changed, 330 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 hicolor-icon-theme-0.17.tar.xz create mode 100644 hicolor-icon-theme-0.18.tar.xz create mode 100644 hicolor-icon-theme-rpmlintrc create mode 100644 hicolor-icon-theme.changes create mode 100644 hicolor-icon-theme.spec create mode 100644 macros.hicolor diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/hicolor-icon-theme-0.17.tar.xz b/hicolor-icon-theme-0.17.tar.xz new file mode 100644 index 0000000..f7d64b5 --- /dev/null +++ b/hicolor-icon-theme-0.17.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:317484352271d18cbbcfac3868eab798d67fff1b8402e740baa6ff41d588a9d8 +size 53016 diff --git a/hicolor-icon-theme-0.18.tar.xz b/hicolor-icon-theme-0.18.tar.xz new file mode 100644 index 0000000..2178cc1 --- /dev/null +++ b/hicolor-icon-theme-0.18.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:db0e50a80aa3bf64bb45cbca5cf9f75efd9348cf2ac690b907435238c3cf81d7 +size 29624 diff --git a/hicolor-icon-theme-rpmlintrc b/hicolor-icon-theme-rpmlintrc new file mode 100644 index 0000000..9cae743 --- /dev/null +++ b/hicolor-icon-theme-rpmlintrc @@ -0,0 +1 @@ +addFilter(".*ghost-files-without-postin") diff --git a/hicolor-icon-theme.changes b/hicolor-icon-theme.changes new file mode 100644 index 0000000..4429f0b --- /dev/null +++ b/hicolor-icon-theme.changes @@ -0,0 +1,178 @@ +------------------------------------------------------------------- +Mon Jan 20 17:34:10 UTC 2025 - Callum Farmer + +- Update to version 0.18: + * Provide a pkgconfig file + * Create HiDPI directories + * Port build system to Meson +- Create devel subpackage for pkgconfig file +- Create all directories under symbolic + (needed by budgie-desktop) +- Create 1024x1024 HiDPI directories + +------------------------------------------------------------------- +Mon Nov 21 13:49:48 UTC 2022 - Fabio Pesari + +- Add 1024x1024 directory for package ownership + +------------------------------------------------------------------- +Wed May 8 09:29:55 UTC 2019 - Dominique Leuenberger + +- Move RPM macros to %_rpmmacrodir. + +------------------------------------------------------------------- +Wed Feb 28 16:33:24 UTC 2018 - dimstar@opensuse.org + +- Modernize spec-file by calling spec-cleaner + +------------------------------------------------------------------- +Thu Sep 7 15:01:50 UTC 2017 - zaitor@opensuse.org + +- Update to version 0.17: + + Fix 256x256@2/animations name in index.theme. +- Changes from version 0.16: + + Add hidpi icon directories (e.g. 48x48@2) with scale=2. + +------------------------------------------------------------------- +Tue Jun 27 12:29:12 UTC 2017 - dimstar@opensuse.org + +- Migrate %icon_theme_cache_post/postun macro from + hicolor-icon-theme to gtk2-tools and gtk3-tools file triggers. + The macros are defined to be nop, in order to not break all spec + files for now. + +------------------------------------------------------------------- +Thu May 26 14:01:13 UTC 2016 - tchvatal@suse.com + +- Update url to point to some existing location. +- Run over with spec-cleaner: Update macros and remove obsolete + clean section. + +------------------------------------------------------------------- +Mon Oct 26 00:08:46 UTC 2015 - zaitor@opensuse.org + +- Drop hicolor-scalable-sizes.patch: It breaks builder icons, and + default icons on desktops like MATE. It has never been taken + upstream, nor is any other distro using it, so lets align with + everyone else. + +------------------------------------------------------------------- +Tue Mar 24 21:52:20 UTC 2015 - zaitor@opensuse.org + +- Update to version 0.15: + + Add symbolic/apps directory for symbolic app icons. + +------------------------------------------------------------------- +Tue Dec 16 10:52:27 UTC 2014 - dimstar@opensuse.org + +- Update to version 0.14: + + Use automake to generate VPATH-compatible makefiles. + +------------------------------------------------------------------- +Tue Dec 24 19:45:10 UTC 2013 - dimstar@opensuse.org + +- Update to version 0.13: + + Icon-theme-spec: Add icon scale support. + + Support 512x512 bitmaps for high density display age. +- Rebase hicolor-scalable-sizes.patch. + +------------------------------------------------------------------- +Thu Mar 28 08:41:09 UTC 2013 - mmeister@suse.com + +- Added url as source. + Please see http://en.opensuse.org/SourceUrls + +------------------------------------------------------------------- +Fri Mar 1 12:44:32 UTC 2013 - dimstar@opensuse.org + +- Spec-cleanup using format_spec_file service. + +------------------------------------------------------------------- +Fri Jan 7 17:25:40 CET 2011 - vuntz@opensuse.org + +- Update macros.hicolor after upstream GTK+ decided to use the same + name for the gtk-update-icon-cache tool in both gtk2 and gtk3: we + use alternatives to handle the two versions of the tools. This + means we can always assume that the tool name is + gtk-update-icon-cache; so no need to check for + gtk-update-icon-cache-3.0. + +------------------------------------------------------------------- +Thu Oct 7 14:51:55 CEST 2010 - vuntz@opensuse.org + +- Reformat macros.hicolor so that the generated scriptlet looks a + bit nicer. + +------------------------------------------------------------------- +Wed Aug 25 15:06:12 CEST 2010 - vuntz@opensuse.org + +- Add rpm macros to update icon themes. +- Add a %ghost file for the hicolor icon cache, but since this + package actually doesn't contain any icon, do not do anything in + %post/%postun: this will be done by packages installing icons in + the hicolor icon theme. +- Add a rpmlintrc file to suppress the ghost-files-without-postin + warning which is wrong in this specific case. + +------------------------------------------------------------------- +Thu Jan 14 05:22:00 CET 2010 - captain.magnus@opensuse.org + +- Update to version 0.12: + + Fix details with 256x256 icons +- Remove hicolor-256.patch. Fixed upstream + +------------------------------------------------------------------- +Fri Dec 4 17:10:24 CET 2009 - vuntz@opensuse.org + +- Update to version 0.11: + + Added 256x256 size. (fdo#15231) + + Build system updates. +- Remove call to suse_update_config macro, it's not needed. +- Update hicolor-256.patch to handle the missing parts, not done by + the upstream fix. +- Update hicolor-scalable-sizes.patch to not added useless + contexts. +- Drop hicolor-kde-bits.patch: it should not be needed, since the + hicolor theme cannot be selected by the user (confirmed by some + usptream KDE people). + +------------------------------------------------------------------- +Tue Nov 3 19:09:20 UTC 2009 - coolo@novell.com + +- updated patches to apply with fuzz=0 + +------------------------------------------------------------------- +Wed Aug 26 12:53:54 CEST 2009 - mls@suse.de + +- make patch0 usage consistent + +------------------------------------------------------------------- +Mon Apr 6 11:31:06 CEST 2009 - vuntz@novell.com + +- Respin hicolor-kde-bits.patch that doesn't apply with new patch + package. + +------------------------------------------------------------------- +Wed Oct 15 14:51:43 CEST 2008 - vuntz@novell.com + +- Add hicolor-256.patch to add 256x256 directories. Needed to fix + alacarte build. + +------------------------------------------------------------------- +Fri Jul 18 16:38:06 CEST 2008 - jpr@suse.de + +- Tag patches + +------------------------------------------------------------------- +Tue Mar 25 15:38:21 CET 2008 - lrupp@suse.de + +- beautify specfile +- fix executable bit for doc + +------------------------------------------------------------------- +Wed Feb 21 16:51:25 CET 2007 - dobey@suse.de + +- Import hicolor-icon-theme 0.10 with appropriate patches for KDE + and GNOME + Fixes https://bugzilla.novell.com/show_bug.cgi?id=247278 + diff --git a/hicolor-icon-theme.spec b/hicolor-icon-theme.spec new file mode 100644 index 0000000..3d40983 --- /dev/null +++ b/hicolor-icon-theme.spec @@ -0,0 +1,79 @@ +# +# spec file for package hicolor-icon-theme +# +# Copyright (c) 2019 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 https://bugs.opensuse.org/ +# + +%define hicolor_dir_list {{actions,\ +animations,apps,categories,devices,emblems,emotes,filesystems,\ +intl,mimetypes,places,status,\ +stock,stock/chart,stock/code,stock/data,stock/form,\ +stock/image,stock/io,stock/media,stock/navigation,\ +stock/net,stock/object,stock/table,stock/text}} %{nil} + +Name: hicolor-icon-theme +Version: 0.18 +Release: 0 +Summary: Fallback Icon Theme +License: GPL-2.0-or-later +Group: System/X11/Utilities +URL: https://freedesktop.org/wiki/Software/icon-theme/ +Source0: https://icon-theme.freedesktop.org/releases/%{name}-%{version}.tar.xz +Source1: macros.hicolor +Source99: %{name}-rpmlintrc +BuildRequires: meson +BuildArch: noarch + +%description +This is the default fallback theme used by implementations of the icon +theme specification. + +%package devel +Summary: Development files for hicolor-icon-theme +Group: Development/Libraries/Other +Requires: %{name} = %{version} + +%description devel +A package containing the development files for hicolor-icon-theme +Currently, there is only a pkgconfig file + +%prep +%autosetup + +%build +%meson +%meson_build + +%install +%meson_install +touch %{buildroot}%{_datadir}/icons/hicolor/icon-theme.cache +chmod -x COPYING +# Install rpm macros +install -D -m644 %{SOURCE1} %{buildroot}%{_rpmmacrodir}/macros.hicolor +# Add 1024x1024 (+HiDPI) directory for package ownership [default-icon-theme#3] +mkdir -p %{buildroot}%{_datadir}/icons/hicolor/{1024x1024,1024x1024@2}/%{hicolor_dir_list} +# Make symbolic reflect scalable +mkdir -p %{buildroot}%{_datadir}/icons/hicolor/symbolic/%{hicolor_dir_list} + +%files +%license COPYING +%doc NEWS README.md +%ghost %{_datadir}/icons/hicolor/icon-theme.cache +%{_datadir}/icons/hicolor/ +%{_rpmmacrodir}/macros.hicolor + +%files devel +%{_datadir}/pkgconfig/default-icon-theme.pc + +%changelog diff --git a/macros.hicolor b/macros.hicolor new file mode 100644 index 0000000..a80fdc8 --- /dev/null +++ b/macros.hicolor @@ -0,0 +1,42 @@ +# RPM macros for packages installing icons or a whole icon theme +# +### +# +# When a package installs icons (or a whole icon theme), it should use +# both macros: +# +# - %icon_theme_cache_post in %post +# - %icon_theme_cache_postun in %postun +# +# Additionally, if a package installs a whole icon theme, it should use +# this macro: +# +# - %icon_theme_cache_create_ghost in %install +# +# This macro takes the name of an icon theme as argument. The +# icon-theme.cache created this way should be added with %ghost in the +# file list. +# +# Note that %icon_theme_cache_post and %icon_theme_cache_postun can +# optionally take the name of the icon theme where icons are installed. +# This is useful for packages containing a whole icon theme. If no +# argument is passed, the hicolor icon theme is assumed (which is where +# applications usually install their icons). +# +### + +%icon_theme_cache_create_ghost() \ +if test "x%1" == "x%%1"; then \ + echo "Missing argument in call to %%icon_theme_cache_create_ghost." \ + false \ +fi \ +mkdir -p "%{buildroot}%{_datadir}/icons/%1" \ +touch "%{buildroot}%{_datadir}/icons/%1/icon-theme.cache" + +# The macro is a compatibility place holder to not break .spec files. It has been migrated to be a file trigger +%icon_theme_cache_post() \ +%nil + +# The macro is a compatibility place holder to not break .spec files. It has been migrated to be a file trigger +%icon_theme_cache_postun() \ +%nil