Home | History | Annotate | Download | only in core
      1 #
      2 # spec file for package  SUNWcompizconfig-backend-gconf
      3 ####################################################################
      4 # The gconf backend for CompizConfig. It uses the Gnome configuration
      5 # system and provides integration into the Gnome desktop environment.
      6 ####################################################################
      7 #
      8 # Copyright 2006 Sun Microsystems, Inc.
      9 # This file and all modifications and additions to the pristine
     10 # package are under the same license as the package itself.
     11 # 
     12 %define owner erwannc
     13 
     14 
     15 %include Solaris.inc
     16 
     17 %define OSR 8297:1.6.2
     18 
     19 %define src_name compizconfig-backend-gconf
     20 
     21 Name:                    SUNWcompizconfig-gconf
     22 Summary:                 cgconf backend for CompizConfig
     23 Version:                 0.8.4
     24 Source:			 http://releases.compiz-fusion.org/%{version}/%{src_name}-%{version}.tar.bz2
     25 Patch1:			 compizconfig-backend-gconf-01-solaris-port.diff
     26 SUNW_BaseDir:            %{_basedir}
     27 SUNW_Copyright:          %{name}.copyright
     28 
     29 %ifnarch sparc
     30 # these packages are only avavilable on x86
     31 # =========================================
     32 
     33 BuildRoot:               %{_tmppath}/%{name}-%{version}-build
     34 %include default-depend.inc
     35 # add build and runtime dependencies here:
     36 BuildRequires:	SUNWgnome-libs-devel
     37 BuildRequires:	SUNWgnome-config-devel
     38 BuildRequires:  SUNWlibcompizconfig
     39 Requires:	SUNWgnome-libs
     40 Requires:	SUNWgnome-config
     41 Requires:	SUNWlibcompizconfig
     42 
     43 %prep
     44 %setup -q -n %{src_name}-%version
     45 %patch1 -p1
     46 
     47 %build
     48 CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
     49 if test "x$CPUS" = "x" -o $CPUS = 0; then
     50     CPUS=1
     51 fi
     52 
     53 rm -f ltmain.sh
     54 libtoolize --force
     55 aclocal
     56 autoheader
     57 automake -a -c -f
     58 autoconf
     59 
     60 export CFLAGS="%optflags"
     61 export RPM_OPT_FLAGS="$CFLAGS"
     62 export LDFLAGS="%{_ldflags}"
     63 export MSGFMT="/usr/bin/msgfmt"
     64 
     65 ./configure --prefix=%{_prefix}			\
     66 	    --bindir=%{_bindir}			\
     67 	    --sysconfdir=%{_sysconfdir}		\
     68 	    --includedir=%{_includedir}		\
     69             --libdir=%{_libdir}
     70 
     71 make -j$CPUS
     72 
     73 %install
     74 make install DESTDIR=$RPM_BUILD_ROOT
     75 rm -f $RPM_BUILD_ROOT%{_libdir}/compizconfig/backends/*.*a
     76 
     77 %clean
     78 rm -rf $RPM_BUILD_ROOT
     79 
     80 %files
     81 %defattr (-, root, bin)
     82 %dir %attr (0755, root, bin) %{_libdir}
     83 %dir %attr (0755, root, bin) %{_libdir}/compizconfig
     84 %{_libdir}/compizconfig/*
     85 %doc(bzip2) COPYING
     86 %dir %attr (0755, root, sys) %{_datadir}
     87 %dir %attr (0755, root, other) %{_datadir}/doc
     88 
     89 # endif for "ifnarch sparc"
     90 %endif
     91 
     92 %changelog
     93 * Wed Sep 17 2008 - matt.keenn@sun.com
     94 - Update copyright
     95 * Wed Mar 26 2008 - dave.lin@sun.com
     96 - change to not build this component on SPARC
     97 * Wed Feb 13 2008 - erwann@sun.com
     98 - moved to SFO
     99 * Wed Nov 14 2007 - daymobrew@users.sourceforge.net
    100 - Add l10n package.
    101 * Mon Oct 29 2007 - trisk@acm.jhu.edu
    102 - Bump to 0.6.0
    103 * Fri Sep 07 2007 - trisk@acm.jhu.edu
    104 - Update rules
    105 * Fri Aug  14 2007 - erwann@sun.com
    106 - Initial spec
    107