1 Summary: A library of handy utility functions
6 Group: System/Libraries
7 URL: http://www.gtk.org
8 Source: %{name}-%{version}.tar.gz
9 #Source: http://download.gnome.org/sources/glib/2.32/%{name}-%{version}.tar.gz
10 Source1001: %{name}.manifest
12 BuildRequires: pkgconfig
13 BuildRequires: gettext-tools
14 BuildRequires: libattr-devel
15 BuildRequires: zlib-devel
17 BuildRequires: python-xml
18 BuildRequires: libffi-devel
19 BuildRequires: elfutils-libelf-devel
22 GLib is the low-level core library that forms the basis for projects
23 such as GTK+ and GNOME. It provides data structure handling for C,
24 portability wrappers, and interfaces for such runtime functionality
25 as an event loop, threads, dynamic loading, and an object system.
29 Summary: A library of handy utility functions
30 Group: Development/Libraries
32 Requires: %{name} = %{version}-%{release}
35 The glib2-devel package includes the header files for the GLib library.
37 # anaconda needs static libs, see RH bug #193143
39 Summary: A library of handy utility functions
40 Group: Development/Libraries
41 Requires: %{name}-devel = %{version}-%{release}
44 The glib2-static package includes static libraries of the GLib library.
52 %configure --disable-gtk-doc --enable-static --disable-selinux --disable-visibility --enable-debug=yes
57 rm -rf $RPM_BUILD_ROOT
58 make install DESTDIR=$RPM_BUILD_ROOT
60 rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
61 rm -f $RPM_BUILD_ROOT%{_libdir}/gio/modules/*.{a,la}
62 rm -f $RPM_BUILD_ROOT%{_datadir}/glib-2.0/gdb/*.{pyc,pyo}
63 rm -f $RPM_BUILD_ROOT%{_libdir}/gdbus-codegen/*.{pyc,pyo}
65 touch $RPM_BUILD_ROOT%{_libdir}/gio/modules/giomodule.cache
67 # MeeGo does not provide bash completion
68 rm -rf ${RPM_BUILD_ROOT}%{_sysconfdir}/bash_completion.d
72 mkdir -p $RPM_BUILD_ROOT%{_datadir}/license
73 for keyword in LICENSE COPYING COPYRIGHT;
75 for file in `find %{_builddir} -name $keyword`;
77 cat $file >> $RPM_BUILD_ROOT%{_datadir}/license/%{name};
83 rm -rf $RPM_BUILD_ROOT
85 %post -p /sbin/ldconfig
87 %postun -p /sbin/ldconfig
90 %manifest %{name}.manifest
91 %defattr(-, root, root, -)
92 %doc AUTHORS COPYING NEWS README
93 %{_datadir}/license/%{name}
94 %{_libdir}/libglib-2.0.so.*
95 %{_libdir}/libgthread-2.0.so.*
96 %{_libdir}/libgmodule-2.0.so.*
97 %{_libdir}/libgobject-2.0.so.*
98 %{_libdir}/libgio-2.0.so.*
99 %dir %{_datadir}/glib-2.0
100 %dir %{_datadir}/glib-2.0/schemas
102 %dir %{_libdir}/gio/modules
103 %ghost %{_libdir}/gio/modules/giomodule.cache
104 %{_bindir}/gio-querymodules*
105 %{_bindir}/glib-compile-schemas
108 %doc %{_mandir}/man1/gio-querymodules.1.gz
109 %doc %{_mandir}/man1/glib-compile-schemas.1.gz
110 %doc %{_mandir}/man1/gsettings.1.gz
111 %doc %{_mandir}/man1/gdbus.1.gz
114 %defattr(-, root, root, -)
118 %{_datadir}/aclocal/*
119 %{_libdir}/pkgconfig/*
120 %{_datadir}/glib-2.0/gdb
121 %{_datadir}/glib-2.0/gettext
122 %{_datadir}/glib-2.0/schemas/gschema.dtd
123 %{_bindir}/glib-genmarshal
124 %{_bindir}/glib-gettextize
125 %{_bindir}/glib-mkenums
126 %{_bindir}/gobject-query
128 %{_bindir}/gdbus-codegen
129 %{_bindir}/glib-compile-resources
131 %{_libdir}/gdbus-2.0/codegen
132 %attr (0755, root, root) %{_bindir}/gtester-report
133 %doc %{_datadir}/gtk-doc/html/*
134 %doc %{_mandir}/man1/glib-genmarshal.1.gz
135 %doc %{_mandir}/man1/glib-gettextize.1.gz
136 %doc %{_mandir}/man1/glib-mkenums.1.gz
137 %doc %{_mandir}/man1/gobject-query.1.gz
138 %doc %{_mandir}/man1/gtester-report.1.gz
139 %doc %{_mandir}/man1/gtester.1.gz
140 %doc %{_mandir}/man1/gdbus-codegen.1.gz
141 %doc %{_mandir}/man1/glib-compile-resources.1.gz
142 %doc %{_mandir}/man1/gresource.1.gz
143 %{_datadir}/gdb/auto-load%{_libdir}/libglib-2.0.so.*-gdb.py*
144 %{_datadir}/gdb/auto-load%{_libdir}/libgobject-2.0.so.*-gdb.py*
147 %defattr(-, root, root, -)