forked from Xfce-Classic/libxfce4ui-nocsd-copr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlibxfce4ui-nocsd.spec
358 lines (258 loc) · 12.2 KB
/
libxfce4ui-nocsd.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
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
# Review at https://bugzilla.redhat.com/show_bug.cgi?id=554599
%global xfceversion 4.16
%global namespc Libxfce4ui
%global origname libxfce4ui
Name: libxfce4ui-nocsd
Version: 4.16.0
Release: 3%{?dist}
Summary: Commonly used Xfce widgets (no CSD fork)
License: LGPLv2+
URL: https://github.com/Xfce-Classic/libxfce4ui-nocsd
Source0: https://github.com/Xfce-Classic/libxfce4ui-nocsd/releases/download/%{version}/libxfce4ui-%{version}.tar.bz2
## Downstream patches
# add more keyboard shortcuts to make multimedia keyboards work out of the box
# Terminal changed to xfce4-terminal in the patch
Patch10: libxfce4ui-%{xfceversion}-keyboard-shortcuts.patch
BuildRequires: gcc-c++
BuildRequires: pkgconfig(gobject-2.0) >= 2.24.0
BuildRequires: pkgconfig(gtk+-2.0) >= 2.20.0
BuildRequires: libSM-devel
BuildRequires: pkgconfig(libxfce4util-1.0) >= %{xfceversion}
BuildRequires: pkgconfig(libxfconf-0) >= %{xfceversion}
BuildRequires: pkgconfig(libstartup-notification-1.0) >= 0.4
BuildRequires: gtk-doc
BuildRequires: desktop-file-utils
BuildRequires: gtk3-devel
BuildRequires: glade-devel
BuildRequires: gettext
BuildRequires: intltool
BuildRequires: gobject-introspection-devel
BuildRequires: vala
BuildRequires: make
BuildRequires: libgtop2-devel
Provides: libxfce4ui
Conflicts: libxfce4ui
#
# libxfcegui4 was depreciated in the Xfce 4.8 days.
# Finally obsolete it now in 4.12
#
Obsoletes: libxfcegui4 < 4.10.0-9
%description
Libxfce4ui is used to share commonly used Xfce widgets among the Xfce
applications.
%package -n xfce4-about
Summary: Xfce 4 'About' dialog
%description -n xfce4-about
This package contains the 'About Xfce' dialog with info on the desktop
environment, it's contributors, and it's licensing.
%package devel
Summary: Development files for %{name}
Requires: %{name} = %{version}-%{release}
Requires: gtk2-devel
Requires: libxfce4util-devel
Requires: glade-devel
Requires: pkgconfig
Obsoletes: libxfcegui4-devel < 4.10.0-9
Provides: libxfce4ui-devel
Conflicts: libxfce4ui-devel
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%setup -q -n libxfce4ui-%{version}
%patch10
%build
%configure --disable-static
# Remove rpaths
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
export LD_LIBRARY_PATH="`pwd`/libxfce4ui/.libs"
%make_build
%install
%make_install
# fix permissions for installed libraries
chmod 755 %{buildroot}%{_libdir}/*.so
find %{buildroot} -name '*.la' -exec rm -f {} ';'
%find_lang %{origname}
# Move xfce4-about to the 'Documentation' category
desktop-file-install \
--delete-original \
--remove-category=X-Xfce-Toplevel \
--add-category=Documentation \
--add-category=System \
--dir=%{buildroot}%{_datadir}/applications \
%{buildroot}%{_datadir}/applications/xfce4-about.desktop
%ldconfig_scriptlets
%files -f %{origname}.lang
%license COPYING
%doc AUTHORS NEWS THANKS
%config(noreplace) %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml
%{_libdir}/*.so.*
%{_libdir}/girepository-1.0/%{namespc}-2.0.typelib
%{_datadir}/gir-1.0/%{namespc}-2.0.gir
%{_datadir}/vala/vapi/%{origname}-2.deps
%{_datadir}/vala/vapi/%{origname}-2.vapi
%files -n xfce4-about
%{_bindir}/xfce4-about
%{_datadir}/applications/xfce4-about.desktop
%{_datadir}/icons/hicolor/*/apps/*xfce*
%files devel
%doc TODO
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%doc %{_datadir}/gtk-doc/
%{_libdir}/glade/modules/lib*.so
%{_datadir}/glade/catalogs/%{origname}*.xml*
%{_datadir}/glade/pixmaps/hicolor/*/actions/*
%changelog
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
- Add libgtop2 to BR (provides system info in xfce4-about)
- Add system category to xfce4-about desktop file
- Update to 4.16.0
- Rebuilt for libgladeui soname bump
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
- Rebuilt for libgladeui soname bump
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
- Move away from gtk-2 glade (Add BR: glade-devel)
- Update to 4.14.1
- rebuild for xfconf vala
- Update to 4.13.7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
- rebuild for xfconf
- Enable gobject introspection
- Update to 4.13.6
- Update to 4.13.5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
- Update to 4.13.4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
- Add BR:gcc-c++
- Drop gtk-doc flag (fixes bug# 1582900)
- Modernize spec
- Drop all fedora version conditionals (no longer needed)
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
- Drop control-alt-del for logout shortcut. Fixes bug #1229218
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
- Obsolete libxfcegui4.
- Drop amixer for volume buttons should be handled by xfce4-pulseaudio-plugin now.
- Fixes bug #1211313
- Update to 4.12.1 with various bugfixes.
- Add shortcuts patch
- Update to latest stable release 4.12.0
- Remove upstreamed patches
- Built with GTK3 enabled
- change Terminal to xfce4-terminal in shortcuts patch
- Rebuilt for Fedora 23 Change
https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
- patch to fix bug #1095362
- patch13 - enable-shortcut.patch
- Add patches to fix bug #1095362
- Patch11 - enable-shift-modifier-in-shortcut-dialog.patch
- Patch12 - enable-shift-modifier-in-shortcut-grabber.patch
- Add patch to fix double fork issue that prevents some apps from running from the menu.
- Fixes bug #879922
- Conditionalize glade3 stuff so we can keep the same spec over branches.
- Re-enable glade3 module, it works now
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
- Don't ship xfce4-about in libxfce4ui-devel (#902537)
- Make a separate package for xfce4-about
- Add more keyboard shortcuts
- Move xfce4-about menu entry to 'Documentation' category
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
- Update to 4.10.0 final
- Update to 4.9.2 (Xfce 4.10pre2)
- Update to 4.9.1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
- Update to 4.8.1
- Fix Control shortcuts (#768704)
- Add review # and VCS key
- Rebuild for new libpng
- Remove requirements for libxfcegui4-devel now that glade support was omitted
- Disable glade as it still uses old API
- Rebuild for new glade
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
- Update to 4.8.0 final.
- Update to 4.7.6
- Update to 4.7.5
- Update to 4.7.4
- Update to 4.7.3
- Drop dependency on gtk-doc (#604399)
- Fix file conflict with libxfce4gui (#618719)
- Update to 4.7.2
- Rebuild for new glade version.
- Fix license tag
- Build gtk-doc
- Initial spec file, based on libxfcegui4.spec