-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvte.spec
287 lines (245 loc) · 10.1 KB
/
vte.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
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
#
# This file is auto-generated. DO NOT EDIT
# Generated by: autospec.py
# Using build pattern: meson
# autospec version: v21
# autospec commit: 94c6be0
#
Name : vte
Version : 0.78.3
Release : 99
URL : https://download.gnome.org/sources/vte/0.78/vte-0.78.3.tar.xz
Source0 : https://download.gnome.org/sources/vte/0.78/vte-0.78.3.tar.xz
Summary : No detailed summary available
Group : Development/Tools
License : CC-BY-4.0 GPL-3.0 LGPL-3.0 MIT
Requires: vte-bin = %{version}-%{release}
Requires: vte-data = %{version}-%{release}
Requires: vte-lib = %{version}-%{release}
Requires: vte-libexec = %{version}-%{release}
Requires: vte-license = %{version}-%{release}
Requires: vte-locales = %{version}-%{release}
Requires: vte-services = %{version}-%{release}
BuildRequires : buildreq-gnome
BuildRequires : buildreq-meson
BuildRequires : gnutls-dev
BuildRequires : gobject-introspection-dev
BuildRequires : gtk3-dev
BuildRequires : intltool-dev
BuildRequires : pcre-dev
BuildRequires : pkgconfig(liblz4)
BuildRequires : pkgconfig(libpcre2-8)
BuildRequires : vala-dev
# Suppress stripping binaries
%define __strip /bin/true
%define debug_package %{nil}
Patch1: defaults.patch
%description
Virtual TErminal
================
VTE provides a virtual terminal widget for GTK applications.
%package bin
Summary: bin components for the vte package.
Group: Binaries
Requires: vte-data = %{version}-%{release}
Requires: vte-libexec = %{version}-%{release}
Requires: vte-license = %{version}-%{release}
Requires: vte-services = %{version}-%{release}
%description bin
bin components for the vte package.
%package data
Summary: data components for the vte package.
Group: Data
%description data
data components for the vte package.
%package dev
Summary: dev components for the vte package.
Group: Development
Requires: vte-lib = %{version}-%{release}
Requires: vte-bin = %{version}-%{release}
Requires: vte-data = %{version}-%{release}
Provides: vte-devel = %{version}-%{release}
Requires: vte = %{version}-%{release}
Requires: vte-extras
%description dev
dev components for the vte package.
%package extras
Summary: extras components for the vte package.
Group: Default
%description extras
extras components for the vte package.
%package lib
Summary: lib components for the vte package.
Group: Libraries
Requires: vte-data = %{version}-%{release}
Requires: vte-libexec = %{version}-%{release}
Requires: vte-license = %{version}-%{release}
%description lib
lib components for the vte package.
%package libexec
Summary: libexec components for the vte package.
Group: Default
Requires: vte-license = %{version}-%{release}
%description libexec
libexec components for the vte package.
%package license
Summary: license components for the vte package.
Group: Default
%description license
license components for the vte package.
%package locales
Summary: locales components for the vte package.
Group: Default
%description locales
locales components for the vte package.
%package services
Summary: services components for the vte package.
Group: Systemd services
Requires: systemd
%description services
services components for the vte package.
%prep
%setup -q -n vte-0.78.3
cd %{_builddir}/vte-0.78.3
%patch -P 1 -p1
pushd ..
cp -a vte-0.78.3 buildavx2
popd
%build
## build_prepend content
export CFLAGS="$CFLAGS -fexceptions"
export CXXFLAGS="$CFLAGS -fexceptions"
## build_prepend end
export http_proxy=http://127.0.0.1:9/
export https_proxy=http://127.0.0.1:9/
export no_proxy=localhost,127.0.0.1,0.0.0.0
export LANG=C.UTF-8
export SOURCE_DATE_EPOCH=1737997310
export GCC_IGNORE_WERROR=1
export AR=gcc-ar
export RANLIB=gcc-ranlib
export NM=gcc-nm
CLEAR_INTERMEDIATE_CFLAGS="$CLEAR_INTERMEDIATE_CFLAGS -O3 -falign-functions=32 -fdebug-types-section -femit-struct-debug-baseonly -ffat-lto-objects -flto=auto -fno-semantic-interposition -g1 -gno-column-info -gno-variable-location-views -gz=zstd "
CLEAR_INTERMEDIATE_FCFLAGS="$CLEAR_INTERMEDIATE_FFLAGS -O3 -falign-functions=32 -fdebug-types-section -femit-struct-debug-baseonly -ffat-lto-objects -flto=auto -fno-semantic-interposition -g1 -gno-column-info -gno-variable-location-views -gz=zstd "
CLEAR_INTERMEDIATE_FFLAGS="$CLEAR_INTERMEDIATE_FFLAGS -O3 -falign-functions=32 -fdebug-types-section -femit-struct-debug-baseonly -ffat-lto-objects -flto=auto -fno-semantic-interposition -g1 -gno-column-info -gno-variable-location-views -gz=zstd "
CLEAR_INTERMEDIATE_CXXFLAGS="$CLEAR_INTERMEDIATE_CXXFLAGS -O3 -falign-functions=32 -fdebug-types-section -femit-struct-debug-baseonly -ffat-lto-objects -flto=auto -fno-semantic-interposition -g1 -gno-column-info -gno-variable-location-views -gz=zstd "
CFLAGS="$CLEAR_INTERMEDIATE_CFLAGS"
CXXFLAGS="$CLEAR_INTERMEDIATE_CXXFLAGS"
FFLAGS="$CLEAR_INTERMEDIATE_FFLAGS"
FCFLAGS="$CLEAR_INTERMEDIATE_FCFLAGS"
ASFLAGS="$CLEAR_INTERMEDIATE_ASFLAGS"
LDFLAGS="$CLEAR_INTERMEDIATE_LDFLAGS"
export GOAMD64=v2
meson --libdir=lib64 --prefix=/usr --buildtype=plain -Dgtk4=true builddir
ninja -v -C builddir
GOAMD64=v3
CFLAGS="$CFLAGS -march=x86-64-v3 -Wl,-z,x86-64-v3 " CXXFLAGS="$CXXFLAGS -march=x86-64-v3 -Wl,-z,x86-64-v3 " LDFLAGS="$LDFLAGS -march=x86-64-v3 " meson --libdir=lib64 --prefix=/usr --buildtype=plain -Dgtk4=true builddiravx2
ninja -v -C builddiravx2
%install
export GCC_IGNORE_WERROR=1
export AR=gcc-ar
export RANLIB=gcc-ranlib
export NM=gcc-nm
CLEAR_INTERMEDIATE_CFLAGS="$CLEAR_INTERMEDIATE_CFLAGS -O3 -falign-functions=32 -fdebug-types-section -femit-struct-debug-baseonly -ffat-lto-objects -flto=auto -fno-semantic-interposition -g1 -gno-column-info -gno-variable-location-views -gz=zstd "
CLEAR_INTERMEDIATE_FCFLAGS="$CLEAR_INTERMEDIATE_FFLAGS -O3 -falign-functions=32 -fdebug-types-section -femit-struct-debug-baseonly -ffat-lto-objects -flto=auto -fno-semantic-interposition -g1 -gno-column-info -gno-variable-location-views -gz=zstd "
CLEAR_INTERMEDIATE_FFLAGS="$CLEAR_INTERMEDIATE_FFLAGS -O3 -falign-functions=32 -fdebug-types-section -femit-struct-debug-baseonly -ffat-lto-objects -flto=auto -fno-semantic-interposition -g1 -gno-column-info -gno-variable-location-views -gz=zstd "
CLEAR_INTERMEDIATE_CXXFLAGS="$CLEAR_INTERMEDIATE_CXXFLAGS -O3 -falign-functions=32 -fdebug-types-section -femit-struct-debug-baseonly -ffat-lto-objects -flto=auto -fno-semantic-interposition -g1 -gno-column-info -gno-variable-location-views -gz=zstd "
CFLAGS="$CLEAR_INTERMEDIATE_CFLAGS"
CXXFLAGS="$CLEAR_INTERMEDIATE_CXXFLAGS"
FFLAGS="$CLEAR_INTERMEDIATE_FFLAGS"
FCFLAGS="$CLEAR_INTERMEDIATE_FCFLAGS"
ASFLAGS="$CLEAR_INTERMEDIATE_ASFLAGS"
LDFLAGS="$CLEAR_INTERMEDIATE_LDFLAGS"
export GOAMD64=v2
mkdir -p %{buildroot}/usr/share/package-licenses/vte
cp %{_builddir}/vte-%{version}/COPYING.CC-BY-4-0 %{buildroot}/usr/share/package-licenses/vte/c0e2f3021a02d71ef52b88aac2ed98c996d7517d || :
cp %{_builddir}/vte-%{version}/COPYING.GPL3 %{buildroot}/usr/share/package-licenses/vte/a742ddd48b78f2a7a13ac678ce5ecacf93c771ee || :
cp %{_builddir}/vte-%{version}/COPYING.LGPL3 %{buildroot}/usr/share/package-licenses/vte/e203d4ef09d404fa5c03cf6590e44231665be689 || :
cp %{_builddir}/vte-%{version}/COPYING.XTERM %{buildroot}/usr/share/package-licenses/vte/704ec162c7e726301bf2b873fa99052b40250a99 || :
GOAMD64=v3
DESTDIR=%{buildroot}-v3 ninja -C builddiravx2 install
GOAMD64=v2
DESTDIR=%{buildroot} ninja -C builddir install
%find_lang vte-2.91
## install_append content
src=%{buildroot}/etc/profile.d/vte.sh
dest=%{buildroot}/usr/share/defaults/etc/profile.d
mkdir -p $dest
cp -a $src $dest/
## install_append end
/usr/bin/elf-move.py avx2 %{buildroot}-v3 %{buildroot} %{buildroot}/usr/share/clear/filemap/filemap-%{name}
%files
%defattr(-,root,root,-)
%files bin
%defattr(-,root,root,-)
/V3/usr/bin/vte-2.91
/V3/usr/bin/vte-2.91-gtk4
/usr/bin/vte-2.91
/usr/bin/vte-2.91-gtk4
%files data
%defattr(-,root,root,-)
/usr/lib64/girepository-1.0/Vte-2.91.typelib
/usr/lib64/girepository-1.0/Vte-3.91.typelib
/usr/share/gir-1.0/*.gir
/usr/share/glade/catalogs/vte-2.91.xml
/usr/share/glade/pixmaps/hicolor/16x16/actions/widget-vte-terminal.png
/usr/share/glade/pixmaps/hicolor/22x22/actions/widget-vte-terminal.png
/usr/share/vala/vapi/vte-2.91-gtk4.deps
/usr/share/vala/vapi/vte-2.91-gtk4.vapi
/usr/share/vala/vapi/vte-2.91.deps
/usr/share/vala/vapi/vte-2.91.vapi
%files dev
%defattr(-,root,root,-)
/usr/include/vte-2.91-gtk4/vte/vte.h
/usr/include/vte-2.91-gtk4/vte/vtedeprecated.h
/usr/include/vte-2.91-gtk4/vte/vteenums.h
/usr/include/vte-2.91-gtk4/vte/vteglobals.h
/usr/include/vte-2.91-gtk4/vte/vtemacros.h
/usr/include/vte-2.91-gtk4/vte/vtepty.h
/usr/include/vte-2.91-gtk4/vte/vteregex.h
/usr/include/vte-2.91-gtk4/vte/vteterminal.h
/usr/include/vte-2.91-gtk4/vte/vtetypebuiltins-gtk4.h
/usr/include/vte-2.91-gtk4/vte/vtetypebuiltins.h
/usr/include/vte-2.91-gtk4/vte/vteuuid.h
/usr/include/vte-2.91-gtk4/vte/vteversion.h
/usr/include/vte-2.91/vte/vte.h
/usr/include/vte-2.91/vte/vtedeprecated.h
/usr/include/vte-2.91/vte/vteenums.h
/usr/include/vte-2.91/vte/vteglobals.h
/usr/include/vte-2.91/vte/vtemacros.h
/usr/include/vte-2.91/vte/vtepty.h
/usr/include/vte-2.91/vte/vteregex.h
/usr/include/vte-2.91/vte/vteterminal.h
/usr/include/vte-2.91/vte/vtetypebuiltins-gtk3.h
/usr/include/vte-2.91/vte/vtetypebuiltins.h
/usr/include/vte-2.91/vte/vteuuid.h
/usr/include/vte-2.91/vte/vteversion.h
/usr/lib64/libvte-2.91-gtk4.so
/usr/lib64/libvte-2.91.so
/usr/lib64/pkgconfig/vte-2.91-gtk4.pc
/usr/lib64/pkgconfig/vte-2.91.pc
%files extras
%defattr(-,root,root,-)
/V3/usr/lib64/libvte-2.91-gtk4.so.0
/usr/lib64/libvte-2.91-gtk4.so.0
/usr/share/defaults/etc/profile.d/vte.sh
%files lib
%defattr(-,root,root,-)
/V3/usr/lib64/libvte-2.91.so.0.7800.3
/usr/lib64/libvte-2.91.so.0
/usr/lib64/libvte-2.91.so.0.7800.3
%files libexec
%defattr(-,root,root,-)
/V3/usr/libexec/vte-urlencode-cwd
/usr/libexec/vte-urlencode-cwd
%files license
%defattr(0644,root,root,0755)
/usr/share/package-licenses/vte/704ec162c7e726301bf2b873fa99052b40250a99
/usr/share/package-licenses/vte/a742ddd48b78f2a7a13ac678ce5ecacf93c771ee
/usr/share/package-licenses/vte/c0e2f3021a02d71ef52b88aac2ed98c996d7517d
/usr/share/package-licenses/vte/e203d4ef09d404fa5c03cf6590e44231665be689
%files services
%defattr(-,root,root,-)
/usr/lib/systemd/user/vte-spawn-.scope.d/defaults.conf
%files locales -f vte-2.91.lang
%defattr(-,root,root,-)