Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37655878
en ru br
Репозитории ALT
S:2.78.0-alt1
5.1: 2.22.4-alt0.M51.1
4.1: 2.16.6-alt0.M41.2
4.0: 2.14.1-alt1
3.0: 2.6.5-alt1
www.altlinux.org/Changes

Группа :: Система/Библиотеки
Пакет: glib2

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define ver_major 2.22
%def_disable gtk_doc
%define pcre_ver 7.2
%def_with sys_pcre

Name: glib2
Version: %ver_major.4
Release: alt0.M51.1

Summary: A library of handy utility functions
License: %lgpl2plus
Group: System/Libraries
Url: ftp://ftp.gnome.org

Source: ftp://ftp.gnome.org/pub/gnome/sources/glib/glib-%version.tar.bz2
#Source0: glib-%version.tar

# These should be prepared for each major version.

Source1: glib-%ver_major.map
Source2: gobject-%ver_major.map
Source3: gio-%ver_major.map

Source10: glib2.sh
Source11: glib2.csh

%def_with locales
%if_with locales
Requires: %name-locales = %version
%endif

Provides: lib%name = %version
Obsoletes: lib%name < %version

Provides: %name-core = %version
Obsoletes: %name-core < %version

%if_with sys_pcre
Requires: pcre-config(utf8) pcre-config(unicode-properties)
BuildPreReq: pcre-config(utf8) pcre-config(unicode-properties)
%endif

BuildRequires(pre): rpm-build-licenses
BuildPreReq: gtk-doc >= 1.8

# Automatically added by buildreq on Thu Sep 18 2008

BuildRequires: gtk-doc indent libgamin-devel libpcre-devel python-devel

%description
GLib is the low-level core library that forms the basis for projects
such as GTK+ and GNOME. It provides data structure handling for C,
portability wrappers, and interfaces for such runtime functionality as
an event loop, threads, dynamic loading, and an object system.

%package locales
Summary: Glib internationalization
Group: System/Internationalization
Conflicts: %name < %version, %name > %version
BuildArch: noarch

%description locales
GLib is the low-level core library that forms the basis for projects
such as GTK+ and GNOME. It provides data structure handling for C,
portability wrappers, and interfaces for such runtime functionality as
an event loop, threads, dynamic loading, and an object system.

This package provides internationalization support for Glib.

%package devel
Summary: Development files and tools for GLib
Group: Development/C
Requires: %name = %version-%release
Provides: lib%name-devel = %version
Obsoletes: lib%name-devel < %version

%description devel
GLib is the low-level core library that forms the basis for projects
such as GTK+ and GNOME. It provides data structure handling for C,
portability wrappers, and interfaces for such runtime functionality as
an event loop, threads, dynamic loading, and an object system.

This package provides header files and development tools for GLIB.

%package devel-static
Summary: Static version of GLib libraries
Group: Development/C
Requires: %name-devel = %version-%release
Provides: lib%name-devel-static = %version
Obsoletes: lib%name-devel-static < %version

%description devel-static
GLib is the low-level core library that forms the basis for projects
such as GTK+ and GNOME. It provides data structure handling for C,
portability wrappers, and interfaces for such runtime functionality as
an event loop, threads, dynamic loading, and an object system.

This package provides GLIB static libraries.

%package doc
Summary: Documentation for GLib
Group: Development/Documentation
Provides: %name-devel-doc = %version
Obsoletes: %name-devel-doc < %version
Conflicts: %name < %version, %name > %version
BuildArch: noarch

%description doc
GLib is the low-level core library that forms the basis for projects
such as GTK+ and GNOME. It provides data structure handling for C,
portability wrappers, and interfaces for such runtime functionality as
an event loop, threads, dynamic loading, and an object system.

This package contains documentation for GLib.

%package -n libgio
Summary: GIO input/output framework
Group: System/Libraries
Requires: %name = %version-%release

%description -n libgio
GIO is a VFS API, designed to replace GnomeVFS. This GIO implementation is
a part of Glib project; it has support for local filesystems, and
a separate GVFS project contains various backend implementations (CIFS,
FTP, SFTP etc.).

%package -n libgio-devel
Summary: GIO input/output framework
Group: Development/C
Requires: libgio = %version-%release

%description -n libgio-devel
GIO is a VFS API, designed to replace GnomeVFS. This GIO implementation is
a part of Glib project; it has support for local filesystems, and
a separate GVFS project contains various backend implementations (CIFS,
FTP, SFTP etc.).

This package contains files necessary for development with GIO.

%package -n libgio-doc
Summary: GIO documentation
Group: Development/Documentation
# due to HTML links
Requires: %name-doc = %version
BuildArch: noarch

%description -n libgio-doc
GIO is a VFS API, designed to replace GnomeVFS. This GIO implementation is
a part of Glib project; it has support for local filesystems, and
a separate GVFS project contains various backend implementations (CIFS,
FTP, SFTP etc.).

