2007-01-05 16:49:20 +01:00
#
2011-01-14 16:13:17 +01:00
# spec file for package glib2
2007-01-05 16:49:20 +01:00
#
2018-02-02 17:33:01 +01:00
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
2007-01-05 16:49:20 +01:00
#
2008-08-13 23:29:18 +02:00
# 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.
2007-01-05 16:49:20 +01:00
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
2012-02-08 11:55:24 +01:00
2010-11-01 16:38:05 +01:00
%define with_systemtap 0
2007-01-05 16:49:20 +01:00
%define _name glib
2017-08-31 09:45:56 +02:00
Name : glib2
2018-03-13 09:22:51 +01:00
Version : 2.56.0
2011-12-21 05:10:18 +01:00
Release : 0
2010-08-09 15:47:13 +02:00
# FIXME: find out if tapsets should really be in devel package or in main package
2010-10-15 12:36:52 +02:00
Summary : General-Purpose Utility Library
2018-03-09 11:10:43 +01:00
License : LGPL-2.1-or-later
2017-09-14 13:45:01 +02:00
Group : Development/Libraries/C and C++
2018-03-09 11:10:43 +01:00
URL : http://www.gtk.org/
2018-03-13 09:22:51 +01:00
Source : http://download.gnome.org/sources/glib/2.56/%{_name}-%{version} .tar.xz
2007-01-05 16:49:20 +01:00
Source1 : glib2.sh
Source2 : glib2.csh
2011-07-07 09:44:57 +02:00
# Not upstream file. Only proposes upstream packages:
2008-04-09 21:41:41 +02:00
Source4 : glib2-upstream-gnome_defaults.conf
2011-07-07 09:44:57 +02:00
# Some documentation for people writing branding packages, shipped in the branding-upstream package
Source5 : README.Gsettings-overrides
Source6 : macros.glib2
2007-08-09 17:34:29 +02:00
# Not depending on gtk-doc shortens bootstrap compilation path.
2007-11-29 22:04:32 +01:00
# Please update this file from the latest gtk-doc package:
2011-07-07 09:44:57 +02:00
Source7 : gtk-doc.m4
2015-09-04 13:33:06 +02:00
# zsh completion from https://github.com/jmatsuzawa/zsh-comp-gsettings
2015-09-10 11:05:51 +02:00
Source8 : gsettings.zsh
2014-07-18 11:24:31 +02:00
Source98 : glib2-rpmlintrc
2009-12-18 12:36:58 +01:00
Source99 : baselibs.conf
2009-02-06 17:03:35 +01:00
# 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
Patch10 : glib2-bgo569829-gettext-gkeyfile.patch
# PATCH-FEATURE-OPENSUSE glib2-fate300461-gettext-gkeyfile-suse.patch fate300461 vuntz@novell.com -- Look for translation of desktop entry strings via gettext, part that deals with the openSUSE specific infrastructure (with desktop_translations)
Patch11 : glib2-fate300461-gettext-gkeyfile-suse.patch
2012-06-09 12:31:02 +02:00
# PATCH-FIX-OPENSUSE glib2-suppress-schema-deprecated-path-warning.patch rh#814053 badshah400@gmail.com -- Suppress the deprecated path warning since it fills up screen unnecessarily during package installations/upgrade.
Patch13 : glib2-suppress-schema-deprecated-path-warning.patch
2013-11-18 21:25:22 +01:00
# PATCH-FIX-OPENSUSE glib2-dbus-socket-path.patch bnc#845287 dimstar@opensuse.org -- Have gio look for the system dbus socket in /run instead of /var/run.
Patch14 : glib2-dbus-socket-path.patch
2017-06-28 11:40:28 +02:00
# PATCH-FIX-OPENSUSE glib2-gdbus-codegen-version.patch olaf@aepfle.de -- Remove version string from files generated by gdbus-codegen
2017-06-07 15:34:11 +02:00
Patch16 : glib2-gdbus-codegen-version.patch
Accepting request 555796 from home:xiaoguang_wang:branches:GNOME:Factory
- Add glib2-gsettings-overrides-per-session.patch: gsettings
default value can be overridden depending on session
(bgo#746592 bsc#1070090).
+ Bugs fixed: bgo#686895, bgo#688704, bgo#602715, bgo#688377,
+ GTask (the new GAsyncResult implementation) has landed
- bgo#624991 GSettings mapping for G_TYPE_STRV
- g_mkstemp_full is a variant of g_mkstemp that allows to
- bgo#593232 g_rand_new: read no more than requested from
+ GIO:
+ GIO:
- SLE-11 uses PPC64 instead of PPC, adapt baselibs.conf
- add gcc-c++ to buildreqires to work around libtool problem
* New API to enable out-of-process volume monitors:
g_signal_override_class_handler
- fix build
icons for mime types
additional GIO modules
bgo#521045, bgo#521672, bgo#521946, bgo#522335, bgo#523015,
- obsolete glib2-<arch> via baselibs.conf
recommendation of gvfs.
- Tag patches
* g_win32_get_package_installation_directory_of_module: new
function which supersedes
* The MD5 implementation works correctly on buffers
it easier to write threadsafe one-time initialization functions
* Add g_string_chunk_clear() for clearing a
* Add G_GNUC_MAY_ALIAS which wraps the gcc may_alias
- removed obsolete patch glib2-unexpanded-variables.patch (#249204)
343825 Double expansion in m4macros/glib-gettext.m4 will fail with
OBS-URL: https://build.opensuse.org/request/show/555796
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/glib2?expand=0&rev=352
2017-12-13 11:18:47 +01:00
# PATCH-FIX-UPSTREAM glib2-gsettings-overrides-per-session.patch bgo#746592 bsc#1070090 xwang@suse.com -- gsettings default value can be overridden depending on session
Patch18 : glib2-gsettings-overrides-per-session.patch
2011-12-12 17:08:31 +01:00
BuildRequires : automake
2012-09-07 17:28:34 +02:00
BuildRequires : docbook-xsl-stylesheets
2009-12-08 10:34:05 +01:00
BuildRequires : fdupes
2014-01-08 20:59:27 +01:00
BuildRequires : gamin-devel
2009-12-08 10:34:05 +01:00
BuildRequires : gcc-c++
2010-08-09 15:47:13 +02:00
BuildRequires : libselinux-devel
2014-09-11 23:24:11 +02:00
# glib/Makefile.am calls config.status, and thus triggers a bootstrap
BuildRequires : libtool
2017-08-31 09:45:56 +02:00
BuildRequires : pkgconfig
2017-11-30 10:57:30 +01:00
BuildRequires : python3-base
2011-06-16 16:29:42 +02:00
# gdbus-codegen is run during the build, so we need python-xml
2017-11-30 10:57:30 +01:00
BuildRequires : python3-xml
2017-08-31 09:45:56 +02:00
BuildRequires : xsltproc
# Needed for gresource
BuildRequires : pkgconfig(libelf) >= 0.8.12
2018-03-09 11:10:43 +01:00
BuildRequires : pkgconfig(libffi) >= 3.0.0
2017-08-31 09:45:56 +02:00
BuildRequires : pkgconfig(libpcre) >= 8.13
2018-03-09 11:10:43 +01:00
BuildRequires : pkgconfig(mount) >= 2.28
2017-08-31 09:45:56 +02:00
BuildRequires : pkgconfig(zlib)
2018-03-09 11:10:43 +01:00
# FIXME: use proper Requires(pre/post/preun/...)
2017-08-31 09:45:56 +02:00
PreReq : /bin/sed
# For temporary %%posttrans script only.
PreReq : coreutils
2010-11-01 16:38:05 +01:00
%if 0%{?with_systemtap}
2017-08-31 09:45:56 +02:00
BuildRequires : systemtap-sdt-devel
2010-10-01 11:09:08 +02:00
# systemtap-sdt-devel on openSUSE 11.3 was missing a Requires: python.
%if %{?suse_version} <= 1130
BuildRequires : python
%endif
2010-11-01 16:38:05 +01:00
%endif
2017-02-15 12:03:27 +01:00
%if !0%{?is_opensuse}
2009-12-08 10:34:05 +01:00
BuildRequires : translation-update-upstream
2017-02-15 12:03:27 +01:00
%endif
2007-01-05 16:49:20 +01:00
%description
2010-10-15 12:36:52 +02:00
GLib is a general-purpose utility library, which provides many useful
data types, macros, type conversions, string utilities, file utilities,
a main loop abstraction, and so on.
2007-01-05 16:49:20 +01:00
2010-08-09 15:47:13 +02:00
%package tools
2017-09-14 13:45:01 +02:00
Summary : Tools from glib2, a general-purpose utility library
2010-08-09 15:47:13 +02:00
Group : Development/Libraries/C and C++
%description tools
2010-10-15 12:36:52 +02:00
GLib is a general-purpose utility library, which provides many useful
data types, macros, type conversions, string utilities, file utilities,
a main loop abstraction, and so on.
2010-08-09 15:47:13 +02:00
2011-07-07 09:44:57 +02:00
%package -n gio-branding-upstream
Summary : Upstream definitions of default settings and applications
2010-10-15 12:36:52 +02:00
Group : System/Libraries
2011-07-07 09:44:57 +02:00
Requires : libgio-2_0-0 = %{version}
2017-08-31 09:45:56 +02:00
Supplements: packageand(libgio-2_0-0:branding-upstream)
2018-03-09 11:10:43 +01:00
Conflicts : gio-branding
2011-07-07 09:44:57 +02:00
Provides : %{name} -branding-upstream = %{version}
Obsoletes : %{name} -branding-upstream < %{version}
Provides : gio-branding = %{version}
BuildArch : noarch
2008-04-09 21:41:41 +02:00
#BRAND: The /etc/gnome_defaults.conf allows to define arbitrary
#BRAND: applications as preferred defaults.
2011-07-07 11:14:15 +02:00
#BRAND: A /usr/share/glib-2.0/schemas/$NAME.gschema.override file can
#BRAND: be used to override the default value for GSettings keys. See
#BRAND: README.Gsettings-overrides for more details. The branding
#BRAND: package should then have proper Requires for features changed
#BRAND: with such an override file.
2008-04-09 21:41:41 +02:00
# NOTE: gnome_defaults is not an upstream feature, but a SuSE
# enhancement, but to conform branding conventions, the package is named
2011-07-07 09:44:57 +02:00
# as gio-branding-upstream.
2008-04-09 21:41:41 +02:00
2011-07-07 09:44:57 +02:00
%description -n gio-branding-upstream
This package provides upstream defaults for settings stored with
GSettings and applications used by the MIME system.
2008-04-09 21:41:41 +02:00
2007-01-05 16:49:20 +01:00
%package devel
2017-09-14 13:45:01 +02:00
Summary : Development files for glib, a general-purpose utility library
2008-04-06 05:42:23 +02:00
# Now require the subpackages too
2017-08-31 09:45:56 +02:00
Group : Development/Libraries/C and C++
2010-08-09 15:47:13 +02:00
Requires : glib2-tools = %{version}
2017-08-31 09:45:56 +02:00
Requires : glibc-devel
2012-03-11 18:46:01 +01:00
Requires : libgio-2_0-0 = %{version}
2008-08-21 17:54:30 +02:00
Requires : libglib-2_0-0 = %{version}
Requires : libgmodule-2_0-0 = %{version}
Requires : libgobject-2_0-0 = %{version}
2012-03-11 18:46:01 +01:00
Requires : libgthread-2_0-0 = %{version}
2017-08-31 09:45:56 +02:00
Requires : pkgconfig
2011-06-16 16:22:41 +02:00
# Required by gdbus-codegen
2017-11-30 10:57:30 +01:00
Requires : python3-xml
2010-08-09 15:47:13 +02:00
Provides : glib2-doc = 2.19.6
Obsoletes : glib2-doc < 2.19.6
2008-11-28 14:40:37 +01:00
#
2007-01-05 16:49:20 +01:00
%description devel
2010-10-15 12:36:52 +02:00
GLib is a general-purpose utility library, which provides many useful
data types, macros, type conversions, string utilities, file utilities,
a main loop abstraction, and so on.
2010-10-14 09:46:51 +02:00
2010-10-15 12:36:52 +02:00
This package contains the development files for GLib.
2010-10-14 09:46:51 +02:00
2010-10-15 12:36:52 +02:00
%package devel-static
2017-09-14 13:45:01 +02:00
Summary : Static libraries for glib, a general-purpose utility library
2010-10-15 12:36:50 +02:00
Group : Development/Libraries/C and C++
2017-08-31 09:45:56 +02:00
Requires : %{name} -devel = %{version}
2010-10-15 12:36:52 +02:00
%description devel-static
GLib is a general-purpose utility library, which provides many useful
data types, macros, type conversions, string utilities, file utilities,
a main loop abstraction, and so on.
This package contains static versions of the GLib libraries.
%package -n libglib-2_0-0
Summary : General-Purpose Utility Library
Group : System/Libraries
2011-02-13 21:41:37 +01:00
Recommends: %{name} -lang
2010-08-09 15:47:13 +02:00
Provides : %{name} = %{version}
Obsoletes : %{name} < %{version}
2008-11-28 14:40:37 +01:00
#
2008-04-06 05:42:23 +02:00
%description -n libglib-2_0-0
2010-10-15 12:36:52 +02:00
GLib is a general-purpose utility library, which provides many useful
data types, macros, type conversions, string utilities, file utilities,
a main loop abstraction, and so on.
2008-04-06 05:42:23 +02:00
%package -n libgmodule-2_0-0
2010-10-15 12:36:52 +02:00
Summary : General-Purpose Utility Library -- Library for Modules
Group : System/Libraries
2008-04-06 05:42:23 +02:00
%description -n libgmodule-2_0-0
2010-10-15 12:36:52 +02:00
GLib is a general-purpose utility library, which provides many useful
data types, macros, type conversions, string utilities, file utilities,
a main loop abstraction, and so on.
The libgmodule library provides a portable way to dynamically load
object files (commonly known as 'plug-ins' ).
2008-04-06 05:42:23 +02:00
%package -n libgio-2_0-0
2017-09-14 13:45:01 +02:00
Summary : A virtual file system library API
2017-08-31 09:45:56 +02:00
# The tools are useful for people having libgio
2010-10-15 12:36:52 +02:00
Group : System/Libraries
2017-08-31 09:45:56 +02:00
Requires : %{name} -tools
# bnc#678518: libgio interacts with others by means of dbus-launch
Requires : dbus-launch
2011-07-07 09:44:57 +02:00
Requires : gio-branding = %{version}
2010-09-27 16:06:20 +02:00
# bnc#555605: shared-mime-info is required by libgio to properly detect mime types.
Requires : shared-mime-info
2011-07-07 09:44:57 +02:00
# Needed for branding packages
Provides : gio = %{version}
2008-04-06 05:42:23 +02:00
# Temporarily disable this, pending further discussion
# Recommends: gvfs
%description -n libgio-2_0-0
2010-10-15 12:36:52 +02:00
GLib is a general-purpose utility library, which provides many useful
data types, macros, type conversions, string utilities, file utilities,
a main loop abstraction, and so on.
GIO provides a modern, easy-to-use VFS API.
2008-04-06 05:42:23 +02:00
2008-04-09 21:41:41 +02:00
%package -n libgio-fam
2017-09-14 13:45:01 +02:00
Summary : GIO module to use FAM
2018-02-02 17:33:01 +01:00
# we need gio-querymodules in %%post/%%postun
2016-11-08 09:58:13 +01:00
Group : System/Libraries
2010-08-09 15:47:13 +02:00
Requires(post) : %{name} -tools
Requires(postun) : %{name} -tools
2008-04-09 21:41:41 +02:00
Supplements: packageand(libgio-2_0-0:fam)
%description -n libgio-fam
2010-10-15 12:36:52 +02:00
GLib is a general-purpose utility library, which provides many useful
data types, macros, type conversions, string utilities, file utilities,
a main loop abstraction, and so on.
This packages provides a GIO module to use FAM for file monitoring.
2008-04-09 21:41:41 +02:00
2008-04-06 05:42:23 +02:00
%package -n libgthread-2_0-0
2017-09-14 13:45:01 +02:00
Summary : Portable API from glib wrapping system threads
2010-10-15 12:36:52 +02:00
Group : System/Libraries
2008-04-06 05:42:23 +02:00
%description -n libgthread-2_0-0
2010-10-15 12:36:52 +02:00
GLib is a general-purpose utility library, which provides many useful
data types, macros, type conversions, string utilities, file utilities,
a main loop abstraction, and so on.
The libgthread library provides a portable way to write multi-threaded
software.
2008-04-06 05:42:23 +02:00
%package -n libgobject-2_0-0
2017-09-14 13:45:01 +02:00
Summary : Object-Oriented Framework for C
2010-10-15 12:36:52 +02:00
Group : System/Libraries
2008-04-06 05:42:23 +02:00
%description -n libgobject-2_0-0
2010-10-15 12:36:52 +02:00
GLib is a general-purpose utility library, which provides many useful
data types, macros, type conversions, string utilities, file utilities,
a main loop abstraction, and so on.
The GObject library provides an object-oriented framework for C.
2008-04-06 05:42:23 +02:00
2007-08-09 15:25:12 +02:00
%lang_package
2017-08-31 09:45:56 +02:00
2007-01-05 16:49:20 +01:00
%prep
%setup -q -n %{_name}-%{version}
2017-02-15 12:03:27 +01:00
%if !0%{?is_opensuse}
2009-11-24 21:54:56 +01:00
translation-update-upstream
2017-02-15 12:03:27 +01:00
%endif
2009-02-06 17:03:35 +01:00
%patch10 -p1
%patch11 -p1
2012-06-09 12:31:02 +02:00
%patch13 -p1
2013-10-06 17:08:46 +02:00
%patch14 -p1
2017-06-07 15:34:11 +02:00
%patch16 -p1
Accepting request 555796 from home:xiaoguang_wang:branches:GNOME:Factory
- Add glib2-gsettings-overrides-per-session.patch: gsettings
default value can be overridden depending on session
(bgo#746592 bsc#1070090).
+ Bugs fixed: bgo#686895, bgo#688704, bgo#602715, bgo#688377,
+ GTask (the new GAsyncResult implementation) has landed
- bgo#624991 GSettings mapping for G_TYPE_STRV
- g_mkstemp_full is a variant of g_mkstemp that allows to
- bgo#593232 g_rand_new: read no more than requested from
+ GIO:
+ GIO:
- SLE-11 uses PPC64 instead of PPC, adapt baselibs.conf
- add gcc-c++ to buildreqires to work around libtool problem
* New API to enable out-of-process volume monitors:
g_signal_override_class_handler
- fix build
icons for mime types
additional GIO modules
bgo#521045, bgo#521672, bgo#521946, bgo#522335, bgo#523015,
- obsolete glib2-<arch> via baselibs.conf
recommendation of gvfs.
- Tag patches
* g_win32_get_package_installation_directory_of_module: new
function which supersedes
* The MD5 implementation works correctly on buffers
it easier to write threadsafe one-time initialization functions
* Add g_string_chunk_clear() for clearing a
* Add G_GNUC_MAY_ALIAS which wraps the gcc may_alias
- removed obsolete patch glib2-unexpanded-variables.patch (#249204)
343825 Double expansion in m4macros/glib-gettext.m4 will fail with
OBS-URL: https://build.opensuse.org/request/show/555796
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/glib2?expand=0&rev=352
2017-12-13 11:18:47 +01:00
%patch18 -p1
2017-08-31 09:45:56 +02:00
cp -a %{SOURCE1} %{SOURCE2} %{SOURCE5} .
cp -a %{SOURCE4} gnome_defaults.conf
2007-08-09 17:34:29 +02:00
if ! test -f %{_datadir} /aclocal/gtk-doc.m4 ; then
2017-08-31 09:45:56 +02:00
cp -a %{SOURCE7} m4macros/
2007-08-09 17:34:29 +02:00
fi
2018-03-09 11:10:43 +01:00
# replace /usr/bin/env shebangs
# /usr/bin/env @PYTHON@ -> @PYTHON@ (will be replaced by correct py interpreter by configure
grep " %{_bindir} / e n v @ P Y T H O N @ " . -rl | xargs sed -i " s | %{_bindir} / e n v @ P Y T H O N @ | @ P Y T H O N @ | g "
2010-12-14 19:22:06 +01:00
2007-01-05 16:49:20 +01:00
%build
2014-09-11 23:24:11 +02:00
# glib/Makefile.am always calls config.status, which requires aclocal
# in a matching version. Regenerate it now because we likely won't have
# the version of aclocal that was originally used.
autoreconf -fi
2007-04-13 01:17:44 +02:00
%configure \
2007-11-29 22:04:32 +01:00
--enable-static \
2008-08-22 19:45:52 +02:00
--enable-selinux \
2012-09-07 17:28:34 +02:00
--enable-man \
2017-11-30 10:57:30 +01:00
--with-python=%{_bindir} /python3 \
2010-11-01 16:38:05 +01:00
%if 0%{?with_systemtap}
2010-10-15 12:36:52 +02:00
--enable-systemtap \
2010-12-14 19:22:06 +01:00
%endif
2011-06-16 16:29:42 +02:00
--with-pcre=system
2018-03-09 11:10:43 +01:00
%make_build
2010-12-14 19:22:06 +01:00
2008-07-21 00:27:14 +02:00
%check
2009-02-06 17:03:35 +01:00
# make check does not work on x86_64. See http://bugzilla.gnome.org/show_bug.cgi?id=554969
2017-09-14 13:45:01 +02:00
# %%{__make} %%{?_smp_mflags} check
2007-01-05 16:49:20 +01:00
%install
2017-09-14 13:45:01 +02:00
%make_install
2009-12-08 10:34:05 +01:00
%if 0%{?suse_version} <= 1120
2017-08-31 09:45:56 +02:00
rm %{buildroot} %{_datadir} /locale/en@shaw/LC_MESSAGES/*
2009-12-08 10:34:05 +01:00
%endif
2011-02-13 21:41:37 +01:00
%find_lang %{_name}20 %{?no_lang_C}
2010-10-15 12:36:52 +02:00
mkdir -p %{buildroot} %{_sysconfdir} /profile.d
install -D -m0644 glib2.sh %{buildroot} %{_sysconfdir} /profile.d/zzz-glib2.sh
install -D -m0644 glib2.csh %{buildroot} %{_sysconfdir} /profile.d/zzz-glib2.csh
install -D -m0644 gnome_defaults.conf %{buildroot} %{_sysconfdir} /gnome_defaults.conf
2010-02-11 19:05:05 +01:00
# default apps magic
2010-10-15 12:36:52 +02:00
mkdir -p %{buildroot} %{_localstatedir} /cache/gio-2.0 %{buildroot} %{_datadir} /applications
2016-01-21 15:20:02 +01:00
touch %{buildroot} %{_localstatedir} /cache/gio-2.0/gnome-mimeapps.list
touch %{buildroot} %{_localstatedir} /cache/gio-2.0/xfce-mimeapps.list
touch %{buildroot} %{_localstatedir} /cache/gio-2.0/lxde-mimeapps.list
2016-02-18 16:27:47 +01:00
ln -s %{_localstatedir} /cache/gio-2.0/gnome-mimeapps.list %{buildroot} %{_datadir} /applications/gnome-mimeapps.list
2010-02-11 19:05:05 +01:00
# gio-querymodules magic
%if "%{_lib}" == "lib64"
2010-10-15 12:36:52 +02:00
mv %{buildroot} %{_bindir} /gio-querymodules %{buildroot} %{_bindir} /gio-querymodules-64
2010-02-11 19:05:05 +01:00
%endif
2010-10-15 12:36:52 +02:00
touch %{buildroot} %{_libdir} /gio/modules/giomodule.cache
2010-08-09 15:47:13 +02:00
# gsettings magic
2010-10-15 12:36:52 +02:00
touch %{buildroot} %{_datadir} /glib-2.0/schemas/gschemas.compiled
2010-02-11 19:05:05 +01:00
# remove files we don't care about
2018-03-09 11:10:43 +01:00
find %{buildroot} -type f -name " * . l a " -delete -print
2010-10-15 12:36:52 +02:00
rm %{buildroot} %{_libdir} /gio/modules/libgiofam.a
2010-08-09 15:47:13 +02:00
# Install rpm macros
mkdir -p %{buildroot} %{_sysconfdir} /rpm
2017-08-31 09:45:56 +02:00
cp %{SOURCE6} %{buildroot} %{_sysconfdir} /rpm
2015-09-04 13:33:06 +02:00
# Install zsh completion for gsettings
mkdir -p %{buildroot} %{_datadir} /zsh/site-functions/
2017-08-31 09:45:56 +02:00
cp %{SOURCE8} %{buildroot} %{_datadir} /zsh/site-functions/_gsettings
2017-09-14 13:45:01 +02:00
%fdupes %{buildroot} /%{_prefix}
2009-07-31 19:21:51 +02:00
2008-04-02 19:05:41 +02:00
%posttrans
# If it is an upgrade and gnome_defaults.conf were edited,
2008-04-06 05:42:23 +02:00
# move it from its old location. (Upgrade from <= 10.2)
2008-04-02 19:05:41 +02:00
if test -f etc/opt/gnome/gnome_defaults.conf.rpmsave ; then
mv etc/gnome_defaults.conf etc/gnome_defaults.conf.rpmnew
sed " s : e t c / o p t / g n o m e : e t c : g ; s : o p t / g n o m e : u s r : g " <etc/opt/gnome/gnome_defaults.conf.rpmsave >etc/gnome_defaults.conf
fi
# If it is an upgrade and gnome_defaults.conf were edited,
2008-04-06 05:42:23 +02:00
# revive it from the RPM backup. (Upgrade from == 10.3)
2008-04-02 19:05:41 +02:00
if test -f etc/gnome_defaults.conf.rpmsave ; then
mv etc/gnome_defaults.conf etc/gnome_defaults.conf.rpmnew
mv etc/gnome_defaults.conf.rpmsave etc/gnome_defaults.conf
fi
2007-01-05 16:49:20 +01:00
2017-08-31 09:45:56 +02:00
%filetriggerin -n glib2-tools -- %{_datadir} /glib-2.0/schemas
%{_bindir} /glib-compile-schemas %{_datadir} /glib-2.0/schemas
%filetriggerpostun -n glib2-tools -- %{_datadir} /glib-2.0/schemas
%{_bindir} /glib-compile-schemas %{_datadir} /glib-2.0/schemas
2008-04-06 05:42:23 +02:00
%post -n libglib-2_0-0 -p /sbin/ldconfig
%post -n libgobject-2_0-0 -p /sbin/ldconfig
%post -n libgthread-2_0-0 -p /sbin/ldconfig
2017-10-04 18:11:44 +02:00
%post -n libgio-2_0-0
/sbin/ldconfig
for ENV in gnome xfce lxde ; do
if ! test -f %{_localstatedir} /cache/gio-2.0/$ENV-mimeapps.list ; then
cat >%{_localstatedir} /cache/gio-2.0/$ENV-mimeapps.list <<EOF
# Dummy file. Install desktop-file-utils to get a better defaults.
[Default Applications]
EOF
fi
done
2008-04-06 05:42:23 +02:00
%post -n libgmodule-2_0-0 -p /sbin/ldconfig
2010-10-15 12:36:52 +02:00
%post -n libgio-fam
%if 0
2010-10-12 22:30:05 +02:00
###############################################################################
# Note: when updating this scriptlet, don't forget to also update baselibs.conf
###############################################################################
2010-10-15 12:36:52 +02:00
%endif
2010-02-11 19:05:05 +01:00
%if "%{_lib}" == "lib64"
%{_bindir} /gio-querymodules-64 %{_libdir} /gio/modules
%else
%{_bindir} /gio-querymodules %{_libdir} /gio/modules
%endif
2008-04-06 05:42:23 +02:00
%postun -n libglib-2_0-0 -p /sbin/ldconfig
%postun -n libgobject-2_0-0 -p /sbin/ldconfig
%postun -n libgthread-2_0-0 -p /sbin/ldconfig
%postun -n libgio-2_0-0 -p /sbin/ldconfig
%postun -n libgmodule-2_0-0 -p /sbin/ldconfig
2010-10-15 12:36:52 +02:00
%postun -n libgio-fam
%if 0
2010-10-12 22:30:05 +02:00
###############################################################################
# Note: when updating this scriptlet, don't forget to also update baselibs.conf
###############################################################################
2010-10-15 12:36:52 +02:00
%endif
2010-02-11 19:05:05 +01:00
%if "%{_lib}" == "lib64"
2017-08-31 09:45:56 +02:00
[ -x %{_bindir} /gio-querymodules-64 ] && %{_bindir} /gio-querymodules-64 %{_libdir} /gio/modules || :
2010-02-11 19:05:05 +01:00
%else
2017-08-31 09:45:56 +02:00
[ -x %{_bindir} /gio-querymodules ] && %{_bindir} /gio-querymodules %{_libdir} /gio/modules || :
2010-02-11 19:05:05 +01:00
%endif
2010-08-09 15:47:13 +02:00
%files tools
2014-04-03 22:37:43 +02:00
%{_bindir} /gapplication
2010-08-09 15:47:13 +02:00
%{_bindir} /gdbus
2016-09-08 23:24:14 +02:00
%{_bindir} /gio
2010-08-09 15:47:12 +02:00
%{_bindir} /gio-querymodules*
2010-08-09 15:47:13 +02:00
%{_bindir} /glib-compile-schemas
2012-02-08 11:55:24 +01:00
%{_bindir} /gresource
2010-08-09 15:47:13 +02:00
%{_bindir} /gsettings
2012-09-07 17:28:34 +02:00
%dir %{_datadir} /bash-completion
%dir %{_datadir} /bash-completion/completions
2014-04-03 22:37:43 +02:00
%{_datadir} /bash-completion/completions/gapplication
2012-09-07 17:28:34 +02:00
%{_datadir} /bash-completion/completions/gdbus
%{_datadir} /bash-completion/completions/gresource
%{_datadir} /bash-completion/completions/gsettings
2015-09-04 13:33:06 +02:00
%dir %{_datadir} /zsh
%dir %{_datadir} /zsh/site-functions
%{_datadir} /zsh/site-functions/_gsettings
2014-04-03 22:37:43 +02:00
%{_mandir} /man1/gapplication.1%{?ext_man}
%{_mandir} /man1/gdbus.1%{?ext_man}
2016-09-08 23:24:14 +02:00
%{_mandir} /man1/gio.1%{?ext_man}
2014-04-03 22:37:43 +02:00
%{_mandir} /man1/gio-querymodules.1%{?ext_man}
%{_mandir} /man1/glib-compile-schemas.1%{?ext_man}
%{_mandir} /man1/gresource.1%{?ext_man}
%{_mandir} /man1/gsettings.1%{?ext_man}
2010-08-09 15:47:13 +02:00
# We put those files here, but they don't really belong here. They just don't
# have a better home... The zzz-glib2 scripts could arguably be in
# libglib-2_0-0 but that would break the shared library policy.
%{_sysconfdir} /profile.d/zzz-glib2.*
2008-04-09 21:41:41 +02:00
2011-07-07 09:44:57 +02:00
%files -n gio-branding-upstream
%doc README.Gsettings-overrides
2008-04-06 05:42:23 +02:00
%config (noreplace) %{_sysconfdir} /gnome_defaults.conf
%files -n libglib-2_0-0
2018-03-09 11:10:43 +01:00
%license COPYING
%doc AUTHORS README NEWS
2011-06-16 16:22:41 +02:00
%{_libdir} /libglib*.so.*
2008-04-06 05:42:23 +02:00
%files -n libgmodule-2_0-0
2011-06-16 16:22:41 +02:00
%{_libdir} /libgmodule*.so.*
2008-04-06 05:42:23 +02:00
%files -n libgobject-2_0-0
2011-06-16 16:22:41 +02:00
%{_libdir} /libgobject*.so.*
2008-04-06 05:42:23 +02:00
%files -n libgthread-2_0-0
2011-06-16 16:22:41 +02:00
%{_libdir} /libgthread*.so.*
2008-04-06 05:42:23 +02:00
%files -n libgio-2_0-0
2011-06-16 16:22:41 +02:00
%{_libdir} /libgio*.so.*
2010-07-21 11:18:09 +02:00
%dir %{_libdir} /gio
%dir %{_libdir} /gio/modules
%ghost %{_libdir} /gio/modules/giomodule.cache
2010-08-09 15:47:13 +02:00
%dir %{_datadir} /glib-2.0/
%dir %{_datadir} /glib-2.0/schemas/
%ghost %{_datadir} /glib-2.0/schemas/gschemas.compiled
2016-02-18 16:27:47 +01:00
%{_datadir} /applications/gnome-mimeapps.list
2008-04-02 19:05:41 +02:00
%dir %{_localstatedir} /cache/gio-2.0
2016-01-21 15:20:02 +01:00
%ghost %{_localstatedir} /cache/gio-2.0/gnome-mimeapps.list
%ghost %{_localstatedir} /cache/gio-2.0/xfce-mimeapps.list
%ghost %{_localstatedir} /cache/gio-2.0/lxde-mimeapps.list
2007-01-05 16:49:20 +01:00
2008-04-09 21:41:41 +02:00
%files -n libgio-fam
%{_libdir} /gio/modules/libgiofam.so
2007-08-09 15:25:12 +02:00
%files lang -f %{_name}20.lang
2007-01-05 16:49:20 +01:00
%files devel
2012-01-24 12:19:44 +01:00
%doc ChangeLog
2011-06-16 16:22:41 +02:00
%{_bindir} /gdbus-codegen
2012-01-17 17:07:41 +01:00
%{_bindir} /glib-compile-resources
2010-08-09 15:47:13 +02:00
%{_bindir} /glib-genmarshal
%{_bindir} /glib-gettextize
%{_bindir} /glib-mkenums
%{_bindir} /gobject-query
%{_bindir} /gtester
%{_bindir} /gtester-report
2018-03-09 11:10:43 +01:00
%{_mandir} /man?/gdbus-codegen*%{ext_man}
%{_mandir} /man?/glib-compile-resources*%{ext_man}
%{_mandir} /man?/glib-genmarshal*%{ext_man}
%{_mandir} /man?/glib-gettextize*%{ext_man}
%{_mandir} /man?/glib-mkenums*%{ext_man}
%{_mandir} /man?/gobject-query*%{ext_man}
%{_mandir} /man?/gtester*%{ext_man}
%{_mandir} /man?/gtester-report*%{ext_man}
2011-12-22 21:35:05 +01:00
%dir %{_datadir} /aclocal
%{_datadir} /aclocal/glib-2.0.m4
%{_datadir} /aclocal/glib-gettext.m4
%{_datadir} /aclocal/gsettings.m4
2016-02-19 16:01:43 +01:00
%dir %{_datadir} /gettext/its/
%{_datadir} /gettext/its/gschema*
2010-08-09 15:47:13 +02:00
%dir %{_datadir} /glib-2.0/
%{_datadir} /glib-2.0/gdb/
%{_datadir} /glib-2.0/gettext/
2013-03-13 23:57:57 +01:00
%{_datadir} /glib-2.0/codegen/
2010-08-09 15:47:13 +02:00
%{_datadir} /glib-2.0/schemas/gschema.dtd
2017-02-22 21:40:29 +01:00
%{_datadir} /glib-2.0/valgrind/
2007-01-05 16:49:20 +01:00
%{_includedir} /glib-2.0
2008-01-23 20:59:47 +01:00
%{_includedir} /gio-unix-2.0
2007-01-05 16:49:20 +01:00
%{_libdir} /lib*.so
2010-08-09 15:47:13 +02:00
%dir %{_libdir} /glib-2.0/
%{_libdir} /glib-2.0/include/
2007-01-05 16:49:20 +01:00
%{_libdir} /pkgconfig/*.pc
2008-01-23 20:59:47 +01:00
%{_datadir} /gtk-doc/html/gio
2007-01-05 16:49:20 +01:00
%{_datadir} /gtk-doc/html/glib
%{_datadir} /gtk-doc/html/gobject
2011-06-16 16:22:41 +02:00
%{_datadir} /gdb/auto-load/%{_libdir} /*-gdb.py
2010-11-01 16:38:05 +01:00
%if 0%{?with_systemtap}
2010-08-09 15:47:13 +02:00
%{_datadir} /systemtap/tapset/*.stp
2010-11-01 16:38:05 +01:00
%endif
2010-08-09 15:47:13 +02:00
%{_sysconfdir} /rpm/macros.glib2
2009-10-05 22:26:56 +02:00
# Own these directories to not depend on gtk-doc while building:
2007-08-09 17:34:29 +02:00
%dir %{_datadir} /gtk-doc
%dir %{_datadir} /gtk-doc/html
2009-10-05 22:26:56 +02:00
# Own these directories to not depend on gdb
%dir %{_datadir} /gdb
%dir %{_datadir} /gdb/auto-load
2011-06-16 16:22:41 +02:00
%dir %{_datadir} /gdb/auto-load%{_prefix}
%dir %{_datadir} /gdb/auto-load%{_libdir}
2010-10-15 12:36:52 +02:00
%files devel-static
%{_libdir} /lib*.a
2007-11-29 22:04:32 +01:00
2007-02-19 21:31:30 +01:00
%changelog