-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgtk4-chinfo.spec
229 lines (177 loc) · 6.64 KB
/
gtk4-chinfo.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
%if 0%{?fedora}
%global with_broadway 1
%endif
%global with_tracker 0
%global glib2_version 2.80.0
%global pango_version 1.56.0
%global cairo_version 1.18.0
%global gdk_pixbuf_version 2.30.0
%global gstreamer_version 1.24.0
%global harfbuzz_version 8.4
%global wayland_protocols_version 1.31
%global wayland_version 1.21.0
%global epoxy_version 1.4
%global bin_version 4.0.0
# Filter provides for private modules
%global __provides_exclude_from ^%{_libdir}/gtk-4.0
# FTBFS on i686 with GCC 14 -Werror=int-conversion
# https://gitlab.gnome.org/GNOME/gtk/-/issues/6033
%if 0%{?fedora} >= 40 || 0%{?rhel} >= 10
%ifarch %{ix86}
%global build_type_safety_c 1
%endif
%endif
%global pkgname gtk4
%global branch %%(echo %{version} | cut -d. -f-2)
Name: %{pkgname}-chinfo
Version: 4.18.4
Release: 1%{?dist}
Summary: GTK graphical user interface library - chinforpms modifications
Epoch: 1
License: LGPL-2.0-or-later
URL: https://www.gtk.org
Source0: https://download.gnome.org/sources/gtk/%{branch}/gtk-%{version}.tar.xz
Source2: chinfo-adwaita.css
# Disable this @#$& by default
Patch100: 0001-Disable-overlay-scrolling.patch
Patch101: 0001-set-atril-as-print-preview.patch
Patch102: 0001-CSD-server-side-shadow.patch
Patch103: 0001-CSD-Prefer-SSD-by-default.patch
Patch120: 0001-appearance-disable-backdrop.patch
Patch121: 0001-appearance-fix-black-border.patch
%dnl Patch122: 0001-CSD-disabled-by-default.patch
BuildRequires: cups-devel
BuildRequires: desktop-file-utils
BuildRequires: docbook-style-xsl
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: gettext
BuildRequires: glslc
BuildRequires: meson
BuildRequires: python3-gobject
BuildRequires: pkgconfig(avahi-gobject)
BuildRequires: pkgconfig(cairo) >= %{cairo_version}
BuildRequires: pkgconfig(cairo-gobject) >= %{cairo_version}
BuildRequires: pkgconfig(colord)
BuildRequires: pkgconfig(egl)
BuildRequires: pkgconfig(epoxy)
BuildRequires: pkgconfig(gdk-pixbuf-2.0) >= %{gdk_pixbuf_version}
BuildRequires: pkgconfig(glib-2.0) >= %{glib2_version}
BuildRequires: pkgconfig(graphene-gobject-1.0)
BuildRequires: pkgconfig(gstreamer-player-1.0) >= %{gstreamer_version}
BuildRequires: pkgconfig(harfbuzz) >= %{harfbuzz_version}
BuildRequires: pkgconfig(json-glib-1.0)
BuildRequires: pkgconfig(libjpeg)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(libtiff-4)
BuildRequires: pkgconfig(pango) >= %{pango_version}
BuildRequires: pkgconfig(sysprof-capture-4)
%if 0%{?with_tracker}
BuildRequires: pkgconfig(tracker-sparql-3.0)
%endif
BuildRequires: pkgconfig(vulkan)
BuildRequires: pkgconfig(wayland-client) >= %{wayland_version}
BuildRequires: pkgconfig(wayland-cursor) >= %{wayland_version}
BuildRequires: pkgconfig(wayland-egl) >= %{wayland_version}
BuildRequires: pkgconfig(wayland-protocols) >= %{wayland_protocols_version}
BuildRequires: pkgconfig(xcomposite)
BuildRequires: pkgconfig(xcursor)
BuildRequires: pkgconfig(xdamage)
BuildRequires: pkgconfig(xfixes)
BuildRequires: pkgconfig(xi)
BuildRequires: pkgconfig(xinerama)
BuildRequires: pkgconfig(xkbcommon)
BuildRequires: pkgconfig(xrandr)
BuildRequires: pkgconfig(xrender)
Requires: %{pkgname}%{?_isa} >= %{branch}
Provides: %{pkgname}-classic = %{?epoch:%{epoch}:}%{version}-%{release}
Provides: %{pkgname}-classic%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
%global __provides_exclude_from ^%{_libdir}/%{name}/.*
%global __requires_exclude ^libgtk-4\\.so.*$
%description
GTK is a multi-platform toolkit for creating graphical user
interfaces. Offering a complete set of widgets, GTK is suitable for
projects ranging from small one-off tools to complete application
suites.
This package contains a patched version 4 of GTK, with some dirty
fixes from chinforpms.
%prep
%autosetup -p1 -n gtk-%{version}
cat %{S:2} | tee -a gtk/theme/Default/Default-{light,dark}.css > /dev/null
cat %{S:2} | tee -a gtk/theme/Default/Default-hc{,-dark}.css > /dev/null
%build
%set_build_flags
export CFLAGS+=' -fno-strict-aliasing -DG_DISABLE_CAST_CHECKS -DG_DISABLE_ASSERT'
%meson \
%if 0%{?with_broadway}
-Dbroadway-backend=true \
%endif
-Dsysprof=enabled \
%if 0%{?with_tracker}
-Dtracker=enabled \
%endif
-Dcolord=enabled \
-Ddocumentation=false \
-Dman-pages=false \
-Dintrospection=disabled \
-Dbuild-demos=false \
-Dbuild-testsuite=false \
-Dbuild-examples=false \
-Dbuild-tests=false \
%{nil}
%meson_build
%install
%meson_install
rm -rf %{buildroot}%{_bindir}
rm -rf %{buildroot}%{_includedir}
rm -rf %{buildroot}%{_datadir}
rm -rf %{buildroot}%{_libdir}/pkgconfig
rm -f %{buildroot}%{_libdir}/*.so
rm -rf %{buildroot}%{_libdir}/*/
mkdir -p %{buildroot}%{_libdir}/%{name}
mv %{buildroot}%{_libdir}/*.so.* %{buildroot}%{_libdir}/%{name}/
mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d
echo "%{_libdir}/%{name}" \
> %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%license COPYING
%doc AUTHORS NEWS README.md
%{_libdir}/%{name}/libgtk-4.so.1*
%config(noreplace) %{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf
%changelog
* Mon Apr 07 2025 Phantom X <megaphantomx at hotmail dot com> - 1:4.18.4-1
- 4.18.4
* Sat Apr 05 2025 Phantom X <megaphantomx at hotmail dot com> - 1:4.18.3-1
- 4.18.3
* Fri Mar 21 2025 Phantom X <megaphantomx at hotmail dot com> - 1:4.18.2-1
- 4.18.2
* Wed Mar 19 2025 Phantom X <megaphantomx at hotmail dot com> - 1:4.17.6-1
- 4.17.6
* Fri Jan 03 2025 Phantom X <megaphantomx at hotmail dot com> - 1:4.16.12-1
- 4.16.12
* Tue Dec 17 2024 Phantom X - 1:4.16.7-3
- Again
* Mon Dec 16 2024 Phantom X <megaphantomx at hotmail dot com> - 1:4.16.7-2
- Fix overlay scrolling patch
* Sun Nov 24 2024 Phantom X <megaphantomx at hotmail dot com> - 1:4.16.7-1
- 4.16.7
* Thu Nov 21 2024 Phantom X <megaphantomx at hotmail dot com> - 1:4.16.6-1
- 4.16.6
* Fri Nov 01 2024 Phantom X <megaphantomx at hotmail dot com> - 1:4.16.54-1
- 4.16.5
* Fri Oct 04 2024 Phantom X <megaphantomx at hotmail dot com> - 1:4.16.3-1
- 4.16.3
* Tue Sep 24 2024 Phantom X <megaphantomx at hotmail dot com> - 1:4.16.2-1
- 4.16.2
* Thu Sep 19 2024 Phantom X <megaphantomx at hotmail dot com> - 1:4.16.1-1
- 4.16.1
* Sat Aug 24 2024 Phantom X <megaphantomx at hotmail dot com> - 1:4.14.5-1
- 4.14.5
* Mon May 06 2024 Phantom X <megaphantomx at hotmail dot com> - 1:4.14.4-2
- Provides and requires tweaks
* Sat May 04 2024 Phantom X <megaphantomx at hotmail dot com> - 1:4.14.4-1
- 4.14.4
* Sat Apr 20 2024 Phantom X <megaphantomx at hotmail dot com> - 1:4.14.3-1
- Initial spec, rebased from gtk4 spec