Home | History | Annotate | Download | only in gnome-2-16
      1 #
      2 # spec file for package gnome-desktop
      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: mattman
      9 #
     10 Name:         gnome-desktop
     11 License:      LGPL
     12 Group:        System/Libraries/GNOME
     13 Version:      2.16.1
     14 Release:      1
     15 Distribution: Java Desktop System
     16 Vendor:       Sun Microsystems, Inc.
     17 Summary:      GNOME Desktop Library
     18 Source:       http://ftp.gnome.org/pub/GNOME/sources/%{name}/2.16/%{name}-%{version}.tar.bz2
     19 Source1:      blueprint-extra-icons.tar.bz2
     20 Source2:      gnome-feedback.xml
     21 Source3:      sun-gnome-version.xml
     22 Source4:      jds-64.gif
     23 Source5:      header-bg-jds1.png
     24 Source6:      gnome-about.1.gz
     25 Source7:      gnome-std-options.5.gz
     26 Source8:      gnome-cleanup
     27 Patch1:       gnome-desktop-01-jds-about-branding.diff
     28 Patch2:       gnome-desktop-02-hicolor-icons.diff
     29 Patch3:       gnome-desktop-03-trusted-extensions.diff
     30 URL:          http://www.gnome.org
     31 BuildRoot:    %{_tmppath}/%{name}-%{version}-build
     32 Docdir:       %{_defaultdocdir}/%{name}
     33 Autoreqprov:  on
     34 Prereq:       /sbin/ldconfig
     35 
     36 %define libwnck_version 2.4.0
     37 %define libgnomeui_version 2.2.0
     38 %define startup_notification_version 0.5
     39 %define popt_version 1.6.4
     40 %define libgnome_version 2.4.0
     41 %define scrollkeeper_version 0.3.12
     42  
     43 BuildRequires: libwnck-devel >= %{libwnck_version}
     44 BuildRequires: libgnomeui-devel >= %{libgnomeui_version}
     45 BuildRequires: startup-notification-devel >= %{startup_notification_version}
     46 BuildRequires: popt-devel >= %{popt_version}
     47 BuildRequires: scrollkeeper >= %{scrollkeeper_version}
     48 BuildRequires: gnome-doc-utils
     49 
     50 %description
     51 libgnome-desktop is a private library containing API that are 
     52 not considered stable.
     53 
     54 gnome-desktop also contains icons and documents used in the 
     55 base GNOME Desktop.
     56 
     57 %package devel
     58 Summary:      GNOME Desktop Library
     59 Group:        Development/Libraries/GNOME
     60 Requires:     %name = %version-%release
     61 Requires:     libgnomeui-devel >= %{libgnomeui_version}
     62 Requires:     libgnome-devel >= %{libgnome_version}
     63 
     64 %description devel
     65 libgnome-desktop is a private library containing API that are 
     66 not considered stable.
     67 
     68 %prep
     69 %setup -q
     70 bzcat %SOURCE1 | tar xvf -
     71 cp %SOURCE2 desktop-docs/gnome-feedback/C/gnome-feedback.xml
     72 cp %SOURCE3 gnome-version.xml.in.in
     73 cp %SOURCE4 gnome-about/gnome-64.gif
     74 %patch1 -p1
     75 %patch2 -p1
     76 %patch3 -p1
     77 
     78 %build
     79 %ifos linux
     80 if [ -x /usr/bin/getconf ]; then
     81   CPUS=`getconf _NPROCESSORS_ONLN`
     82 fi
     83 %else
     84   CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
     85 %endif
     86 if test "x$CPUS" = "x" -o $CPUS = 0; then
     87   CPUS=1
     88 fi
     89 
     90 gnome-doc-common
     91 gnome-doc-prepare
     92 libtoolize --force
     93 glib-gettextize -f
     94 intltoolize --force --copy
     95 aclocal $ACLOCAL_FLAGS
     96 autoconf
     97 autoheader
     98 automake -a -c -f
     99 
    100 %ifos solaris
    101 release_version="GNOME %{version} Desktop"
    102 %else
    103 release_version=`head -1 /etc/sun-release`
    104 %endif
    105 #FIXME: Disable scrollkeeper for now
    106 CFLAGS="$RPM_OPT_FLAGS"		\
    107 ./configure --prefix=%{_prefix}		\
    108 	    --sysconfdir=%{_sysconfdir} \
    109 	    --localstatedir=/var/lib \
    110 	    --mandir=%{_mandir} \
    111 	    --with-gnome-distributor="Sun Microsystems, Inc." \
    112 	    --with-gnome-distributor-version="$release_version" \
    113 	    --disable-scrollkeeper
    114 make -j $CPUS
    115 
    116 %install
    117 make DESTDIR=$RPM_BUILD_ROOT install
    118 install --mode=0644 %SOURCE5 $RPM_BUILD_ROOT%{_datadir}/gnome-about/headers
    119 install -d $RPM_BUILD_ROOT%{_mandir}/man1
    120 install -d $RPM_BUILD_ROOT%{_mandir}/man5
    121 install --mode=0644 %SOURCE6 $RPM_BUILD_ROOT%{_mandir}/man1
    122 install --mode=0755 %SOURCE7 $RPM_BUILD_ROOT%{_mandir}/man5
    123 install --mode=0755 %SOURCE8 $RPM_BUILD_ROOT%{_bindir}
    124 #Copy zh_HK from zh_TW
    125 #Fixes bug 4930405
    126 install -d $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES
    127 install --mode=0644 $RPM_BUILD_ROOT%{_datadir}/locale/zh_TW/LC_MESSAGES/*.mo $RPM_BUILD_ROOT%{_datadir}/locale/zh_HK/LC_MESSAGES/
    128 
    129 rm $RPM_BUILD_ROOT%{_libdir}/*.a
    130 rm $RPM_BUILD_ROOT%{_libdir}/*.la
    131 rm -f $RPM_BUILD_ROOT%{_datadir}/pixmaps/gnome-suse.png
    132 
    133 %clean
    134 rm -rf $RPM_BUILD_ROOT
    135 
    136 %post
    137 /sbin/ldconfig
    138 
    139 %postun
    140 /sbin/ldconfig
    141 
    142 %files
    143 %defattr (-, root, root)
    144 %{_datadir}/locale/*/LC_MESSAGES/*.mo
    145 %{_bindir}/*
    146 %{_datadir}/applications/
    147 %{_datadir}/gnome-about/*.png
    148 %{_datadir}/gnome-about/*.xml
    149 %{_datadir}/gnome-about/headers/header-bg-*.png
    150 %{_datadir}/gnome/help/*
    151 %{_datadir}/omf/*
    152 %{_mandir}/man1/gnome-about.1.gz
    153 %{_mandir}/man5/gnome-std-options.5.gz
    154 %{_datadir}/pixmaps/
    155 %{_datadir}/icons/
    156 %{_libdir}/libgnome-desktop-2.so.*
    157 
    158 %files devel
    159 %defattr (-, root, root)
    160 %{_includedir}/gnome-desktop-2.0/libgnome/*.h
    161 %{_includedir}/gnome-desktop-2.0/libgnomeui/*.h
    162 %{_libdir}/pkgconfig/*.pc
    163 %{_libdir}/libgnome-desktop-2.so
    164 
    165 %changelog
    166 * Tue Oct 03 2006 - damien.carbery@sun.com
    167 - Bump to 2.16.1.
    168 * Mon Sep 04 2006 - damien.carbery@sun.com
    169 - Bump to 2.16.0.
    170 * Tue Aug 08 2006 - damien.carbery@sun.com
    171 - Bump to 2.15.91.
    172 * Mon Jul 24 2006 - damien.carbery@sun.com
    173 - Bump to 2.15.90.
    174 * Thu Jun  8 2006 - laca@sun.com
    175 - Delete gnome-suse.png from the pkgs
    176 * Thu Apr 13 2006 - damien.carbery@sun.com
    177 - Bump to 2.14.1.1.
    178 * Mon Apr 10 2006 - damien.carbery@sun.com
    179 - Bump to 2.14.1.
    180 * Mon Mar 13 2006 - damien.carbery@sun.com
    181 - Bump to 2.14.0.
    182 * Tue Feb 28 2006 - damien.carbery@sun.com
    183 - Bump to 2.13.92.
    184 * Tue Feb 14 2006 - damien.carbery@sun.com
    185 - Bump to 2.13.91.
    186 * Fri Jan 27 2006 - damien.carbery@sun.com
    187 - Bump to 2.13.90.
    188 * Wed Jan 18 2006 - brian.cameron@sun.com
    189 - Calling glib-gettextize also fixes the infinite loop and is better than
    190   patching the Makefile to not build the po directory.
    191 * Wed Jan 18 2006 - damien.carbery@sun.com
    192 - Add intltoolize call.
    193 - Add patch to fix infinite loop in configure.
    194 * Mon Jan 16 2006 - damien.carbery@sun.com
    195 - Bump to 2.13.5. Increment displayed version.
    196 * Sun Jan 15 2006 - damien.carbery@sun.com
    197 - Bump to 2.13.4.
    198 * Thu Dec 22 2005 - damien.carbery@sun.com
    199 - Bump to 2.13.3.
    200 * Tue Nov 29 2005 - laca.com
    201 - remove javahelp stuff
    202 * Tue Nov 29 2005 - damien.carbery@sun.com
    203 - Bump to 2.12.2.
    204 * Tue Oct 11 2005 - damien.carbery@sun.com
    205 - Bump to 2.12.1
    206 * Sat Sep 17 2005 - glynn.foster@sun.com
    207 - Bump to 2.12.0
    208 * Mon Sep 05 2005 - damien.carbery@sun.com
    209 - Bump to 2.11.92.
    210 * Wed Aug 24 2005 - laca@sun.com
    211 - add gnome-doc-utils dependency and run gnome-doc-prepare to fix
    212   doc makefiles.
    213 * Mon Aug 15 2005 - damien.carbery@sun.com
    214 - Bump to 2.11.90.
    215 * Fri Jun 24 2005 - balamurali.viswanathan@wipro.com
    216 - Add patch pkgconfig.diff that adds the required libs explictly
    217 * Fri May 06 2005 - glynn.foster@sun.com
    218 - Bump to 2.10.1
    219 * Fri Apr 08 2005 - glynn.foster@sun.com
    220 - Add some hicolor icons. Should really be fixed in the code though.
    221 * Fri Jan 28 2005 - balamurali.viswanathan@wipro.com
    222 - Modified patch gnome-desktop-01-jds-about-branding.diff so that Sun and gnome
    223   contributors are shown alphabetically. Fixes bug #6219985.
    224 * Fri Jan 14 2005 - kazuhiko.maekawa@sun.com
    225 - Updated l10n help tarball for cinnabar-linux
    226 * Wed Nov 24 2004 - kazuhiko.maekawa@sun.com
    227 - Add English contents under l10n directory to fix 6197769(P1 STP)
    228 * Fri Oct 29 2004 - vijaykumar.patwari@wipro.com
    229 - Fixes nautilus crash for DnD of 'This Computer'
    230   icon over staroffice icon on desktop.
    231 * Mon Aug 16 2004 - damien.carbery@sun.com
    232 - Changed SOURCE7 mode to 0755 for Solaris integration.
    233 * Thu Jul 15 2004 - leena.gunda@wipro.com
    234 - Updated spec-file to change the release version to 3 for 
    235   Solaris. Fixes bug #5073195.
    236 * Thu Jul 08 2004 - damien.donlon@sun.com
    237 - Updated l10n content to gnome-desktop-l10n-po-1.2.tar.bz2
    238 * Wed Jul 07 2004 - damien.carbery@sun.com
    239 - Add gnome-feedback.xml to ext-sources and package.
    240 * Wed Jul 07 2004 - niall.power@sun.com
    241 - ported to rpm4
    242 * Wed Jul  7 2004 - takao.fujiwara@sun.com
    243 - Updated gnome-desktop-02-menu-entries.diff
    244 - Updated gnome-desktop-03-g11n-potfiles.diff
    245 * Wed Jul 07 2004 - dermot.mccluskey@sun.com
    246 - added "-j $CPUS" to make to speed up builds
    247 * Fri May 28 2004 - danek.duvall@sun.com
    248 - Fixed the release version on Solaris.
    249 * Fri May 28 2004 - laca@sun.com
    250 - Added gnome-cleanup script (fixes 5051597)
    251 * Mon May 24 2004 - yuriy.kuznetsov@sun.com
    252 - Added patch gnome-desktop-03-g11n-potfiles.diff
    253 * Wed May 12 2004 - damien.donlon@sun.com
    254 - Updated l10n content to gnome-desktop-l10n-po-1.1.tar.bz2
    255 * Fri May 07 2004 - matt.keenan@sun.com
    256 - Bump to 2.6.1
    257 * Tue May 04 2004 - glynn.foster@sun.com
    258 - Add administration directory, so we have a nice icon
    259 * Sun Apr 18 2004 - laca@sun.com
    260 - enable javahelp conversion on Solaris
    261 * Fri Apr 16 2004 - archana.shah@wipro.com
    262 - Changed spec file to use 'release_version' as a variable and not a string 
    263   so that it displays release version number correctly.
    264 * Thu Apr 15 2004 - glynn.foster@sun.com
    265 - Bump to 2.6.0.1 and remove the directory entries patch
    266   since it's upstream and not needed anymore.
    267 * Thu Apr 01 2004 - matt.keenan (at] sun.com
    268 - javahelp conversion
    269 * Mon Mar 29 2004 - damien.donlon (at] sun.com
    270 - Updated l10n content to gnome-desktop-l10n-po-1.0.tar.bz2
    271 * Tue Mar 23 2004 - glynn.foster (at] sun.com
    272 - Bump to 2.6.0 and remove the preference icons
    273   since they're mostly in gnome-icon-theme now.
    274 * Mon Mar 22 2004 - glynn.foster@sun.com
    275 - Bump to 2.5.92, merge the jds about patches, remove
    276   some building patches and man page patch.
    277 * Sun Feb 29 2004 - laca@sun.com
    278 - Add patch 09 needed for Solaris build
    279 * Fri Feb 20 2004 - stephen.browne@sun.com
    280 - Added Build req for scrollkeeper 
    281 * Tue Feb 17 2004 - laca@sun.com
    282 - Add uninstalled.pc file needed for the Solaris builds
    283 * Mon Feb 09 2004 - matt.keenan@sun.com
    284 - Bump to 2.5.4, l10n tarball to 0.7
    285 - Port patch 05, 06
    286 - New patch 07 for omf.make, need to run gnome-doc-common to get these
    287   but not sure how ?
    288 * Mon Dec 15 2003 - glynn.foster@sun.com
    289 - Bump to 2.5.2
    290 * Mon Oct 20 2003 - ghee.teo@sun.com
    291 - included the patches to put in copyrights for Sun Java Desktop and Sun's 
    292   contributors.
    293 * Sun Oct 19 2003 - damien.donlon (at] sun.com
    294 - Updated l10n content to gnome-desktop-l10n-po-0.4.tar.bz2
    295 * Fri Oct 17 2003 - michael.twomey (at] sun.com
    296 - Updated l10n content to gnome-desktop-l10n-po-0.3.tar.bz2
    297 * Thu Oct 16 2003 - <ghee.teo (at] sun.com>
    298 - Changed the copyright and modify the contributors list
    299   as in bug 4938100.
    300 * Mon Oct 13 2003 - <matt.keenan (at] sun.com>
    301 - Man pages update
    302 * Fri Oct 10 2003 - michael.twomey (at] sun.com
    303 - Updated l10n content to gnome-desktop-l10n-po-0.2.tar.bz2
    304 * Thu Oct 09 2003 - <matt.keenan (at] sun.com>
    305 - Man pages
    306 * Tue Sep 18 2003 - <markmc (at] sun.com> 2.3.6-13
    307 - Updated year in copyright. Patch from Bala.
    308 * Tue Aug 19 2003 - <glynn.foster (at] sun.com>
    309 - Use the release number as a version string.
    310 * Thu Aug 14 2003 - <laca (at] sun.com>
    311 - move lib*.so to -devel, remove *.a, *.la
    312 * Thu Aug 07 2003 - <markmc (at] sun.com> 2.3.6-4
    313 - Add new gnome-about header images
    314 * Thu Aug 07 2003 - <markmc (at] sun.com> 2.3.6-3
    315 - Include legalaise in the gnome-about dialog.
    316 * Thu Aug 07 2003 - <markmc (at] sun.com> 2.3.6-2
    317 - Set the distributor correctly
    318 * Thu Aug 07 2003 - <markmc (at] sun.com> 2.3.6-1
    319 - Update to 2.3.6
    320 * Thu Jul 24 2003 - <glynn.foster (at] sun.com>
    321 - Give burn:/// and quick-start:/// titles and
    322   icons.
    323 * Thu Jul 24 2003 - <glynn.foster (at] sun.com>
    324 - Make preferences:/// use a consistant icon.
    325 * Tue Jul 21 2003 - <glynn.foster (at] sun.com>
    326 - Remove advanced directory relocation. Something must have
    327   changed along the way.
    328 * Thu Jul 17 2003 - <glynn.foster (at] sun.com>
    329 - Add some icons for the preferences menu
    330 * Wed Jul 16 2003 - <Laszlo.Kovacs (at] sun.com>
    331 - add gnome-desktop-03-network-directory-files.diff
    332 * Wed Jul 09 2003 - <michael.twomey (at] sun.com>
    333 - add in sun po files
    334 * Fri Jul 03 2003 - <glynn.foster (at] sun.com>
    335 - New tarball
    336 * Wed Jul 02 2003 - <glynn.foster (at] sun.com>
    337 - New tarball...whee
    338 * Wed Jul 02 2003 - <glynn.foster (at] sun.com>
    339 - Move the advanced-directory.png icon to it's 
    340   proper location. This probably is already fixed
    341   in HEAD. gnome-desktop-01-advanced-directory-relocation.diff
    342 * Wed Jul 02 2003 - <glynn.foster@sun.com>
    343 - Make sure that we install the .directory files
    344   as well
    345 * Tue May 13 2003 - <ghee.teo@Sun.COM>
    346 - Created new spec file for gnome-desktop
    347