Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > media > contrib-release-src > by-pkgid > a2685c59b24a23b0c4bc1ab95568f31e > files > 10

glib-1.2.10-24mdv2010.0.src.rpm

%define libname  %mklibname %{name} %{major}
%define major    1.2

Summary: A library of handy utility functions
Name: glib
Version: 1.2.10
Release: %mkrel 24
License: LGPL
Group: System/Libraries
Source: ftp://ftp.gtk.org/pub/gtk/v1.2/%{name}-%{version}.tar.bz2
# (fc) 1.2.10-3mdk Suppress warnings about varargs macros for -pedantic (Rawhide)
Patch0: glib-1.2.10-isowarning.patch
# (fc) 1.2.10-5mdk don't set -L/usr/lib in glib-config
Patch1: glib-1.2.10-libdir.patch
# (fc) 1.2.10-12mdk fix build with gcc 3.4 (Fedora)
Patch2: glib-1.2.10-gcc34.patch
# (fc) 1.2.10-13mdk fix underquoted m4 definitions
Patch3: glib-1.2.10-underquoted.patch
# (gb) 1.2.10-14mdk build static glib library with PIC as pam modules need it
Patch4: glib-1.2.10-pic.patch
# (gb) 1.2.10-17mdv use ancient libtool 1.4 with lib64 fixes
Patch5: glib-1.2.10-libtool.patch
# (Anssi 05/2008) Fix underlinking
Patch6: glib-1.2.10-underlinking.patch
Patch7: glib-1.2.10-format_not_a_string_literal_and_no_format_arguments.diff
Patch8: glib_divert.patch
%if %{mdkversion} >= 1010
BuildRequires: automake1.4, autoconf2.1
%else
BuildRequires: automake
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-root
URL: http://www.gtk.org

%description
Glib is a handy library of utility functions. This C
library is designed to solve some portability problems
and provide other useful functionality which most
programs require.

Glib is used by GDK, GTK+ and many applications.
You should install Glib because many of your applications
will depend on this library.

%package -n %{libname}
Summary: Main library for glib
Group: System/Libraries
Provides: glib = %{version}-%{release}
Obsoletes: glib < %{version}-%{release}

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with the glib.

%package -n %{libname}-devel
Summary: GIMP Toolkit and GIMP Drawing Kit support library
Group: Development/C
Requires: %{libname} = %{version}
Requires: pkgconfig
Provides: %{name}-devel = %{version}-%{release}
Provides: lib%{name}-devel = %{version}-%{release}
Obsoletes: glib-devel < %{version}-%{release}

%description -n %{libname}-devel
Static libraries and header files for the support library for the GIMP's X
libraries, which are available as public libraries.  GLIB includes generally
useful data structures.

%prep
%setup -q
%patch0 -p1 -b .isowarnings
%patch1 -p1 -b .libdir
%patch2 -p1 -b .gcc34
%patch3 -p1 -b .underquoted
%patch4 -p1 -b .pic
%patch5 -p1 -b .libtool
%patch6 -p1 -b .underlink
%patch7 -p1 -b .format_not_a_string_literal_and_no_format_arguments
%patch8 -p1 -b .divert

aclocal-1.4
libtoolize --copy --force
rm -f config.{guess,sub}
automake-1.4 -a -c
autoconf

%build
%configure2_5x

%make

%check
make check

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall

%multiarch_binaries $RPM_BUILD_ROOT%{_bindir}/glib-config

%clean
rm -rf $RPM_BUILD_ROOT

%if %mdkversion < 200900
%post -n %{libname} -p /sbin/ldconfig
%endif

%if %mdkversion < 200900
%postun -n %{libname} -p /sbin/ldconfig
%endif

%post -n %{libname}-devel
%_install_info %{name}.info

%preun -n %{libname}-devel
%_remove_install_info %{name}.info

%files -n %{libname}
%defattr(-, root, root)
%doc COPYING
%{_libdir}/lib*.so.*

%files -n %{libname}-devel
%defattr(-, root, root)
%doc AUTHORS ChangeLog NEWS README COPYING docs/*.html
%{_libdir}/lib*.so
%{_libdir}/*a
%{_libdir}/pkgconfig/*
%{_libdir}/glib
%{_includedir}/*
%{_mandir}/man1/*
%{_datadir}/aclocal/*
%{_bindir}/*
%multiarch %{multiarch_bindir}/*
%{_infodir}/%{name}*


%changelog
* Thu Sep 24 2009 Olivier Blin <oblin@mandriva.com> 1.2.10-24mdv2010.0
+ Revision: 448436
- fix build on x86_64 (using a similar config.{guess,sub} hack than the one done in freetype by rtp)
- fix build with libtool and autotools stuff, by taking most of
  changes from newer glib autotools stuff (from Arnaud Patard)

  + Thierry Vignaud <tvignaud@mandriva.com>
    - rebuild

* Mon Dec 22 2008 Oden Eriksson <oeriksson@mandriva.com> 1.2.10-22mdv2009.1
+ Revision: 317534
- fix build with -Werror=format-security (P7)

* Wed Aug 06 2008 Thierry Vignaud <tvignaud@mandriva.com> 1.2.10-21mdv2009.0
+ Revision: 264552
- rebuild early 2009.0 package (before pixel changes)

  + Pixel <pixel@mandriva.com>
    - do not call ldconfig in %%post/%%postun, it is now handled by filetriggers

* Wed May 28 2008 Anssi Hannula <anssi@mandriva.org> 1.2.10-20mdv2009.0
+ Revision: 212166
- fix underlinking (underlinking.patch)

* Sat Jan 12 2008 Thierry Vignaud <tvignaud@mandriva.com> 1.2.10-19mdv2008.1
+ Revision: 150110
- rebuild
- kill re-definition of %%buildroot on Pixel's request

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

* Mon Jul 16 2007 David Walluck <walluck@mandriva.org> 1.2.10-18mdv2008.0
+ Revision: 52375
- version Obsoletes
- explicitly call autoconf-2.13
- call libtoolize --copy --force
- place make check inside %%check section
- rebuild to add Provides: pkgconfig(gmodule)


* Tue Dec 05 2006 Gwenole Beauchesne <gbeauchesne@mandriva.com> 1.2.10-17mdv2007.0
+ Revision: 91240
- use ancient libtool 1.4 with lib64 fixes
- bunzip2 patches, use mkrel
- Import glib

* Sat Dec 31 2005 Mandriva Linux Team <http://www.mandrivaexpert.com/> 1.2.10-16mdk
- Rebuild

* Tue Feb 01 2005 Frederic Crozat <fcrozat@mandrakesoft.com> 1.2.10-15mdk 
- Multiarch
- fix rpmlint errors

* Thu Sep 30 2004 Gwenole Beauchesne <gbeauchesne@mandrakesoft.com> 1.2.10-14mdk
- build static glib library with PIC as pam modules need it

* Sat Aug 14 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 1.2.10-13mdk
- Update patch2 to remove __const__ call 
- Patch3 (Fedora) : fix underquoted m4 definitions

* Fri Jul 09 2004 Frederic Crozat <fcrozat@mandrakesoft.com> 1.2.10-12mdk
- Patch2 (Fedora): fix build with gcc 3.4