Home | History | Annotate | Download | only in gnome-2-16
      1 #
      2 # spec file for package blueprint
      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:         blueprint
     11 Summary:      Engine for GTK2 Blue Print Theme
     12 %ifos solaris
     13 Version:      0.9.16-os
     14 %define tarball_version %{version}
     15 %else
     16 Version:      0.9.16
     17 %define tarball_version %{version}-os
     18 %endif
     19 Release:      41 
     20 License:      LGPL
     21 Distribution: Java Desktop System
     22 Vendor:	      Sun Microsystems, Inc.
     23 Group:        System/GUI/GNOME
     24 Source:       %{name}-%{tarball_version}.tar.bz2
     25 BuildRoot:    %{_tmppath}/%{name}-%{version}-build
     26 URL:          http://www.sun.com/software/javadesktopsystem/
     27 
     28 %define gtk2_version 2.4.0
     29 %define intltool_version 0.30
     30 BuildRequires: gtk2 >= %{gtk2_version}
     31 BuildRequires: intltool >= %{intltool_version}
     32 
     33 %description
     34 This package contains the Blueprint theme engine for GTK2
     35 
     36 %prep
     37 %setup -q -n %name-%tarball_version
     38 
     39 %build
     40 %ifos linux
     41 if [ -x /usr/bin/getconf ]; then
     42   CPUS=`getconf _NPROCESSORS_ONLN`
     43 fi
     44 %else
     45   CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
     46 %endif
     47 if test "x$CPUS" = "x" -o $CPUS = 0; then
     48   CPUS=1
     49 fi
     50 
     51 libtoolize --force
     52 aclocal $ACLOCAL_FLAGS -I .
     53 automake -a -c -f
     54 autoconf
     55 CFLAGS="$RPM_OPT_FLAGS"
     56 ./configure --prefix=%{_prefix}  \
     57 	    --libdir=%{_prefix}/%_lib \
     58 	    --sysconfdir=%{_sysconfdir} 
     59 make -j $CPUS
     60 cd -
     61 
     62 %install
     63 make DESTDIR=$RPM_BUILD_ROOT install
     64 mkdir -p $RPM_BUILD_ROOT%{_defaultdocdir}/blueprint-engine
     65 cp -p AUTHORS COPYING ChangeLog NEWS README $RPM_BUILD_ROOT%{_defaultdocdir}/blueprint-engine
     66 
     67 # Hack to install images into %{_datadir}/pixmaps with blueprint prefix
     68 mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
     69 mkdir -p /tmp/blueprint-pixmaps
     70 installfiles=`find icons/48x48 -name "*.png"`				
     71 for i in $installfiles; do						
     72   echo '-- moving '$i ;						
     73   cp $i /tmp/blueprint-pixmaps ;             				
     74 done;                                           			
     75 installfiles=`find /tmp/blueprint-pixmaps -name "*.png" |sed 's/^\/tmp\/blueprint-pixmaps\///'`
     76 
     77 for i in $installfiles; do                     			
     78   echo '-- Installing '$i ;                  				
     79   mv /tmp/blueprint-pixmaps/$i $RPM_BUILD_ROOT%{_datadir}/pixmaps/blueprint-$i ; 	
     80   done ;                                          			
     81 rm -rf /tmp/blueprint-pixmaps/
     82 rm $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/*/engines/*.a
     83 rm $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/*/engines/*.la
     84 
     85 %clean
     86 rm -rf $RPM_BUILD_ROOT
     87 
     88 %files
     89 %defattr(-, root, root)
     90 %doc AUTHORS COPYING ChangeLog NEWS README
     91 %{_defaultdocdir}/blueprint-engine/ChangeLog
     92 %{_defaultdocdir}/blueprint-engine/AUTHORS
     93 %{_defaultdocdir}/blueprint-engine/COPYING
     94 %{_defaultdocdir}/blueprint-engine/README
     95 %{_defaultdocdir}/blueprint-engine/NEWS
     96 %{_libdir}/gtk-2.0/*/engines/*.so
     97 %{_datadir}/themes/*
     98 %{_datadir}/icons/*
     99 %{_datadir}/locale/*
    100 %{_datadir}/pixmaps/*
    101 
    102 %changelog
    103 * Fri Jun 23 2006 - brian.cameron@sun.com
    104 - Change "cp -a" to "cp -p" so it works with Solaris cp command.
    105 * Thu Feb 10 2005 - muktha.narayan@wipro.com
    106 - Bumped the tarball to include icons required to fix
    107   #5088581.
    108 * Mon Jan 31 2005 - takao.fujiwara@sun.com
    109 - Updated %build to stop build error
    110 * Fri Jan 28 2005 - muktha.narayan@wipro.com
    111 - Bumped the tarball which includes the fix for #5088581 and
    112   merged blueprint-01-g11n-icon.diff in the tarball. 
    113 * Fri Jan 28 2005 - takao.fujiwara@sun.com
    114 - Updated %build to add automake
    115 * Wed Jan 12 2005 - takao.fujiwara@sun.com
    116 - Removed blueprint-01-g11n-alllinguas.diff. Use l10n-configure.sh
    117 - Added blueprint-01-g11n-icon.diff to fix 5083114
    118 * Thu Sep 16 2004 - ciaran.mcdermott@sun.com
    119 - Added blueprint-01-g11n-alllinguas.diff to include cs,hu linguas
    120 * Thu Jul 08 2004 - damien.donlon@sun.com
    121 - Updated l10n content to blueprint-l10n-po-1.2.tar.bz2
    122 * Wed Jul 07 2004 - niall.power@sun.com
    123 - ported to rpm4
    124 * Wed Jul 07 2004 - dermot.mccluskey@sun.com
    125 - added "-j $CPUS" to make to speed up builds
    126 * Wed Jun 2 2004 - glynn.foster@sun.com
    127 - Bump to 0.9.5
    128 * Wed May 12 2004 - damien.donlon@sun.com
    129 - Updated l10n content to blueprint-l10n-po-1.1.tar.bz2
    130 * Wed Mar 31 2004 - brian.cameron@sun.com
    131 - replace tar jxf with the more solaris friendly
    132   bzcat piped through tar
    133 * Mon Mar 29 2004 - damien.donlon@sun.com
    134 - Adding blueprint-l10n-po-1.0.tar.bz2 l10n content
    135 * Fri Mar 12 2004 Niall Power <niall.power@sun.com>
    136 - remove "rm -rf" evil from the install stage
    137 * Mon Feb 16 2004 Niall Power <niall.power@sun.com>
    138 - add ACLOCAL_FLAGS to aclocal invocation
    139 - do not use the -printf argument with find - it
    140   doesn't work on Solaris (pipe through sed instead)
    141 * Fri Jan 19 2004 Takao Fujiwara <takao.fujiwara (at] sun.com>
    142 - Modified blueprint.spec for i18n
    143 * Thu Aug 14 2003 - <laca (at] sun.com>
    144 - remove *.a, *.la
    145 * Wed Jul 02 2003 Erwann Chenede - <erwann.chenede (at] sun.com>
    146 - cleanup + icons theme addition
    147 * Mon May 12 2003 Erwann Chenede - <erwann.chenede (at] sun.com>
    148 - initial implementation of the spec file
    149 
    150