Home | History | Annotate | Download | only in core
      1 #
      2 # spec file for package SUNWlibcompizconfig
      3 ####################################################################
      4 # Libcompizconfig is an alternative configuration system for compiz
      5 ####################################################################
      6 #
      7 # Copyright 2006 Sun Microsystems, Inc.
      8 # This file and all modifications and additions to the pristine
      9 # package are under the same license as the package itself.
     10 #
     11 %define owner erwannc
     12 #
     13 
     14 %include Solaris.inc
     15 
     16 %define OSR 8297:1.6.2
     17 
     18 %define src_name libcompizconfig
     19 
     20 Name:                    SUNWlibcompizconfig
     21 Summary:                 compizconfig libraries - is an alternative configuration system for compiz
     22 Version:                 0.8.4
     23 Source:			 http://releases.compiz.org/%{version}/%{src_name}-%{version}.tar.bz2
     24 Patch1:			 libcompizconfig-01-solaris-port.diff
     25 SUNW_BaseDir:            %{_basedir}
     26 SUNW_Copyright:          %{name}.copyright
     27 
     28 %ifnarch sparc
     29 # these packages are only avavilable on x86
     30 # =========================================
     31 
     32 BuildRoot:               %{_tmppath}/%{name}-%{version}-build
     33 %include default-depend.inc
     34 # add build and runtime dependencies here:
     35 BuildRequires:  SUNWcompiz
     36 Requires:	SUNWcompiz
     37 # the base pkg should depend on the -root subpkg, if there is one:
     38 Requires: %{name}-root
     39 
     40 %package root
     41 Summary:                 %{summary} - / filesystem
     42 SUNW_BaseDir:            /
     43 %include default-depend.inc
     44 
     45 %package devel
     46 Summary:		 %{summary} - development files
     47 SUNW_BaseDir:            %{_basedir}
     48 Requires:                %{name} = %{version}
     49 %include default-depend.inc
     50 
     51 %prep
     52 %setup -q -n %{src_name}-%version
     53 %patch1 -p1
     54 
     55 %build
     56 CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
     57 if test "x$CPUS" = "x" -o $CPUS = 0; then
     58     CPUS=1
     59 fi
     60 
     61 rm -f ltmain.sh
     62 libtoolize --force
     63 aclocal
     64 autoheader
     65 automake -a -c -f
     66 autoconf
     67 
     68 %if %cc_is_gcc
     69 %else
     70 export CXX="${CXX} -norunpath"
     71 %endif
     72 export CFLAGS="%optflags"
     73 export RPM_OPT_FLAGS="$CFLAGS"
     74 export LDFLAGS="%{_ldflags} -L/usr/X11/lib -L/usr/openwin/lib -R/usr/X11/lib -R/usr/openwin/lib -lX11 -lXext"
     75 export MSGFMT="/usr/bin/msgfmt"
     76 
     77 ./configure --prefix=%{_prefix}			\
     78 	    --bindir=%{_bindir}			\
     79 	    --sysconfdir=%{_sysconfdir}		\
     80 	    --includedir=%{_includedir}		\
     81             --libdir=%{_libdir}
     82 
     83 make -j$CPUS
     84 
     85 %install
     86 make install DESTDIR=$RPM_BUILD_ROOT
     87 rm -f $RPM_BUILD_ROOT%{_libdir}/*.*a
     88 rm -f $RPM_BUILD_ROOT%{_libdir}/compiz/*.*a
     89 rm -f $RPM_BUILD_ROOT%{_libdir}/compizconfig/backends/*.*a
     90 
     91 # Remove the empty locale dir.
     92 #rmdir $RPM_BUILD_ROOT%{_datadir}/locale
     93 
     94 %clean
     95 rm -rf $RPM_BUILD_ROOT
     96 
     97 %files
     98 %defattr (-, root, bin)
     99 %dir %attr (0755, root, bin) %{_libdir}
    100 %{_libdir}/compiz
    101 %{_libdir}/compizconfig
    102 %{_libdir}/lib*.so*
    103 %dir %attr(0755, root, sys) %{_datadir}
    104 %dir %attr(0755, root, other) %{_datadir}/compiz
    105 %{_datadir}/compiz/*
    106 %doc(bzip2) COPYING
    107 %dir %attr (0755, root, other) %{_datadir}/doc
    108 
    109 %files root
    110 %defattr (0755, root, sys)
    111 %attr (0755, root, sys) %dir %{_sysconfdir}
    112 %{_sysconfdir}/*
    113 
    114 %files devel
    115 %defattr (-, root, bin)
    116 %dir %attr (0755, root, bin) %{_includedir}
    117 %{_includedir}/*
    118 %dir %attr (0755, root, other) %{_libdir}/pkgconfig
    119 %{_libdir}/pkgconfig/*
    120 
    121 # endif for "ifnarch sparc"
    122 %endif
    123 
    124 %changelog
    125 * Sun Feb 22 2009 - dave.lin@sun.com
    126 - Add patch 02-no-null-def.diff to fix nudefined symbol NULL issue.
    127 * Wed Sep 17 2008 - matt.keenn@sun.com
    128 - Update copyright
    129 * Tue Jun 01 2008 - damien.carbery@sun.com
    130 - Fix perms in %files.
    131 * Wed Mar 26 2008 - dave.lin@sun.com
    132 - change to not build this component on SPARC
    133 * Fri Mar 07 2008 - damien.carbery@sun.com
    134 - Move %{_datadir} files from root pkg to base pkg.
    135 * Mon Feb 18 2008 - damien.carbery@sun.com
    136 - Remove l10n stuff as there are no l10n files installed. Remove empty
    137   %{_datadir}/locale during %install.
    138 * Wed Feb 13 2008 - erwann@sun.com
    139 - moved to SFO
    140 * Wed Nov 14 2007 - daymobrew@users.sourceforge.net
    141 - Add l10n package.
    142 * Mon Oct 29 2007 - trisk@acm.jhu.edu
    143 - Bump to 0.6.0
    144 * Sat Sep 15 2007 - trisk@acm.jhu.edu
    145 - Fix patch rule
    146 * Sat Sep 08 2007 - trisk@acm.jhu.edu
    147 - Update rules
    148 * Fri Aug 31 2007 - trisk@acm.jhu.edu
    149 - Fix duplicate package contents
    150 * Fri Aug  14 2007 - erwann@sun.com
    151 - Initial spec
    152