1 # 2 # spec file for package SUNWcompiz-bcop 3 # 4 # Copyright 2006 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 %define owner erwannc 8 # 9 10 #################################################################### 11 # beryl compiz XML option parser 12 #################################################################### 13 14 %include Solaris.inc 15 16 %define OSR 8297:1.6.2 17 18 %define src_name compiz-bcop 19 20 Name: SUNWcompiz-bcop 21 Summary: beryl compiz XML option parser 22 Version: 0.8.4 23 Source: http://releases.compiz.org/%{version}/%{src_name}-%{version}.tar.bz2 24 Patch1: compiz-bcop-01-solaris-port.diff 25 SUNW_BaseDir: %{_basedir} 26 SUNW_Copyright: %{name}.copyright 27 BuildRoot: %{_tmppath}/%{name}-%{version}-build 28 Requires: SUNWgnugetopt 29 Requires: SUNWlxsl 30 Requires: SUNWbash 31 BuildRequires: SUNWgnugetopt 32 BuildRequires: SUNWgnome-common-devel 33 BuildRequires: SUNWlxsl-devel 34 %include default-depend.inc 35 36 37 %prep 38 %setup -q -n %{src_name}-%version 39 %patch1 -p1 40 41 %build 42 CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` 43 if test "x$CPUS" = "x" -o $CPUS = 0; then 44 CPUS=1 45 fi 46 47 aclocal 48 autoheader 49 automake -a -c -f 50 autoconf 51 52 export CFLAGS="%optflags" 53 export RPM_OPT_FLAGS="$CFLAGS" 54 export LDFLAGS="%{_ldflags}" 55 export MSGFMT="/usr/bin/msgfmt" 56 57 ./configure --prefix=%{_prefix} \ 58 --bindir=%{_bindir} \ 59 --sysconfdir=%{_sysconfdir} \ 60 --includedir=%{_includedir} \ 61 --mandir=%{_mandir} \ 62 --libdir=%{_libdir} \ 63 --with-getopt=/usr/gnu/bin/getopt 64 65 make -j$CPUS 66 67 %install 68 make install DESTDIR=$RPM_BUILD_ROOT 69 70 71 %clean 72 rm -rf $RPM_BUILD_ROOT 73 74 %files 75 %defattr (-, root, bin) 76 %dir %attr (0755, root, bin) %{_bindir} 77 %{_bindir}/* 78 %dir %attr (0755, root, bin) %{_libdir} 79 %dir %attr (0755, root, other) %{_libdir}/pkgconfig 80 %{_libdir}/pkgconfig/* 81 %dir %attr(0755, root, sys) %{_datadir} 82 %{_datadir}/* 83 %doc(bzip2) COPYING 84 %dir %attr (0755, root, other) %{_datadir}/doc 85 86 %changelog 87 * Wed Sep 17 2008 - matt.keenn@sun.com 88 - Update copyright 89 * Wed Jun 18 2008 - damien.carbery@sun.com 90 - Add Requires SUNWbash as /usr/bin/bcop is a bash script. 91 * Tue May 27 2008 - damien.carbery@sun.com 92 - Add BuildRequires SUNWgnome-common-devel and Build/Requires SUNWlxsl/-devel 93 to prevent build error. 94 * Wed Feb 13 2008 - erwann@sun.com 95 - remove SFE deps and added to SFO 96 * Mon Oct 29 2007 - trisk@acm.jhu.edu 97 - Bump to 0.6.0 98 * Sat Sep 08 2007 - trisk@acm.jhu.edu 99 - Change XSLT for plugins 100 * Fri Aug 31 2007 - trisk@acm.jhu.edu 101 - Fix dir attributes 102 * Tue Aug 28 2007 - erwann@sun.com 103 - init spec for the new package format 104