1 # 2 # spec file for package SUNWcompizconfig-python 3 #################################################################### 4 # Python bindings for the compizconfig library 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 compizconfig-python 19 20 Name: SUNWcompizconfig-python 21 Summary: compizconfig libraries - is an alternative configuration system for compiz 22 Version: 0.8.4 23 Source: http://releases.compiz-fusion.org/%{version}/%{src_name}-%{version}.tar.bz2 24 SUNW_BaseDir: %{_basedir} 25 SUNW_Copyright: %{name}.copyright 26 27 %ifnarch sparc 28 # these packages are only avavilable on x86 29 # ========================================= 30 31 BuildRoot: %{_tmppath}/%{name}-%{version}-build 32 %include default-depend.inc 33 # add build and runtime dependencies here: 34 BuildRequires: SUNWPython-devel 35 BuildRequires: SUNWlibcompizconfig 36 BuildRequires: SUNWpython-setuptools 37 Requires: SUNWPython 38 Requires: SUNWlibcompizconfig 39 40 %package devel 41 Summary: %{summary} - development files 42 SUNW_BaseDir: %{_basedir} 43 Requires: %{name} = %{version} 44 %include default-depend.inc 45 46 %define pythonver 2.4 47 48 %prep 49 %setup -q -n %{src_name}-%version 50 51 %build 52 CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` 53 if test "x$CPUS" = "x" -o $CPUS = 0; then 54 CPUS=1 55 fi 56 57 export CFLAGS="%optflags" 58 export RPM_OPT_FLAGS="$CFLAGS" 59 export LDFLAGS="%{_ldflags}" 60 export MSGFMT="/usr/bin/msgfmt" 61 62 ./configure --prefix=%{_prefix} \ 63 --bindir=%{_bindir} \ 64 --sysconfdir=%{_sysconfdir} \ 65 --includedir=%{_includedir} \ 66 --libdir=%{_libdir} 67 68 make -j$CPUS 69 70 %install 71 make install DESTDIR=$RPM_BUILD_ROOT 72 73 # move to vendor-packages 74 mkdir -p $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages 75 mv $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages/* \ 76 $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages/ 77 rmdir $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages 78 79 rm -f $RPM_BUILD_ROOT%{_libdir}/*.*a 80 rm -f $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages/*.*a 81 82 %clean 83 rm -rf $RPM_BUILD_ROOT 84 85 %files 86 %defattr (-, root, bin) 87 %dir %attr (0755, root, bin) %{_libdir} 88 %{_libdir}/python%{pythonver}/vendor-packages/* 89 %doc(bzip2) COPYING 90 %dir %attr (0755, root, sys) %{_datadir} 91 %dir %attr (0755, root, other) %{_datadir}/doc 92 93 %files devel 94 %defattr (-, root, bin) 95 %dir %attr (0755, root, other) %{_libdir}/pkgconfig 96 %{_libdir}/pkgconfig/* 97 98 # endif for "ifnarch sparc" 99 %endif 100 101 %changelog 102 * Wed Sep 17 2008 - matt.keenn@sun.com 103 - Update copyright 104 * Wed Mar 26 2008 - dave.lin@sun.com 105 - change to not build this component on SPARC 106 * Wed Feb 13 2008 - erwann@sun.com 107 - Moved to SFO 108 * Wed Nov 14 2007 - daymobrew@users.sourceforge.net 109 - Add l10n package. 110 * Mon Oct 29 2007 - trisk@acm.jhu.edu 111 - Bump to 0.6.0.1 112 * Fri Sep 07 2007 - trisk@acm.jhu.edu 113 - Update rules, fix Python library location 114 * Fri Aug 14 2007 - erwann@sun.com 115 - Initial spec 116