1 # 2 # spec file for package SUNWcompiz-fusion-main.spec 3 # 4 # Copyright 2009 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 %define owner erwannc 9 10 %include Solaris.inc 11 12 %define OSR 8297:1.6.2 13 14 %define src_name compiz-plugins-main 15 16 Name: SUNWcompiz-fusion-main 17 Summary: main effects plugins for compiz 18 Version: 0.8.4 19 Source: http://releases.compiz.org/%{version}/%{src_name}-%{version}.tar.bz2 20 %if %build_l10n 21 Source1: l10n-configure.sh 22 %endif 23 Patch1: compiz-fusion-main-01-solaris-port.diff 24 Patch2: compiz-fusion-main-02-compvector.diff 25 SUNW_BaseDir: %{_basedir} 26 SUNW_Copyright: %{name}.copyright 27 28 %ifnarch sparc 29 # these packages are only available on x86 30 # ========================================= 31 32 BuildRoot: %{_tmppath}/%{name}-%{version}-build 33 %include default-depend.inc 34 BuildRequires: SUNWcompiz-bcop 35 BuildRequires: SUNWcompiz-devel 36 BuildRequires: SUNWxorg-mesa 37 Requires: SUNWcompiz 38 Requires: SUNWxorg-mesa 39 # the base pkg should depend on the -root subpkg, if there is one: 40 Requires: %{name}-root 41 Requires: SUNWdesktop-cache 42 43 %package root 44 Summary: %{summary} - / filesystem 45 SUNW_BaseDir: / 46 %include default-depend.inc 47 48 %package devel 49 Summary: %summary - developer files 50 sUNW_BaseDir: %{_basedir} 51 %include default-depend.inc 52 Requires: %name 53 54 %if %build_l10n 55 %package l10n 56 Summary: %summary - l10n files 57 SUNW_BaseDir: %{_basedir} 58 %include default-depend.inc 59 Requires: %{name} 60 %endif 61 62 %prep 63 # testing is the OpenGL headers and libs are installed 64 # if this fails this mean the build machine is not 65 # properly configured 66 test -f /usr/X11/include/GL/glx.h || { 67 echo "Missing OpenGL headers. Stopping." 68 false 69 } 70 test -f /usr/X11/lib/modules/extensions/libglx.so || { 71 echo "Missing OpenGL libraries. Stopping." 72 false 73 } 74 %setup -q -n %{src_name}-%version 75 %patch1 -p1 76 %patch2 -p1 77 # Ensure option code is regenerated by bcop XSLT 78 find . -name '*_options.c' -o -name '*_options.h' -exec rm -f {} \; 79 80 %build 81 CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` 82 if test "x$CPUS" = "x" -o $CPUS = 0; then 83 CPUS=1 84 fi 85 86 intltoolize --copy --force --automake 87 88 %if %build_l10n 89 bash -x %SOURCE1 --enable-copyright 90 %endif 91 92 rm -f ltmain.sh 93 libtoolize --force 94 aclocal 95 autoheader 96 automake -a -c -f 97 autoconf 98 99 export CFLAGS="%optflags" 100 export RPM_OPT_FLAGS="$CFLAGS" 101 export LDFLAGS="%{_ldflags}" 102 export MSGFMT="/usr/bin/msgfmt" 103 104 ./configure --prefix=%{_prefix} \ 105 --bindir=%{_bindir} \ 106 --sysconfdir=%{_sysconfdir} \ 107 --includedir=%{_includedir} \ 108 --mandir=%{_mandir} \ 109 --libdir=%{_libdir} \ 110 --enable-schemas 111 112 make -j$CPUS 113 114 %install 115 make install DESTDIR=$RPM_BUILD_ROOT 116 rm $RPM_BUILD_ROOT%{_libdir}/compiz/*.la 117 rm $RPM_BUILD_ROOT%{_libdir}/compiz/*.a 118 # 119 # when not building -l10n packages, remove anything l10n related from 120 # $RPM_BUILD_ROOT 121 # 122 %if %build_l10n 123 %else 124 # REMOVE l10n FILES 125 rm -r $RPM_BUILD_ROOT%{_datadir}/locale 126 %endif 127 128 %post 129 %restart_fmri gconf-cache 130 131 %clean 132 rm -rf $RPM_BUILD_ROOT 133 134 %files 135 %defattr (-, root, bin) 136 %dir %attr (0755, root, bin) %{_libdir} 137 %dir %attr (0755, root, bin) %{_libdir}/compiz 138 %{_libdir}/compiz/* 139 %dir %attr(0755, root, sys) %{_datadir} 140 %dir %attr(0755, root, other) %{_datadir}/compiz 141 %{_datadir}/compiz/* 142 %doc AUTHORS po/ChangeLog 143 %doc(bzip2) COPYING 144 %dir %attr (0755, root, other) %{_datadir}/doc 145 146 %files root 147 %defattr (0755, root, sys) 148 %attr (0755, root, sys) %dir %{_sysconfdir} 149 %{_sysconfdir}/* 150 151 %files devel 152 %defattr (-, root, bin) 153 %dir %attr (0755,root,other) %{_libdir}/pkgconfig 154 %{_libdir}/pkgconfig/* 155 %dir %attr (0755, root, bin) %{_includedir} 156 %{_includedir}/* 157 158 %if %build_l10n 159 %files l10n 160 %defattr (-, root, other) 161 %dir %attr (0755, root, sys) %{_datadir} 162 %{_datadir}/locale 163 %endif 164 165 # endif for "ifnarch sparc" 166 %endif 167 168 %changelog 169 * Fri Apr 3 2009 - laca@sun.com 170 - use desktop-cache instead of postrun 171 * Wed Sep 16 2008 - matt.keenn@sun.com 172 - Update copyright 173 * Wed May 21 2008 - damien.carbery@sun.com 174 - Add Build/Requires: SUNWxorg-mesa after check-deps.pl run. 175 * Mon Apr 07 2008 - damien.carbery@sun.com 176 - Break the build if the openGL headers and libraries are not present on the 177 machine. 178 * Wed Mar 26 2008 - dave.lin@sun.com 179 - change to not build this component on SPARC 180 * Thu Mar 20 2008 - takao.fujiwara@sun.com 181 - Add compiz-fusion-main-02-po.diff for ar, es, hu, ko, pt_BR, ru 182 * Sun Mar 09 2008 - erwann@sun.com 183 - add standard gconf script 184 * Wed Feb 20 2008 - damien.carbery@sun.com 185 - Fix l10n build. 186 * Mon Oct 29 2007 - trisk@acm.jhu.edu 187 - Bump to 0.6.0 188 * Wed Sep 19 2007 - trisk@acm.jhu.edu 189 - Drop unnecessary patch2 190 * Fri Sep 07 2007 - trisk@acm.jhu.edu 191 - Fix rules, add patch2 192 * Wed Aug 29 2007 - erwann@sun.com 193 - Initial spec 194