Home | History | Annotate | Download | only in gnome-2-16
      1 #
      2 # spec file for package glib2 
      3 #
      4 # Copyright (c) 2005 Sun Microsystems, Inc.
      5 # This file and all modifications and additions to the pristine
      6 # package are under the same license as the package itself.
      7 #
      8 # Owner: erwannc
      9 #
     10 Name:         glib2 
     11 License:      LGPL
     12 Group:        System/Libraries
     13 Version:      2.12.4
     14 Release:      1
     15 Distribution: Java Desktop System
     16 Vendor:       Sun Microsystems, Inc.
     17 Summary:      Low level core compatibility library for GTK+ and GNOME
     18 Source:       http://ftp.gnome.org/pub/GNOME/sources/glib/2.12/glib-%{version}.tar.bz2
     19 Source1:      libgthread-2.0.3.gz
     20 Source2:      glib-genmarshal.1.gz
     21 Source3:      glib-mkenums.1.gz
     22 Source4:      glib-gettextize.1.gz
     23 Source5:      gobject-query.1.gz
     24 Source6:      libglib-2.0.3.gz
     25 Source7:      libgmodule-2.0.3.gz
     26 Source8:      libgobject-2.0.3.gz
     27 Source9:      mkinstalldirs
     28 Patch1:       glib-01-gettext-macro.diff
     29 Patch2:       glib-02-convert-utf8.diff
     30 Patch3:       glib-03-default-path.diff
     31 Patch4:       glib-04-gmodule-always-lazy.diff
     32 Patch5:       glib-05-solaris-thread-flags.diff
     33 Patch6:       glib-06-feature_tests.diff
     34 Patch7:       glib-07-msgfmt-c.diff
     35 Patch8:       glib-08-hidden.diff
     36 Patch9:       glib-09-ALL_LINGUAS.diff
     37 Patch10:      glib-10-use-fdwalk.diff
     38 #owner:stephen date:2006-11-01 type:feature bugster:6393731
     39 Patch11:      glib-11-trusted-extensions.diff
     40 URL:          http://www.gtk.org
     41 BuildRoot:    %{_tmppath}/%{name}-%{version}-build
     42 Docdir:	      %{_defaultdocdir}/doc
     43 AutoReqProv:  on
     44 Prereq:       /sbin/ldconfig
     45 
     46 %define pkgconfig_version 0.15.0
     47 %define gtk_doc_version 1.1
     48 %define intltool_version 0.34.1
     49 
     50 Requires:      aaa_base
     51 BuildRequires: pkgconfig >= %{pkgconfig_version}
     52 BuildRequires: gtk-doc >= %{gtk_doc_version}
     53 BuildRequires: intltool >= %{intltool_version}
     54 
     55 %description
     56 Glib is the base compatibility library for GTK+ and GNOME. It provides data
     57 structure handling for C, portability wrappers, and interfaces for such
     58 runtime functionality as an event loop, threads, dynamic laoding, and an
     59 object system
     60 
     61 %package devel
     62 Summary:        GIMP Toolkit and GIMP Drawing Kit support library
     63 Group:          Development/Libraries
     64 Requires:       %{name} = %{version}
     65 
     66 %description devel
     67 Glib is the base compatibility library for GTK+ and GNOME. It provides data
     68 structure handling for C, portability wrappers, and interfaces for such
     69 runtime functionality as an event loop, threads, dynamic laoding, and an
     70 object system
     71 
     72 %prep
     73 %setup -q -n glib-%{version}
     74 %patch1 -p1
     75 %patch2 -p1
     76 %patch3 -p1
     77 %patch4 -p1
     78 %patch5 -p1
     79 %patch6 -p1
     80 %patch7 -p1
     81 %patch8 -p1
     82 %patch9 -p1
     83 %patch10 -p1
     84 %patch11 -p1
     85 
     86 %ifos solaris
     87 %ifarch amd64 sparcv9
     88 cd ..
     89 cp -rp glib-%{version} glib-%{version}-64
     90 cd glib-%{version}
     91 %endif
     92 %endif
     93 
     94 
     95 %build
     96 %ifos linux
     97 if [ -x /usr/bin/getconf ]; then
     98   CPUS=`getconf _NPROCESSORS_ONLN`
     99 fi
    100 %else
    101   CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
    102 %endif
    103 if test "x$CPUS" = "x" -o $CPUS = 0; then
    104   CPUS=1
    105 fi
    106 
    107 CONFLAGS="--prefix=%{_prefix} --mandir=%{_mandir} --datadir=%{_datadir}"
    108 
    109 %ifos solaris
    110 %ifarch amd64 sparcv9
    111 CPUS=$(($CPUS*4))
    112 
    113 cd ../glib-%version-64
    114 
    115 export CFLAGS="$CFLAGS64"
    116 export PKG_CONFIG_PATH="$PKG_CONFIG_PATH64"
    117 export CC=${CC64:-$CC}
    118 save_PATH="$PATH"
    119 ccdir=`dirname $CC`
    120 export PATH=$ccdir:$PATH
    121 
    122 cp %SOURCE9 .
    123 aclocal $ACLOCAL_FLAGS
    124 libtoolize --force --copy
    125 gtkdocize
    126 autoheader
    127 automake -a -c -f
    128 autoconf
    129 ./configure $CONFLAGS					\
    130 	    --bindir=%{_bindir}/%{_arch64}		\
    131 	    --libdir=%{_libdir}/%{_arch64}		\
    132 	    --libexecdir=%{_libexecdir}/%{_arch64}	\
    133 	    --sysconfdir=%{_sysconfdir}/%{_arch64}	\
    134 	    --disable-gtk-doc
    135 
    136 make -j $CPUS
    137 
    138 cd ../glib-%version
    139 
    140 export CC=${CC32:-$CC}
    141 export PATH="$save_PATH"
    142 export PKG_CONFIG_PATH="$PKG_CONFIG_PATH32"
    143 export CFLAGS="$CFLAGS32"
    144 export RPM_OPT_FLAGS="$CFLAGS"
    145 %endif
    146 %endif
    147 
    148 cp %SOURCE9 .
    149 aclocal $ACLOCAL_FLAGS
    150 libtoolize --force --copy
    151 gtkdocize
    152 autoheader
    153 automake -a -c -f
    154 autoconf
    155 CFLAGS="$RPM_OPT_FLAGS"			\
    156 ./configure $CONFLAGS			\
    157 	    --sysconfdir=%{_sysconfdir}	\
    158 	    %{gtk_doc_option}
    159 
    160 make -j $CPUS
    161 
    162 %install
    163 
    164 %ifos solaris
    165 %ifarch amd64 sparcv9
    166 cd ../glib-%version-64
    167 make install DESTDIR=$RPM_BUILD_ROOT
    168 cd ../glib-%version
    169 %endif
    170 rm -f $RPM_BUILD_ROOT%{_bindir}/%{_arch64}/glib-gettextize
    171 rm -f $RPM_BUILD_ROOT%{_bindir}/%{_arch64}/glib-mkenums
    172 %endif
    173 
    174 make DESTDIR=$RPM_BUILD_ROOT install
    175 install -d $RPM_BUILD_ROOT%{_mandir}/man1
    176 install -d $RPM_BUILD_ROOT%{_mandir}/man3
    177 install --mode=0644 %SOURCE1 $RPM_BUILD_ROOT%{_mandir}/man3
    178 install --mode=0644 %SOURCE2 $RPM_BUILD_ROOT%{_mandir}/man1
    179 install --mode=0644 %SOURCE3 $RPM_BUILD_ROOT%{_mandir}/man1
    180 install --mode=0644 %SOURCE4 $RPM_BUILD_ROOT%{_mandir}/man1
    181 install --mode=0644 %SOURCE5 $RPM_BUILD_ROOT%{_mandir}/man1
    182 install --mode=0644 %SOURCE6 $RPM_BUILD_ROOT%{_mandir}/man3
    183 install --mode=0644 %SOURCE7 $RPM_BUILD_ROOT%{_mandir}/man3
    184 install --mode=0644 %SOURCE8 $RPM_BUILD_ROOT%{_mandir}/man3
    185 #Copy zh_HK from zh_TW
    186 #Fixes bug 4930405
    187 install -d $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES
    188 install --mode=0644 $RPM_BUILD_ROOT%{_datadir}/locale/zh_TW/LC_MESSAGES/*.mo $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES/
    189 rm $RPM_BUILD_ROOT%{_libdir}/*.la
    190  
    191 %clean
    192 rm -rf $RPM_BUILD_ROOT
    193 
    194 %post
    195 /sbin/ldconfig
    196 
    197 %postun
    198 /sbin/ldconfig
    199 
    200 %files
    201 %defattr(-,root,root)
    202 %{_libdir}/lib*.so.*
    203 %{_datadir}/locale/*/LC_MESSAGES/*.mo
    204 
    205 %files devel
    206 %defattr(-,root,root)
    207 %{_bindir}/*
    208 %{_libdir}/lib*.so
    209 %{_includedir}/glib-2.0/*
    210 %{_libdir}/glib-2.0/include/*.h
    211 %{_libdir}/pkgconfig/*.pc
    212 %{_datadir}/aclocal/*.m4
    213 %{_datadir}/glib-2.0/*
    214 %{_datadir}/gtk-doc/html/*
    215 %{_mandir}/man1/*
    216 %{_mandir}/man3/*
    217 
    218 %changelog
    219 * Fri Nov  3 2006 - laca@sun.com
    220 - use %gtk_doc_option in configure so that it can be disabled using
    221   --without-gtk-doc
    222 * Wed Nov 01 2006 - stephen.browne@sun.com
    223 - added patch glib-11-trusted-extensions.diff: covers bugster 639371
    224 * Mon Oct 02 2006 - damien.carbery@sun.com
    225 - Bump to 2.12.4.
    226 * Mon Sep 25 2006 - padraig.obriain@sun.com
    227 - Add patch use-fdwalk for bugzilla 357585
    228 * Wed Aug 30 2006 - damien.carbery@sun.com
    229 - Bump to 2.12.3.
    230 * Wed Aug 16 2006 - damien.carbery@sun.com
    231 - Bump to 2.12.2.
    232 * Mon Jul 24 2006 - damien.carbery@sun.com
    233 - Bump to 2.12.1.
    234 * Thu Jul 20 2006 - damien.carbery@sun.com
    235 - Bump to 2.12.0.
    236 * Thu Jul 13 2006 - laca@sun.com
    237 - add patch ALL_LINGUAS.diff that removes the \n's from ALL_LINGUAS in
    238   AM_GLIB_GNU_GETTEXT
    239 * Thu May 25 2006 - brian.cameron (at] sun.com
    240 - Add patch glib-08-hidden.diff to make sure that the G_HAVE_GNUC_VISIBILITY
    241   macro is defined to "__hidden" if using the Sun Forte compiler.  This 
    242   makes sure that symbols that should be hidden are not exported when using
    243   our compiler.  This resolves the GNOME 2.14 LSARC 2006/202 TCR regarding
    244   this issue.
    245 * Wed Apr 26 2006 - damien.carbery (at] sun.com
    246 - Bump to 2.10.2.
    247 * Wed Mar  8 2006 - damien.carbery (at] sun.com
    248 - Bump to 2.10.1.
    249 * Sun Feb 26 2006 - damien.carbery (at] sun.com
    250 - Bump to 2.10.0.
    251 * Mon Feb 13 2006 - damien.carbery (at] sun.com
    252 - Bump to 2.9.6.
    253 * Sun Feb 12 2006 - damien.carbery (at] sun.com
    254 - Call gettextize to fix infinite loop in configure.
    255 * Fri Jan 27 2006 - damien.carbery (at] sun.com
    256 - Bump to 2.9.5
    257 * Tue Jan 17 2006 - damien.carbery (at] sun.com
    258 - Bump to 2.9.3
    259 * Sun Jan 15 2006 - damien.carbery (at] sun.com
    260 - Bump to 2.9.2.
    261 * Tue Dec 20 2005 - damien.carbery (at] sun.com
    262 - Bump to 2.9.1. Remove upstream patch 05-logname. Add intltool BuildRequires.
    263 * Tue Nov 29 2005 - damien.carbery (at] sun.com
    264 - Bump to 2.8.4.
    265 * Mon Nov 28 2005 - laca (at] sun.com
    266 - prepare for building from CVS snapshots:
    267 - use a macro for Version
    268 - fix autotool order, add some more
    269 - cp mkinstalldirs so that we don't need to add even more autotool foo
    270 * Tue Oct 11 2005 - damien.carbery@sun.com
    271 - Bump to 2.8.3
    272 * Tue Sep 27 2005 - glynn.foster@sun.com
    273 - Bump to 2.8.2
    274 * Mon Aug 15 2005 - glynn.foster@sun.com
    275 - Bump to 2.8.0
    276 * Wed Jun 15 2005 - matt.keenan@sun.com
    277 - Bump to 2.6.5
    278 - Remove patch glib-04-uninstalled-pc.diff
    279 * Fri May 06 2005 - brian.cameron@sun.com
    280 - Add patch 04 to add needed uninstalled.pc files to allow other
    281   base-libs libraries to build.  This requires calling autoconf
    282   aclocal, etc.
    283 - Fix naming of patches since the patches were renamed but this
    284   spec file not updated.
    285 * Fri May 06 2005 - glynn.foster@sun.com
    286 - Bump to 2.6.4
    287 * Wed Nov 15 2004 - glynn.foster@sun.com
    288 - Bump to 2.4.8, since otherwise glib-gettextize doesn't create 
    289   mkinstalldirs properly, and consequently it means I can't create
    290   tarballs from CVS sources. We also get a rake of nice bug fixes
    291   as a result.
    292 * Fri Nov 12 2004 - brian.cameron@sun.com
    293 - Modify the default path that glib sets (if the user does not have PATH
    294   set), so it does not include "." since ARC determined this is a
    295   security concern.  When building on Sun, set it to just "/usr/bin"
    296   since "/bin" is a symlink to "/usr/bin".  On Linux set it to
    297   "/bin:/usr/bin".
    298 * Fri Oct 29 2004 - laca@sun.com
    299 - use $CC64 for the 64-bit build if defined
    300 * Wed Oct 05 2004 - Yong.Sun@Sun.COM
    301 - Added glib-04-convert-utf8.diff to fix CR 5055972
    302 * Sat Oct  2 2004 - Joseph.Townsend@Sun.COM
    303 - Create 64bit libraries for Solaris
    304 * Thu Sep 16 2004 - ciaran.mcdermott@sun.com
    305 - Added glib-03-g11n-allinguas.diff to include hu lingua
    306 * Wed Aug 18 2004 - brian.cameron@sun.com
    307 - added --enable-gtk-doc
    308 * Thu Aug 05 2004 - archana.shah@wipro.com
    309 - Add patch to fix glib get SIGCHLD everytime
    310 * Thu Jul 08 2004 - damien.donlon@sun.com
    311 - Updated l10n content to glib2-l10n-po-1.2.tar.bz2
    312 * Thu Jul 08 2004 - stephen.browne@sun.com
    313 - ported to rpm4/suse91
    314 * Wed Jul 07 2004 - dermot.mccluskey@sun.com
    315 - added "-j $CPUS" to make to speed up builds
    316 * Fri May 14 2004 - glynn.foster@sun.com
    317 - Bump to 2.4.1
    318 * Wed May 12 2004 - damien.donlon@sun.com
    319 - Updated l10n content to glib2-l10n-po-1.1.tar.bz2
    320 * Mon Mar 29 2004 - damien.donlon@sun.com
    321 - Updated l10n content to glib2-l10n-po-1.0.tar.bz2
    322 * Wed Mar 24 2004 - <glynn.foster@sun.com>
    323 - Bump to 2.4.0
    324 * Wed Mar 10 2004 - <niall.power@sun.com>
    325 - remove glib-02 patch (it wasn't being applied anyway).
    326 - bump to 2.3.6
    327 * Thu Feb 19 2004 - <damien.carbery (at] sun.com>
    328 - Add patch for glib/gmessages.h to change '...' to '__VA_ARGS__' to build
    329   on Solaris. May revisit to use '#ifdef __sun'
    330 * Tue Feb 10 2004 - <matt.keenan@sun.com>
    331 - Bump to 2.3.2, l10n to 0.7
    332 * Mon Dec 15 2003 - <glynn.foster@sun.com>
    333 - update to 2.3.1
    334 * Sat Oct 04 2003 - <laca@sun.com>
    335 - update to 2.2.3
    336 * Thu Aug 14 2003 - <laca@sun.com>
    337 - move lib*.so to -devel, remove *.a, *.la
    338 * Fri Aug 01 2003 - <markmc@sun.com> 2.2.2-1
    339 * Wed Jul 25 2003 - <niall.power@sun.com>
    340 - add aaa_base dependency. Fixes postinstall script breakage
    341   during OS install.
    342 * Wed Jul 09 2003 - <michael.twomey@sun.com>
    343 - add in sun po files
    344 * Thu May 12 2003 - <ghee.teo@sun.com>
    345 - Initial spec file for glib2
    346