828dd09
%global _changelog_trimtime %(date +%s -d "1 year ago")
828dd09
8e288e5
Summary: A library of handy utility functions
cvsdist 3be0864
Name: glib2
b5bb637
Version: 2.42.2
11fe381
Release: 1%{?dist}
9c9e511
License: LGPLv2+
cvsdist 3be0864
Group: System Environment/Libraries
b5113ce
URL: http://www.gtk.org
3acbcbf
#VCS: git:git://git.gnome.org/glib
76186d6
Source: http://download.gnome.org/sources/glib/2.42/glib-%{version}.tar.xz
3d798c3
f157144
BuildRequires: pkgconfig
cvsdist 0c641d3
BuildRequires: gettext
978e8ff
BuildRequires: libattr-devel
978e8ff
BuildRequires: libselinux-devel
978e8ff
# for sys/inotify.h
978e8ff
BuildRequires: glibc-devel
829c83b
BuildRequires: zlib-devel
Mark Wielaard 064a5ee
# for sys/sdt.h
Mark Wielaard 064a5ee
BuildRequires: systemtap-sdt-devel
b388bdb
# Bootstrap build requirements
31b382d
BuildRequires: automake autoconf libtool
1f9c65d
BuildRequires: gtk-doc
390e20c
BuildRequires: python-devel
e15d826
BuildRequires: libffi-devel
Richard Hughes c44e67d
BuildRequires: elfutils-libelf-devel
Colin Walters e62f41a
BuildRequires: chrpath
31b382d
5f01536
# required for GIO content-type support
5f01536
Requires: shared-mime-info
5f01536
e06d22f
%description
b853add
GLib is the low-level core library that forms the basis for projects
b853add
such as GTK+ and GNOME. It provides data structure handling for C,
b853add
portability wrappers, and interfaces for such runtime functionality
b853add
as an event loop, threads, dynamic loading, and an object system.
cvsdist 3be0864
f157144
cvsdist 3be0864
%package devel
e91a444
Summary: A library of handy utility functions
cvsdist 3be0864
Group: Development/Libraries
25351c5
Requires: %{name}%{?_isa} = %{version}-%{release}
cvsdist 3be0864
cvsdist 3be0864
%description devel
b853add
The glib2-devel package includes the header files for the GLib library.
cvsdist 3be0864
3d798c3
%package doc
3d798c3
Summary: A library of handy utility functions
3d798c3
Group: Development/Libraries
3d798c3
Requires: %{name} = %{version}-%{release}
3d798c3
BuildArch: noarch
3d798c3
3d798c3
%description doc
3d798c3
The glib2-doc package includes documentation for the GLib library.
3d798c3
7e37219
%package fam
7e37219
Summary: FAM monitoring module for GIO
7e37219
Group: Development/Libraries
25351c5
Requires: %{name}%{?_isa} = %{version}-%{release}
7e37219
BuildRequires: gamin-devel
7e37219
7e37219
%description fam
7e37219
The glib2-fam package contains the FAM (File Alteration Monitor) module for GIO.
7e37219
8d1f256
%package static
8d1f256
Summary: glib static
8d1f256
Requires: %{name}-devel = %{version}-%{release}
8d1f256
8d1f256
%description static
8d1f256
The %{name}-static subpackage contains static libraries for %{name}.
8d1f256
25351c5
%package tests
25351c5
Summary: Tests for the glib2 package
25351c5
Group: Development/Libraries
25351c5
Requires: %{name}%{?_isa} = %{version}-%{release}
25351c5
25351c5
%description tests
25351c5
The glib2-tests package contains tests that can be used to verify
25351c5
the functionality of the installed glib2 package.
25351c5
cvsdist fff9915
%prep
cvsdist fff9915
%setup -q -n glib-%{version}
50d046e
dce999b
%build
b388bdb
# Support builds of both git snapshots and tarballs packed with autogoo
b388bdb
(if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; CONFIGFLAGS=--enable-gtk-doc; fi;
b388bdb
 %configure $CONFIGFLAGS \
f157144
           --enable-systemtap \
8d1f256
           --enable-static \
25351c5
           --enable-installed-tests
45490ab
)
04a7a35
e91a444
make %{?_smp_mflags}
d2ad172
cvsdist fff9915
%install
3d798c3
# Use -p to preserve timestamps on .py files to ensure
3d798c3
# they're not recompiled with different timestamps
3d798c3
# to help multilib: https://bugzilla.redhat.com/show_bug.cgi?id=718404
3d798c3
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p -c"
3d798c3
# Also since this is a generated .py file, set it to a known timestamp,
3d798c3
# otherwise it will vary by build time, and thus break multilib -devel
3d798c3
# installs.
3d798c3
touch -r gio/gdbus-2.0/codegen/config.py.in $RPM_BUILD_ROOT/%{_datadir}/glib-2.0/codegen/config.py
Colin Walters e62f41a
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/*.so
cvsdist fff9915
fe30d5e
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
69cafd6
rm -f $RPM_BUILD_ROOT%{_libdir}/gio/modules/*.{a,la}
7a7333d
rm -f $RPM_BUILD_ROOT%{_datadir}/glib-2.0/gdb/*.{pyc,pyo}
3d798c3
rm -f $RPM_BUILD_ROOT%{_datadir}/glib-2.0/codegen/*.{pyc,pyo}
3d798c3
3d798c3
# Multilib fixes for systemtap tapsets; see
3d798c3
# https://bugzilla.redhat.com/718404
3d798c3
for f in $RPM_BUILD_ROOT%{_datadir}/systemtap/tapset/*.stp; do
3d798c3
    (dn=$(dirname ${f}); bn=$(basename ${f});
3d798c3
     mv ${f} ${dn}/%{__isa_bits}-${bn})
3d798c3
done
7a7333d
9c7bde4
mv  $RPM_BUILD_ROOT%{_bindir}/gio-querymodules $RPM_BUILD_ROOT%{_bindir}/gio-querymodules-%{__isa_bits}
05ecd7b
92eb058
touch $RPM_BUILD_ROOT%{_libdir}/gio/modules/giomodule.cache
92eb058
05818c5
# bash-completion scripts need not be executable
02cd00b
chmod 644 $RPM_BUILD_ROOT%{_datadir}/bash-completion/completions/*
05818c5
cvsdist fff9915
%find_lang glib20
cvsdist fff9915
cvsdist fff9915
c13999f
%post
c13999f
/sbin/ldconfig
9c7bde4
gio-querymodules-%{__isa_bits} %{_libdir}/gio/modules
c13999f
c13999f
c13999f
%postun
c13999f
/sbin/ldconfig
8030ac8
[ ! -x %{_bindir}/gio-querymodules-%{__isa_bits} ] || \
9c7bde4
gio-querymodules-%{__isa_bits} %{_libdir}/gio/modules
cvsdist fff9915
cvsdist fff9915
cvsdist fff9915
%files -f glib20.lang
2f6436c
%{!?_licensedir:%global license %%doc}
2f6436c
%license COPYING
2f6436c
%doc AUTHORS NEWS README
45490ab
%{_libdir}/libglib-2.0.so.*
45490ab
%{_libdir}/libgthread-2.0.so.*
45490ab
%{_libdir}/libgmodule-2.0.so.*
45490ab
%{_libdir}/libgobject-2.0.so.*
45490ab
%{_libdir}/libgio-2.0.so.*
e33b45d
%dir %{_datadir}/bash-completion
e33b45d
%dir %{_datadir}/bash-completion/completions
e33b45d
%{_datadir}/bash-completion/completions/gdbus
e33b45d
%{_datadir}/bash-completion/completions/gsettings
Richard Hughes 3be72f9
%{_datadir}/bash-completion/completions/gapplication
5cb4d6c
%dir %{_datadir}/glib-2.0
5cb4d6c
%dir %{_datadir}/glib-2.0/schemas
849d436
%dir %{_libdir}/gio
849d436
%dir %{_libdir}/gio/modules
92eb058
%ghost %{_libdir}/gio/modules/giomodule.cache
c13999f
%{_bindir}/gio-querymodules*
04a7a35
%{_bindir}/glib-compile-schemas
bc373de
%{_bindir}/gsettings
6a9cab0
%{_bindir}/gdbus
Richard Hughes 3be72f9
%{_bindir}/gapplication
bc373de
%doc %{_mandir}/man1/gio-querymodules.1.gz
04a7a35
%doc %{_mandir}/man1/glib-compile-schemas.1.gz
bc373de
%doc %{_mandir}/man1/gsettings.1.gz
6a9cab0
%doc %{_mandir}/man1/gdbus.1.gz
Richard Hughes 3be72f9
%doc %{_mandir}/man1/gapplication.1.gz
cvsdist fff9915
cvsdist fff9915
%files devel
fe30d5e
%{_libdir}/lib*.so
758bebd
%{_libdir}/glib-2.0
cvsdist fff9915
%{_includedir}/*
cvsdist fff9915
%{_datadir}/aclocal/*
cvsdist fff9915
%{_libdir}/pkgconfig/*
e53437d
%{_datadir}/glib-2.0/gdb
eb0dd09
%{_datadir}/glib-2.0/gettext
df81c20
%{_datadir}/glib-2.0/schemas/gschema.dtd
1dfb213
%{_datadir}/bash-completion/completions/gresource
ed966ca
%{_bindir}/glib-genmarshal
ed966ca
%{_bindir}/glib-gettextize
ed966ca
%{_bindir}/glib-mkenums
ed966ca
%{_bindir}/gobject-query
ed966ca
%{_bindir}/gtester
390e20c
%{_bindir}/gdbus-codegen
1a5af75
%{_bindir}/glib-compile-resources
45490ab
%{_bindir}/gresource
3d798c3
%{_datadir}/glib-2.0/codegen
ed966ca
%attr (0755, root, root) %{_bindir}/gtester-report
bc373de
%doc %{_mandir}/man1/glib-genmarshal.1.gz
bc373de
%doc %{_mandir}/man1/glib-gettextize.1.gz
bc373de
%doc %{_mandir}/man1/glib-mkenums.1.gz
bc373de
%doc %{_mandir}/man1/gobject-query.1.gz
bc373de
%doc %{_mandir}/man1/gtester-report.1.gz
bc373de
%doc %{_mandir}/man1/gtester.1.gz
390e20c
%doc %{_mandir}/man1/gdbus-codegen.1.gz
1a5af75
%doc %{_mandir}/man1/glib-compile-resources.1.gz
45490ab
%doc %{_mandir}/man1/gresource.1.gz
45490ab
%{_datadir}/gdb/auto-load%{_libdir}/libglib-2.0.so.*-gdb.py*
45490ab
%{_datadir}/gdb/auto-load%{_libdir}/libgobject-2.0.so.*-gdb.py*
Mark Wielaard 064a5ee
%{_datadir}/systemtap/tapset/*.stp
837c11b
3d798c3
%files doc
3d798c3
%doc %{_datadir}/gtk-doc/html/*
3d798c3
7e37219
%files fam
7e37219
%{_libdir}/gio/modules/libgiofam.so
7e37219
8d1f256
%files static
8d1f256
%{_libdir}/libgio-2.0.a
8d1f256
%{_libdir}/libglib-2.0.a
8d1f256
%{_libdir}/libgmodule-2.0.a
8d1f256
%{_libdir}/libgobject-2.0.a
8d1f256
%{_libdir}/libgthread-2.0.a
8d1f256
25351c5
%files tests
Debarshi Ray b947f05
%{_libexecdir}/installed-tests
25351c5
%{_datadir}/installed-tests
25351c5
cvsdist 3be0864
%changelog
b5bb637
* Wed Feb 25 2015 Matthias Clasen <mclasen@redhat.com> - 2.42.2-1
b5bb637
- Update to 2.42.2
b5bb637
fc751bc
* Mon Nov 10 2014 Kalev Lember <kalevlember@gmail.com> - 2.42.1-1
fc751bc
- Update to 2.42.1
fc751bc
76186d6
* Mon Sep 22 2014 Kalev Lember <kalevlember@gmail.com> - 2.42.0-1
76186d6
- Update to 2.42.0
76186d6
11fe381
* Tue Sep 16 2014 Kalev Lember <kalevlember@gmail.com> - 2.41.5-1
11fe381
- Update to 2.41.5
11fe381
27a5cbb
* Thu Sep  4 2014 Matthias Clasen <mclasen@redhat.com> 2.41.4-3
27a5cbb
- Don't remove rpath from gdbus-peer test - it doesn't work without it
27a5cbb
Bastien Nocera 7955a29
* Thu Sep 04 2014 Bastien Nocera <bnocera@redhat.com> 2.41.4-2
Bastien Nocera 7955a29
- Fix banshee getting selected as the default movie player
Bastien Nocera 7955a29
7962bc7
* Tue Sep 02 2014 Kalev Lember <kalevlember@gmail.com> - 2.41.4-1
7962bc7
- Update to 2.41.4
7962bc7
1a9d869
* Sat Aug 16 2014 Kalev Lember <kalevlember@gmail.com> - 2.41.3-1
1a9d869
- Update to 2.41.3
1a9d869
645db3d
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.41.2-3
645db3d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
645db3d
d143a7b
* Wed Jul 23 2014 Stef Walter <stefw@redhat.com> - 2.41.2-2
d143a7b
- Fix regression with GDBus array encoding rhbz#1122128
d143a7b
acaa117
* Mon Jul 14 2014 Kalev Lember <kalevlember@gmail.com> - 2.41.2-1
acaa117
- Update to 2.41.2
acaa117
2f6436c
* Sat Jul 12 2014 Tom Callaway <spot@fedoraproject.org> - 2.41.1-2
2f6436c
- fix license handling
2f6436c
Richard Hughes f4398cb
* Tue Jun 24 2014 Richard Hughes <rhughes@redhat.com> - 2.41.1-1
Richard Hughes f4398cb
- Update to 2.41.1
Richard Hughes f4398cb
7ab7df4
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.41.0-2
7ab7df4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
7ab7df4
94703bb
* Tue May 27 2014 Kalev Lember <kalevlember@gmail.com> - 2.41.0-1
94703bb
- Update to 2.41.0
94703bb
Richard Hughes 062ae87
* Mon Mar 24 2014 Richard Hughes <rhughes@redhat.com> - 2.40.0-1
Richard Hughes 062ae87
- Update to 2.40.0
Richard Hughes 062ae87
Richard Hughes 73831db
* Tue Mar 18 2014 Richard Hughes <rhughes@redhat.com> - 2.39.92-1
Richard Hughes 73831db
- Update to 2.39.92
Richard Hughes 73831db
Richard Hughes 37f2e6a
* Tue Mar 04 2014 Richard Hughes <rhughes@redhat.com> - 2.39.91-1
Richard Hughes 37f2e6a
- Update to 2.39.91
Richard Hughes 37f2e6a
Richard Hughes 87399dd
* Tue Feb 18 2014 Richard Hughes <rhughes@redhat.com> - 2.39.90-1
Richard Hughes 87399dd
- Update to 2.39.90
Richard Hughes 87399dd
Richard Hughes 9df1f59
* Tue Feb 04 2014 Richard Hughes <rhughes@redhat.com> - 2.39.4-1
Richard Hughes 9df1f59
- Update to 2.39.4
Richard Hughes 9df1f59
Richard Hughes af8f0d0
* Tue Jan 14 2014 Richard Hughes <rhughes@redhat.com> - 2.39.3-1
Richard Hughes af8f0d0
- Update to 2.39.3
Richard Hughes af8f0d0
8d1f256
* Sun Dec 22 2013 Richard W.M. Jones <rjones@redhat.com> - 2.39.2-2
8d1f256
- Re-add static subpackage so that we can build static qemu as
8d1f256
  an AArch64 binfmt.
8d1f256
Richard Hughes c839083
* Tue Dec 17 2013 Richard Hughes <rhughes@redhat.com> - 2.39.2-1
Richard Hughes c839083
- Update to 2.39.2
Richard Hughes c839083
Richard Hughes 5ccb823
* Mon Dec 09 2013 Richard Hughes <rhughes@redhat.com> - 2.39.1-2
Richard Hughes 5ccb823
- Backport a patch from master to stop gnome-settings-daemon crashing.
Richard Hughes 5ccb823
Richard Hughes 6c0de58
* Thu Nov 14 2013 Richard Hughes <rhughes@redhat.com> - 2.39.1-1
Richard Hughes 6c0de58
- Update to 2.39.1
Richard Hughes 6c0de58
Richard Hughes d247541
* Mon Oct 28 2013 Richard Hughes <rhughes@redhat.com> - 2.39.0-1
Richard Hughes d247541
- Update to 2.39.0
Richard Hughes d247541
aafdb1d
* Tue Sep 24 2013 Kalev Lember <kalevlember@gmail.com> - 2.38.0-1
aafdb1d
- Update to 2.38.0
aafdb1d
8cc88f5
* Tue Sep 17 2013 Kalev Lember <kalevlember@gmail.com> - 2.37.93-1
8cc88f5
- Update to 2.37.93
8cc88f5
2beaa32
* Mon Sep 02 2013 Kalev Lember <kalevlember@gmail.com> - 2.37.7-1
2beaa32
- Update to 2.37.7
2beaa32
Debarshi Ray 9da0fb4
* Wed Aug 21 2013 Debarshi Ray <rishi@fedoraproject.org> - 2.37.6-1
Debarshi Ray 9da0fb4
- Update to 2.37.6
Debarshi Ray 9da0fb4
ef99677
* Sat Aug 03 2013 Petr Pisar <ppisar@redhat.com> - 2.37.5-2
ef99677
- Perl 5.18 rebuild
ef99677
Debarshi Ray 7262b9b
* Thu Aug  1 2013 Debarshi Ray <rishi@fedoraproject.org> - 2.37.5-1
Debarshi Ray 7262b9b
- Update to 2.37.5
Debarshi Ray 7262b9b
6dea828
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 2.37.4-2
6dea828
- Perl 5.18 rebuild
6dea828
b95e4bd
* Tue Jul  9 2013 Matthias Clasen <mclasen@redhat.com> - 2.37.4-1
b95e4bd
- Update to 2.37.4
b95e4bd
Debarshi Ray b947f05
* Thu Jun 20 2013 Debarshi Ray <rishi@fedoraproject.org> - 2.37.2-1
Debarshi Ray b947f05
- Update to 2.37.2
Debarshi Ray b947f05
25351c5
* Tue May 28 2013 Matthias Clasen <mclasen@redhat.com> - 2.37.1-1
25351c5
- Update to 2.37.1
25351c5
- Add a tests subpackage
25351c5
2d0f25e
* Sat May 04 2013 Kalev Lember <kalevlember@gmail.com> - 2.37.0-1
2d0f25e
- Update to 2.37.0
2d0f25e
7bf8211
* Sat Apr 27 2013 Thorsten Leemhuis <fedora@leemhuis.info> - 2.36.1-2
7bf8211
- Fix pidgin freezes by applying patch from master (#956872)
7bf8211
b661dad
* Mon Apr 15 2013 Kalev Lember <kalevlember@gmail.com> - 2.36.1-1
b661dad
- Update to 2.36.1
b661dad
3d0d079
* Mon Mar 25 2013 Kalev Lember <kalevlember@gmail.com> - 2.36.0-1
3d0d079
- Update to 2.36.0
3d0d079
a18eaa5
* Tue Mar 19 2013 Matthias Clasen <mclasen@redhat.com> - 2.35.9-1
a18eaa5
- Update to 2.35.9
a18eaa5
15a6e4d
* Thu Feb 21 2013 Kalev Lember <kalevlember@gmail.com> - 2.35.8-1
15a6e4d
- Update to 2.35.8
15a6e4d
ca7460d
* Tue Feb 05 2013 Kalev Lember <kalevlember@gmail.com> - 2.35.7-1
ca7460d
- Update to 2.35.7
ca7460d
063ef24
* Tue Jan 15 2013 Matthias Clasen <mclasen@redhat.com> - 2.35.4-1
063ef24
- Update to 2.35.4
063ef24
43f4216
* Thu Dec 20 2012 Kalev Lember <kalevlember@gmail.com> - 2.35.3-1
43f4216
- Update to 2.35.3
43f4216
69da803
* Sat Nov 24 2012 Kalev Lember <kalevlember@gmail.com> - 2.35.2-1
69da803
- Update to 2.35.2
69da803
3c181fd
* Thu Nov 08 2012 Kalev Lember <kalevlember@gmail.com> - 2.35.1-1
3c181fd
- Update to 2.35.1
3c181fd
- Drop upstreamed codegen-in-datadir.patch