Accepting request 329055 from GNOME:Next
Scripted push of project GNOME:Next OBS-URL: https://build.opensuse.org/request/show/329055 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/glib2?expand=0&rev=275
This commit is contained in:
parent
31c483960a
commit
0e05fbc694
151
_gsettings
Normal file
151
_gsettings
Normal file
@ -0,0 +1,151 @@
|
||||
#compdef gsettings
|
||||
|
||||
_gsettings() {
|
||||
_arguments : \
|
||||
'--schemadir[A directory to search for additional schemas]:additional schema:_path_files -/' \
|
||||
':gsettings command:_gsettings_commands' \
|
||||
'*: :_gsettings_rest_args'
|
||||
}
|
||||
|
||||
(( $+functions[_gsettings_commands] )) || _gsettings_commands() {
|
||||
local -a command_list
|
||||
command_list=(
|
||||
'help:show the help'
|
||||
'list-schemas:list installed schemas'
|
||||
'list-relocatable-schemas:list relocatable schemas'
|
||||
'list-keys:list keys in a schema'
|
||||
'list-children:list children of a schema'
|
||||
'list-recursively:list keys and values, recursively'
|
||||
'range:queries the range of a key'
|
||||
'get:get the value of a key'
|
||||
'set:set the value of a key'
|
||||
'reset:reset the value of a key'
|
||||
'reset-recursively:reset all values in a given schema'
|
||||
'writable:check if a key is writable'
|
||||
'monitor:watch for changes'
|
||||
)
|
||||
_describe -t commands 'gsettings commands' command_list
|
||||
}
|
||||
|
||||
(( $+functions[_gsettings_rest_args] )) || _gsettings_rest_args() {
|
||||
local CMD_IDX=2
|
||||
local SCHEMA_IDX=3
|
||||
local KEY_IDX=4
|
||||
local VALUE_IDX=5
|
||||
local offset=0
|
||||
local opt_schemadir schemadir cmd schema key
|
||||
|
||||
if [[ $#words -ge 4 && "${(Q)words[2]}" == --schemadir ]]; then
|
||||
opt_schemadir=--schemadir
|
||||
schemadir="${(Q)words[3]}"
|
||||
offset=2
|
||||
fi
|
||||
|
||||
cmd="${(Q)words[CMD_IDX+offset]}"
|
||||
|
||||
case $((CURRENT-offset)) in
|
||||
$SCHEMA_IDX)
|
||||
case "$cmd" in
|
||||
help)
|
||||
_gsettings_help_targets
|
||||
;;
|
||||
list-keys|list-children|list-recursively|range|get|set|reset| \
|
||||
reset-recursively|writable|monitor)
|
||||
_gsettings_schemas "$opt_schemadir" "$schemadir"
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
$KEY_IDX)
|
||||
case "$cmd" in
|
||||
get|set|range|reset|writable|monitor)
|
||||
schema="${(Q)words[SCHEMA_IDX+offset]}"
|
||||
_gsettings_keys "$opt_schemadir" "$schemadir" "$schema"
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
$VALUE_IDX)
|
||||
case "$cmd" in
|
||||
set)
|
||||
schema="${(Q)words[SCHEMA_IDX+offset]}"
|
||||
key="${(Q)words[KEY_IDX+offset]}"
|
||||
_gsettings_values "$opt_schemadir" "$schemadir" "$schema" "$key"
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
(( $+functions[_gsettings_help_targets] )) || _gsettings_help_targets() {
|
||||
local -a target_list
|
||||
target_list=(
|
||||
'help:show the help'
|
||||
'list-schemas:list installed schemas'
|
||||
'list-relocatable-schemas:list relocatable schemas'
|
||||
'list-keys:list keys in a schema'
|
||||
'list-children:list children of a schema'
|
||||
'list-recursively:list keys and values, recursively'
|
||||
'range:queries the range of a key'
|
||||
'get:get the value of a key'
|
||||
'set:set the value of a key'
|
||||
'reset:reset the value of a key'
|
||||
'reset-recursively:reset all values in a given schema'
|
||||
'writable:check if a key is writable'
|
||||
'monitor:watch for changes'
|
||||
)
|
||||
_describe -t help-target 'help targets' target_list
|
||||
}
|
||||
|
||||
(( $+functions[_gsettings_schemas] )) || _gsettings_schemas() {
|
||||
local -a schema_list
|
||||
schema_list=(
|
||||
${(@f)"$(gsettings $1 $2 list-schemas 2>/dev/null)"}
|
||||
${(@f)"$(gsettings $1 $2 list-relocatable-schemas 2>/dev/null)"}
|
||||
)
|
||||
if [[ $#schema_list == 0 ]]; then
|
||||
schema_list=(
|
||||
${(@f)"$(gsettings list-schemas 2>/dev/null)"}
|
||||
${(@f)"$(gsettings list-relocatable-schemas 2>/dev/null)"}
|
||||
)
|
||||
fi
|
||||
_describe -t schemas 'schemas' schema_list -V
|
||||
}
|
||||
|
||||
(( $+functions[_gsettings_keys] )) || _gsettings_keys() {
|
||||
local -a key_list
|
||||
key_list=(${(@f)"$(gsettings $1 $2 list-keys $3 2>/dev/null)"})
|
||||
if [[ $#key_list == 0 ]]; then
|
||||
key_list=(${(@f)"$(gsettings list-keys $3 2>/dev/null)"})
|
||||
fi
|
||||
_describe -t keys 'keys' key_list -V
|
||||
}
|
||||
|
||||
# Complete possible values including bool and enum
|
||||
(( $+functions[_gsettings_values] )) || _gsettings_values() {
|
||||
local -a range
|
||||
range=(${(@f)"$(gsettings $1 $2 range $3 $4 2>/dev/null)"})
|
||||
if [[ $#range == 0 ]]; then
|
||||
range=(${(@f)"$(gsettings range $3 $4 2>/dev/null)"})
|
||||
fi
|
||||
case "$range[1]" in
|
||||
'type b')
|
||||
_gsettings_complete_bool
|
||||
;;
|
||||
'enum')
|
||||
_gsettings_complete_enum $range[2,-1]
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
||||
(( $+functions[_gsettings_complete_bool] )) || _gsettings_complete_bool() {
|
||||
local -a bool_list
|
||||
bool_list=('true' 'false')
|
||||
_describe -t val-bool 'possible values (bool)' bool_list -V
|
||||
}
|
||||
|
||||
(( $+functions[_gsettings_complete_enum] )) || _gsettings_complete_enum() {
|
||||
local -a enum_list
|
||||
enum_list=(${(@Q)"${@}"})
|
||||
_describe -t val-enum 'possible values' enum_list -V
|
||||
}
|
||||
|
||||
_gsettings
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8811deacaf8a503d0a9b701777ea079ca6a4277be10e3d730d2112735d5eca07
|
||||
size 7132940
|
3
glib-2.45.7.tar.xz
Normal file
3
glib-2.45.7.tar.xz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:27918e1fd1d3f51bb245ce600b0329d1f0261995342f5f83e5a2867857f91e3e
|
||||
size 7177640
|
140
glib2.changes
140
glib2.changes
@ -1,3 +1,143 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 2 09:30:55 UTC 2015 - zaitor@opensuse.org
|
||||
|
||||
- Update to version 2.45.7:
|
||||
+ Add G_FILE_ATTRIBUTE_STANDARD_IS_VOLATILE for use by
|
||||
non-POSIX-like backends (e.g. cloud storage).
|
||||
+ GFileMonitor: Make the inotify backend work with atomic renames
|
||||
again.
|
||||
+ GSettings: change notification is again working
|
||||
unconditionally.
|
||||
+ GListStore has a sort function now.
|
||||
+ Test infrastructure:
|
||||
- Tests are now required to have unique names.
|
||||
- TAP support has been improved.
|
||||
- A macro for asserting that two memory regions have identical
|
||||
content has been added.
|
||||
+ Bugs fixed: bgo#708525, bgo#742849, bgo#744060, bgo#747364,
|
||||
bgo#749492, bgo#752769, bgo#753745, bgo#754152, bgo#754211,
|
||||
bgo#754264, bgo#754283, bgo#754284, bgo#754286, bgo#754307.
|
||||
+ Updated translations.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 28 08:20:25 UTC 2015 - fcrozat@suse.com
|
||||
|
||||
- Add zsh completion for gsettings from
|
||||
https://github.com/jmatsuzawa/zsh-comp-gsettings (MIT license).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 20 10:06:37 UTC 2015 - zaitor@opensuse.org
|
||||
|
||||
- Update to version 2.45.6:
|
||||
+ Fix a test failure and a build failure.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 19 20:17:46 UTC 2015 - zaitor@opensuse.org
|
||||
|
||||
- Update to version 2.45.5:
|
||||
+ GNetworkMonitor now provides information about metered
|
||||
networks.
|
||||
+ g_mem_set_vtable has been deprecated; it has not been working
|
||||
for quite a while. The recommendation is to use valgrind, or
|
||||
replace malloc itself.
|
||||
+ Bugs fixed: bgo#656325, bgo#741779, bgo#741822, bgo#742386,
|
||||
bgo#743018, bgo#750282, bgo#751358, bgo#751592, bgo#751598,
|
||||
bgo#751610, bgo#751751, bgo#752210, bgo#752656, bgo#752767,
|
||||
bgo#753278, bgo#753285.
|
||||
+ Updated translations.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jul 21 09:35:32 UTC 2015 - zaitor@opensuse.org
|
||||
|
||||
- Update to version 2.45.4:
|
||||
+ Bugs fixed: bgo#727829, bgo#741901, bgo#746339, bgo#747676,
|
||||
bgo#748610, bgo#749911, bgo#749912, bgo#750625, bgo#750807,
|
||||
bgo#751160, bgo#751672, bgo#751731, bgo#751737, bgo#751798,
|
||||
bgo#752089, bgo#752293.
|
||||
+ Updated translations.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 25 07:59:12 UTC 2015 - zaitor@opensuse.org
|
||||
|
||||
- Update to version 2.45.3:
|
||||
+ Improve performance of g_signal_handler_disconnect for signals
|
||||
with many handlers.
|
||||
+ GDBus has gained a new call flag to allow interactive
|
||||
authorization.
|
||||
+ GSettings:
|
||||
- New API: g_settings_schema_list_keys.
|
||||
- Deprecated: g_settings_list_keys.
|
||||
+ OS X:
|
||||
- Implement GNotification.
|
||||
- Bump the OS X requirement to 10.9.
|
||||
+ Windows:
|
||||
- Add registry reading API.
|
||||
- Reimplement GAppInfo using registry information.
|
||||
+ Bugs fixed: bgo#666831, bgo#728489, bgo#730168, bgo#733325,
|
||||
bgo#734888, bgo#737009, bgo#738185, bgo#738504, bgo#739122,
|
||||
bgo#739424, bgo#739616, bgo#740308, bgo#740516, bgo#741788,
|
||||
bgo#745013, bgo#747146, bgo#747941, bgo#748727, bgo#749693,
|
||||
bgo#750203, bgo#750322, bgo#750344, bgo#750369, bgo#750386,
|
||||
bgo#750399, bgo#750573, bgo#750918, bgo#751122, bgo#479730.
|
||||
+ Updated translations.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 26 11:04:19 UTC 2015 - dimstar@opensuse.org
|
||||
|
||||
- Update to version 2.45.2:
|
||||
+ Improve error reporting in glib-compile-schemas.
|
||||
+ Add introspection annotations to GListStore.
|
||||
+ Bugs fixed: bgo#696749, bgo#723394, bgo#724113, bgo#725981,
|
||||
bgo#733325, bgo#744895, bgo#747882, bgo#748534, bgo#748612,
|
||||
bgo#748614, bgo#748834, bgo#749079, bgo#749080, bgo#749180,
|
||||
bgo#749352, bgo#749353.
|
||||
+ Updated translations.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 13 10:49:39 UTC 2015 - zaitor@opensuse.org
|
||||
|
||||
- Update to version 2.45.1:
|
||||
+ The GSettings schema compiler, glib-compile-schemas has been
|
||||
changed to reject schema xml that has duplicate <summary> or
|
||||
<description> elements. Such elements typically occur when
|
||||
translations are merged into the schema, with xml:lang
|
||||
attributes. This is not the correct way to translate schemas.
|
||||
Instead keep the translations in the .mo file and set the
|
||||
gettext-domain attribute on the <schemalist> element.
|
||||
+ The file monitoring infrastructure has been rewritten, and all
|
||||
backends have seen major improvements.
|
||||
+ The inotify backend is reporting events with less delay (no
|
||||
event will be delayed more than 10ms) and wakeups due to file
|
||||
monitoring have been significantly reduced. A CHANGES_DONE
|
||||
event will also be sent when new files appear.
|
||||
+ The poll implementation is now using the thread default main
|
||||
context.
|
||||
+ The fam implmentation is now running in the worker thread.
|
||||
+ The fen implementation has been removed, since it was
|
||||
unmaintained.
|
||||
+ The GSettings schema compiler, glib-compile-schemas, is more
|
||||
strict about rejecting schemas with xml:lang style merged
|
||||
translations.
|
||||
+ Schema translations should be done by specifying the gettext
|
||||
domain in the xml, and keeping the translations in gettext. To
|
||||
avoid breaking already-installed schemas, this change is only
|
||||
taking effect when you use the --strict option.
|
||||
+ The hardcoded 10-thread limit of GTask's thread pool has been
|
||||
removed, since it was prone to causing deadlocks. The thread
|
||||
pool is now allowed to grow dynamically and will shrink back
|
||||
over time.
|
||||
+ GSimpleAsyncResult has been deprecated in favor of GTask.
|
||||
+ The algorithm used by GAppInfo to find default handlers for
|
||||
mime types has been tweaked to prefer apps that handle the
|
||||
specific subtype over default handlers for a generic supertype.
|
||||
+ Bugs fixed: bgo#627285, bgo#631597, bgo#661767, bgo#687223,
|
||||
bgo#711547, bgo#719966, bgo#726447, bgo#728663, bgo#728669,
|
||||
bgo#730188, bgo#733325, bgo#738207, bgo#739850, bgo#741791,
|
||||
bgo#744282, bgo#745255, bgo#745745, bgo#745821, bgo#746749,
|
||||
bgo#746753, bgo#747209, bgo#747349, bgo#747363, bgo#747472,
|
||||
bgo#747541, bgo#747772, bgo#748019, bgo#748177.
|
||||
+ Updated translations.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 13 10:43:38 UTC 2015 - zaitor@opensuse.org
|
||||
|
||||
|
12
glib2.spec
12
glib2.spec
@ -20,14 +20,14 @@
|
||||
|
||||
Name: glib2
|
||||
%define _name glib
|
||||
Version: 2.44.1
|
||||
Version: 2.45.7
|
||||
Release: 0
|
||||
# FIXME: find out if tapsets should really be in devel package or in main package
|
||||
Summary: General-Purpose Utility Library
|
||||
License: LGPL-2.1+
|
||||
Group: System/Libraries
|
||||
Url: http://www.gtk.org/
|
||||
Source: http://download.gnome.org/sources/glib/2.44/%{_name}-%{version}.tar.xz
|
||||
Source: http://download.gnome.org/sources/glib/2.45/%{_name}-%{version}.tar.xz
|
||||
Source1: glib2.sh
|
||||
Source2: glib2.csh
|
||||
# Not upstream file. Only proposes upstream packages:
|
||||
@ -38,6 +38,8 @@ Source6: macros.glib2
|
||||
# Not depending on gtk-doc shortens bootstrap compilation path.
|
||||
# Please update this file from the latest gtk-doc package:
|
||||
Source7: gtk-doc.m4
|
||||
# zsh completion from https://github.com/jmatsuzawa/zsh-comp-gsettings
|
||||
Source8: _gsettings
|
||||
Source98: glib2-rpmlintrc
|
||||
Source99: baselibs.conf
|
||||
# PATCH-FEATURE-UPSTREAM glib2-bgo569829-gettext-gkeyfile.patch fate300461 bgo569829 vuntz@novell.com -- Look for translation of desktop entry strings via gettext, part that we share with Ubuntu and try to push upstream
|
||||
@ -311,6 +313,9 @@ rm %{buildroot}%{_libdir}/gio/modules/libgiofam.a
|
||||
# Install rpm macros
|
||||
mkdir -p %{buildroot}%{_sysconfdir}/rpm
|
||||
cp %{S:6} %{buildroot}%{_sysconfdir}/rpm
|
||||
# Install zsh completion for gsettings
|
||||
mkdir -p %{buildroot}%{_datadir}/zsh/site-functions/
|
||||
cp %{S:8} %{buildroot}%{_datadir}/zsh/site-functions/
|
||||
%fdupes %{buildroot}
|
||||
|
||||
%posttrans
|
||||
@ -385,6 +390,9 @@ fi
|
||||
%{_datadir}/bash-completion/completions/gdbus
|
||||
%{_datadir}/bash-completion/completions/gresource
|
||||
%{_datadir}/bash-completion/completions/gsettings
|
||||
%dir %{_datadir}/zsh
|
||||
%dir %{_datadir}/zsh/site-functions
|
||||
%{_datadir}/zsh/site-functions/_gsettings
|
||||
%{_mandir}/man1/gapplication.1%{?ext_man}
|
||||
%{_mandir}/man1/gdbus.1%{?ext_man}
|
||||
%{_mandir}/man1/gio-querymodules.1%{?ext_man}
|
||||
|
Loading…
x
Reference in New Issue
Block a user