Home | History | Annotate | Download | only in gnome-2-16
      1 #
      2 # spec file for package glade
      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: hawklu
      9 #
     10 Name:         glade
     11 License:      GPL
     12 Group:        System/GUI/GNOME
     13 Version:      2.12.1
     14 Release:      1
     15 Distribution: Java Desktop System
     16 Vendor:       Sun Microsystems, Inc.
     17 Summary:      GLADE User Interface Builder for GNOME
     18 Source:       http://ftp.gnome.org/pub/GNOME/sources/%{name}/2.12/%{name}-%{version}.tar.bz2
     19 Patch1:       glade-01-menu-entry.diff
     20 URL:          http://www.gnome.org
     21 BuildRoot:    %{_tmppath}/%{name}-%{version}-build
     22 Docdir:       %{_docdir}/doc
     23 Autoreqprov:  on
     24 
     25 %define scrollkeeper_version 0.3.14
     26 %define libgnomeui_version 2.9.0
     27 %define libxml2_version 2.4.1
     28 
     29 BuildRequires: scrollkeeper >= %{scrollkeeper_version}
     30 BuildRequires: libgnomeui-devel >= %{libgnomeui_version}
     31 BuildRequires: libxml2 >= %{libxml2_version}
     32 Requires: libgnomeui >= %{libgnomeui_version}
     33 
     34 %description
     35 Glade is a User Interface Builder for GTK+ and GNOME. This package contains GLADE  for the GTK + 2.0 and GNOME 2.0 Platform.
     36 
     37 %prep
     38 %setup -q 
     39 %patch1 -p1
     40 
     41 %build
     42 %ifos linux
     43 if [ -x /usr/bin/getconf ]; then
     44   CPUS=`getconf _NPROCESSORS_ONLN`
     45 fi
     46 %else
     47   CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
     48 %endif
     49 if test "x$CPUS" = "x" -o $CPUS = 0; then
     50   CPUS=1
     51 fi
     52 
     53 libtoolize --force
     54 aclocal $ACLOCAL_FLAGS
     55 automake -a -c -f
     56 autoconf
     57 
     58 CFLAGS="$RPM_OPT_FLAGS" 	\
     59 ./configure  			\
     60 	--prefix=%{_prefix} 	\
     61 	--bindir=%{_bindir}	\
     62 	--libdir=%{_libdir}	\
     63         --includedir=%{_includedir} \
     64     	--sysconfdir=%{_sysconfdir} 
     65 make -j $CPUS
     66 
     67 %install
     68 make -i DESTDIR=$RPM_BUILD_ROOT install
     69 
     70 
     71 rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/glade-2/glade-faq-*.omf
     72 
     73 %clean
     74 rm -rf $RPM_BUILD_ROOT
     75 
     76 %files
     77 %doc AUTHORS COPYING ChangeLog NEWS README
     78 %defattr (-, root, root)
     79 %{_bindir}/*
     80 %{_datadir}/applications
     81 %{_datadir}/locale/*/LC_MESSAGES/*.mo
     82 %{_datadir}/pixmaps/glade-2.png
     83 %{_datadir}/pixmaps/glade-2/*.png
     84 %{_datadir}/omf/glade-2
     85 %{_datadir}/gnome/help/glade-2
     86 %{_datadir}/glade-2
     87 
     88 %changelog
     89 * Tue Dec 20 2005 - dermot.mccluskey@sun.com
     90 - Bump to 2.12.1.
     91 
     92 * Tue Nov 29 2005 - laca.com
     93 - remove javahelp stuff
     94  -n glade
     95 
     96 * Tue Sep 27 2005 - matt.keenan@sun.com
     97 - Bump to 2.10.1.
     98 
     99 * Tue Jun 14 2005 - matt.keenan@sun.com
    100 - Bump to 2.10.0.
    101 
    102 * Fri Mar 11 2005 - matt.keenan@sun.com
    103 - 6227253 : Remove glade-faq*.omf
    104 
    105 * Fri Feb 25 2005 - kazuhiko.maekawa@sun.com
    106 - Added dummy l10n help files to follow base bug updates
    107 
    108 * Mon Feb 14 2005 - damien.carbery@sun.com
    109 - Integrate docs tarball (glade-docs-0.1) from irene.ryan@sun.com.
    110 
    111 * Fri Nov 12 2004 - laca@sun.com
    112 - Added --libdir and --bindir to configure opts so they can be redirected
    113   on Solaris
    114 
    115 * Tue Sep 14 2004 - yuriy.kuznetsov@sun.com
    116 - Added glade-03-g11n-potfiles.diff
    117 
    118 * Thu Jul 08 2004 - damien.donlon@sun.com
    119 - Updated l10n content to glade-l10n-po-1.2.tar.bz2
    120 
    121 * Wed Jul 07 2004 - dermot.mccluskey@sun.com
    122 - added "-j $CPUS" to make to speed up builds
    123 
    124 * Mon Jun  7 2004 - takao.fujiwara@sun.com
    125 - Add 'touch po/*.po' to use sun messages files
    126 - Add glade-02-g11n-linguas.diff to add zh_TW, zh_HK.
    127 
    128 * Fri May 21 2004 - glynn.foster@sun.com
    129 - Add back menu entry, and rename it to Interface Editor
    130 
    131 * Wed May 12 2004 - damien.donlon@sun.com
    132 - Updated l10n content to glade-l10n-po-1.1.tar.bz2
    133 
    134 * Tue Apr 20 2004 - niall.power@sun.com
    135 - bump to 2.6.0 release
    136 - add main menu entry .desktop file
    137 
    138 * Sun Apr 18 2004 - laca@sun.com
    139 - enable javahelp conversion on Solaris
    140 
    141 * Thu Apr 01 2004 - matt.keenan@sun.com
    142 - javahelp conversion
    143 
    144 * Wed Mar 31 2004 - brian.cameron@sun.com
    145 - replace tar jxf with the more solaris friendly
    146   bzcat piped through tar
    147 
    148 * Mon Mar 29 2004 - damien.donlon@sun.com
    149 - Adding glade-l10n-po-1.0.tar.bz2 l10n content
    150 
    151 * Fri Mar 26 2004 - brian.cameron@sun.com
    152 - added $ACLOCAL_FLAGS to aclocal call, needed for Solaris.
    153 
    154 * Tue Mar 16 2004 - glynn.foster@sun.com
    155 - Remove the menu entry patch as %files does
    156   this for free.
    157 
    158 * Thu Nov 14 2003 - glynn.foster@sun.com
    159 - Bump to 2.0.1 tarball
    160 
    161 * Thu Nov 14 2003 - glynn.foster@sun.com
    162 - Remove the menu entry as per spec.
    163 
    164 * Fri Oct 31 2003 - glynn.foster@sun.com
    165 - Remove the Sun Supported part of the menu
    166   patch since we're removing the Extras menu.
    167 
    168 * Fri Aug 01 2003 - glynn.foster (at] sun.com
    169 - Add menu categorization
    170 
    171 * Tue Jul 22 2003 - michael.twomey (at] sun.com
    172 - Updated POTFILES.in
    173 
    174 * Wed Jul 09 2003 - ghee.teo (at] sun.com
    175 - Initial Sun Release
    176