Home | History | Annotate | Download | only in base-specs
      1 #
      2 # spec file for package glade
      3 #
      4 # Copyright (c) 2008 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 %include l10n.inc
     11 Name:         glade
     12 License:      GPL
     13 Group:        System/GUI/GNOME
     14 Version:      3.4.5
     15 Release:      1
     16 Distribution: Java Desktop System
     17 Vendor:       Sun Microsystems, Inc.
     18 Summary:      GLADE User Interface Builder for GNOME
     19 Source:       http://ftp.gnome.org/pub/GNOME/sources/%{name}3/3.4/%{name}3-%{version}.tar.bz2
     20 Source1:      %{name}-po-sun-%{po_sun_version}.tar.bz2
     21 %if %build_l10n
     22 Source2:                 l10n-configure.sh
     23 %endif
     24 URL:          http://www.gnome.org
     25 BuildRoot:    %{_tmppath}/%{name}-%{version}-build
     26 Docdir:       %{_docdir}/doc
     27 Autoreqprov:  on
     28 
     29 %define scrollkeeper_version 0.3.14
     30 %define libgnomeui_version 2.9.0
     31 %define libxml2_version 2.4.1
     32 
     33 BuildRequires: scrollkeeper >= %{scrollkeeper_version}
     34 BuildRequires: libgnomeui-devel >= %{libgnomeui_version}
     35 BuildRequires: libxml2 >= %{libxml2_version}
     36 Requires: libgnomeui >= %{libgnomeui_version}
     37 
     38 %description
     39 Glade is a User Interface Builder for GTK+ and GNOME. This package contains GLADE  for the GTK + 2.0 and GNOME 2.0 Platform.
     40 
     41 %package devel
     42 Summary:      %{name} - Developer Libraries
     43 Group:        Development/Libraries/GNOME
     44 Requires:     %{name} = %{version}
     45 
     46 %prep
     47 %setup -q -n %{name}3-%{version}
     48 %if %build_l10n
     49 bzcat %SOURCE1 | tar xf -
     50 cd po-sun; make; cd ..
     51 %endif
     52 
     53 %build
     54 %ifos linux
     55 if [ -x /usr/bin/getconf ]; then
     56   CPUS=`getconf _NPROCESSORS_ONLN`
     57 fi
     58 %else
     59   CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
     60 %endif
     61 if test "x$CPUS" = "x" -o $CPUS = 0; then
     62   CPUS=1
     63 fi
     64 
     65 libtoolize --force
     66 intltoolize --force --copy --automake
     67 
     68 %if %build_l10n
     69 bash -x %SOURCE2 --enable-copyright
     70 %endif
     71 
     72 aclocal $ACLOCAL_FLAGS -I ./m4
     73 automake -a -c -f
     74 autoconf
     75 
     76 CFLAGS="$RPM_OPT_FLAGS" 	\
     77 ./configure  			\
     78 	--prefix=%{_prefix} 	\
     79 	--bindir=%{_bindir}	\
     80 	--libdir=%{_libdir}	\
     81 	--includedir=%{_includedir} \
     82 	--sysconfdir=%{_sysconfdir} \
     83 	--disable-scrollkeeper	\
     84 	%{gtk_doc_option}
     85 
     86 make -j $CPUS
     87 
     88 %install
     89 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
     90 make -i install DESTDIR=$RPM_BUILD_ROOT
     91 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
     92 
     93 find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
     94 find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
     95 
     96 %clean
     97 rm -rf $RPM_BUILD_ROOT
     98 
     99 %files
    100 %doc AUTHORS COPYING ChangeLog NEWS README
    101 %defattr (-, root, root)
    102 %{_bindir}/*
    103 %{_datadir}/applications
    104 %{_datadir}/locale/*/LC_MESSAGES/*.mo
    105 %{_datadir}/icons
    106 %{_datadir}/omf/*
    107 %{_datadir}/gnome/*
    108 %{_datadir}/glade*
    109 %{_mandir}/man1/*
    110 
    111 %defattr(-, root, root)
    112 %{_includedir}/*
    113 %{_libdir}/pkgconfig/*.pc
    114 
    115 %changelog
    116 * Tue May 06 2008 - damien.carbery@sun.com
    117 - Bump to 3.4.5.
    118 
    119 * Fri Apr 18 2008 - damien.carbery@sun.com
    120 - Bump to 3.4.4.
    121 
    122 * Mon Mar 10 2008 - damien.carbery@sun.com
    123 - Bump to 3.4.3.
    124 
    125 * Tue Dec 18 2007 - damien.carbery@sun.com
    126 - Bump to 3.4.1.
    127 
    128 * Tue Sep 18 2007 - damien.carbery@sun.com
    129 - Bump to 3.4.0.
    130 
    131 * Thu Aug 30 2007 - damien.carbery@sun.com
    132 - Add intltoolize call to update intltool scripts.
    133 
    134 * Thu Aug 23 2007 - damien.carbery@sun.com
    135 - Bump to 3.3.4.
    136 
    137 * Mon Jul 30 2007 - damien.carbery@sun.com
    138 - Bump to 3.3.3.
    139 
    140 * Tue Jul 24 2007 - halton.huo@sun.com
    141 - Bump to 3.3.2.
    142 
    143 * Mon Jun 18 2007 - damien.carbery@sun.com
    144 - Bump to 3.3.1.
    145 
    146 * Wed Jun 06 2007 - halton.huo@sun.com
    147 - Bump to 3.3.0.
    148 
    149 * Mon May 28 2007 - damien.carbery@sun.com
    150 - Bump to 3.2.2.
    151 
    152 * Thu May 03 2007 - halton.huo@sun.com
    153 - Bump to 3.2.1.
    154 - Use %gtk_doc_option in configure
    155 
    156 * Tue Mar 13 2007 - damien.carbery@sun.com
    157 - Bump to 3.2.0. Remove upstream patch, 01-Wall-remove.
    158 
    159 * Tue Mar 06 2007 - halton.huo@sun.com
    160 - Add --disable-scrollkeeper when run ./configure
    161 - Update %files.
    162 
    163 * Wed Feb 28 2007 - halton.huo@sun.com
    164 - Bump to 3.1.5.
    165 - Add patch 01-Wall-remove.diff to fix bugzilla #412993.
    166 - Remove obsoleted patch 01-menu-entry.diff.
    167 
    168 * Tue Feb 13 2007 - takao.fujiwara@sun.com
    169 - Add Add l10n tarball.
    170 
    171 * Tue Dec 20 2005 - dermot.mccluskey@sun.com
    172 - Bump to 2.12.1.
    173 
    174 * Tue Nov 29 2005 - laca.com
    175 - remove javahelp stuff
    176  -n glade
    177 
    178 * Tue Sep 27 2005 - matt.keenan@sun.com
    179 - Bump to 2.10.1.
    180 
    181 * Tue Jun 14 2005 - matt.keenan@sun.com
    182 - Bump to 2.10.0.
    183 
    184 * Fri Mar 11 2005 - matt.keenan@sun.com
    185 - 6227253 : Remove glade-faq*.omf
    186 
    187 * Fri Feb 25 2005 - kazuhiko.maekawa@sun.com
    188 - Added dummy l10n help files to follow base bug updates
    189 
    190 * Mon Feb 14 2005 - damien.carbery@sun.com
    191 - Integrate docs tarball (glade-docs-0.1) from irene.ryan@sun.com.
    192 
    193 * Fri Nov 12 2004 - laca@sun.com
    194 - Added --libdir and --bindir to configure opts so they can be redirected
    195   on Solaris
    196 
    197 * Tue Sep 14 2004 - yuriy.kuznetsov@sun.com
    198 - Added glade-03-g11n-potfiles.diff
    199 
    200 * Thu Jul 08 2004 - damien.donlon@sun.com
    201 - Updated l10n content to glade-l10n-po-1.2.tar.bz2
    202 
    203 * Wed Jul 07 2004 - dermot.mccluskey@sun.com
    204 - added "-j $CPUS" to make to speed up builds
    205 
    206 * Mon Jun  7 2004 - takao.fujiwara@sun.com
    207 - Add 'touch po/*.po' to use sun messages files
    208 - Add glade-02-g11n-linguas.diff to add zh_TW, zh_HK.
    209 
    210 * Fri May 21 2004 - glynn.foster@sun.com
    211 - Add back menu entry, and rename it to Interface Editor
    212 
    213 * Wed May 12 2004 - damien.donlon@sun.com
    214 - Updated l10n content to glade-l10n-po-1.1.tar.bz2
    215 
    216 * Tue Apr 20 2004 - niall.power@sun.com
    217 - bump to 2.6.0 release
    218 - add main menu entry .desktop file
    219 
    220 * Sun Apr 18 2004 - laca@sun.com
    221 - enable javahelp conversion on Solaris
    222 
    223 * Thu Apr 01 2004 - matt.keenan@sun.com
    224 - javahelp conversion
    225 
    226 * Wed Mar 31 2004 - brian.cameron@sun.com
    227 - replace tar jxf with the more solaris friendly
    228   bzcat piped through tar
    229 
    230 * Mon Mar 29 2004 - damien.donlon@sun.com
    231 - Adding glade-l10n-po-1.0.tar.bz2 l10n content
    232 
    233 * Fri Mar 26 2004 - brian.cameron@sun.com
    234 - added $ACLOCAL_FLAGS to aclocal call, needed for Solaris.
    235 
    236 * Tue Mar 16 2004 - glynn.foster@sun.com
    237 - Remove the menu entry patch as %files does
    238   this for free.
    239 
    240 * Thu Nov 14 2003 - glynn.foster@sun.com
    241 - Bump to 2.0.1 tarball
    242 
    243 * Thu Nov 14 2003 - glynn.foster@sun.com
    244 - Remove the menu entry as per spec.
    245 
    246 * Fri Oct 31 2003 - glynn.foster@sun.com
    247 - Remove the Sun Supported part of the menu
    248   patch since we're removing the Extras menu.
    249 
    250 * Fri Aug 01 2003 - glynn.foster (at] sun.com
    251 - Add menu categorization
    252 
    253 * Tue Jul 22 2003 - michael.twomey (at] sun.com
    254 - Updated POTFILES.in
    255 
    256 * Wed Jul 09 2003 - ghee.teo (at] sun.com
    257 - Initial Sun Release
    258