This package contains documentation for GIO.

%if 0
%package gdb
%description gdb
%endif

%prep
%setup -q -n glib-%version

%if_with sys_pcre
rm glib/pcre/*.[ch]
%endif

install -p -m644 %_sourcedir/glib-%ver_major.map glib/symver.map
install -p -m644 %_sourcedir/gobject-%ver_major.map gobject/symver.map

sed -i- '/^export_symbols =.*-regex/s/=.*/= $(LIBTOOL_EXPORT_OPTIONS)/' gio/Makefile.am
diff -U1 gio/Makefile.am- gio/Makefile.am && exit 1
install -p -m644 %_sourcedir/gio-%ver_major.map gio/symver.map

%build
gtkdocize --copy
%autoreconf
%configure \
   --enable-static \
   --disable-selinux \
   --enable-fam \
   --enable-xattr \
   %{?_enable_gtk_doc:--enable-gtk-doc} \
   --enable-included-printf=no \
   --enable-regex \
%if_with sys_pcre
   --with-pcre=system \
%endif

%make_build LIBTOOL_EXPORT_OPTIONS=-Wl,--version-script=symver.map
#make -C tests check-TESTS

%install
%make_install install DESTDIR=%buildroot

# Relocate libgilb-2.0.so.0 to /%_lib.

mkdir -p %buildroot/%_lib
mv %buildroot%_libdir/libglib-2.0.so.0* %buildroot/%_lib
rm %buildroot%_libdir/libglib-2.0.so
ln -s ../../%_lib/libglib-2.0.so.0 %buildroot%_libdir/libglib-2.0.so

install -pD -m755 %_sourcedir/glib2.sh %buildroot%_sysconfdir/profile.d/glib2.sh
install -pD -m755 %_sourcedir/glib2.csh %buildroot%_sysconfdir/profile.d/glib2.csh

chmod +x %buildroot%_bindir/gtester-report

%find_lang glib20

%set_verify_elf_method strict

%files
%doc AUTHORS NEWS README

/%_lib/libglib-2.0.so.0*
%_libdir/libgobject-2.0.so.0*
%_libdir/libgmodule-2.0.so.0*
%_libdir/libgthread-2.0.so.0*
%config(noreplace) %_sysconfdir/profile.d/*

%files locales -f glib20.lang

%files devel
%_bindir/glib*
%_bindir/gobject*
%_bindir/gtester*
%_man1dir/glib*
%_man1dir/gobject*
%_man1dir/gtester*
%dir %_includedir/glib-2.0
%_includedir/glib-2.0/glib*
%_includedir/glib-2.0/gobject*
%_includedir/glib-2.0/gmodule*
%dir %_libdir/glib-2.0
%dir %_libdir/glib-2.0/include
%_libdir/glib-2.0/include/*.h
%_libdir/libglib-2.0.so
%_libdir/libgmodule-2.0.so
%_libdir/libgobject-2.0.so
%_libdir/libgthread-2.0.so
%_pkgconfigdir/glib-2.0.pc
%_pkgconfigdir/gmodule*-2.0.pc
%_pkgconfigdir/gobject-2.0.pc
%_pkgconfigdir/gthread-2.0.pc
%_datadir/aclocal/glib*.m4
%dir %_datadir/glib-2.0
%_datadir/glib-2.0/gettext

%files devel-static
%_libdir/libglib-2.0.a
%_libdir/libgobject-2.0.a
%_libdir/libgthread-2.0.a
# gmodule and gio use dynamic loading
%exclude %_libdir/libgmodule-2.0.a
%exclude %_libdir/libgio-2.0.a
%exclude %_libdir/gio/modules/*.a
%exclude %_libdir/gio/modules/*.la

%files doc
%doc %_datadir/gtk-doc/html/glib
%doc %_datadir/gtk-doc/html/gobject

%files -n libgio
%_libdir/libgio-2.0.so.*
%dir %_libdir/gio
%dir %_libdir/gio/modules
%_libdir/gio/modules/libgiofam.so

%files -n libgio-devel
%dir %_includedir/glib-2.0
%dir %_includedir/glib-2.0/gio
%_includedir/glib-2.0/gio/*.h
%dir %_includedir/gio-unix-2.0
%dir %_includedir/gio-unix-2.0/gio
%_includedir/gio-unix-2.0/gio/*.h
%_libdir/libgio-2.0.so
%_pkgconfigdir/gio-2.0.pc
%_pkgconfigdir/gio-unix-2.0.pc

%files -n libgio-doc
%doc %_datadir/gtk-doc/html/gio

%if 0
%files gdb
%_datadir/gdb/auto-load/%_libdir/libglib-2.0.so.0.2200.0-gdb.py
%_datadir/gdb/auto-load/%_libdir/libgobject-2.0.so.0.2200.0-gdb.py
%_datadir/glib-2.0/gdb/
%endif

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin