%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %define snapshotdate 20071018 Name: compizconfig-python Version: 0.6.0 Release: 0.3.%{snapshotdate}git%{?dist} Summary: Python bindings for the Compiz Configuration System Group: Development/Libraries License: LGPLv2+ URL: http://www.opencompositing.org # The source for this package was pulled from upstream's vcs. Use the # following commands to generate the tarball: # git clone git://anongit.compiz-fusion.org/fusion/compizconfig/compizconfig-python compizconfig-python-0.6.0 # cd compizconfig-python-0.6.0 && git checkout 0.6.0 && cd .. # tar -cvf compizconfig-python-0.6.0.tar compizconfig-python-0.6.0 # bzip2 compizconfig-python-0.6.0.tar #Source0: http://releases.compiz-fusion.org/%{version}/%{name}-%{version}.tar.bz2 Source0: %{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) # libdrm is not available on these arches ExcludeArch: s390 s390x ppc64 BuildRequires: libcompizconfig-devel = %{version}, Pyrex, glib2-devel %description The Compiz Project brings 3D desktop visual effects that improve usability of the X Window System and provide increased productivity though plugins and themes contributed by the community giving a rich desktop experience. This package contains bindings to configure Compiz's plugins and the composite window manager. %prep %setup -q %build %configure --disable-static make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT find $RPM_BUILD_ROOT -type f -name "*.a" -o -name "*.la" | xargs rm -f %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc COPYING INSTALL %{python_sitearch}/compizconfig.so %exclude %{_libdir}/pkgconfig/compizconfig-python.pc %changelog * Fri Aug 19 2007 Mohd Izhar Firdaus Ismail 0.6.0-0.3.20071018git - removed devel package * Thu Aug 18 2007 Mohd Izhar Firdaus Ismail 0.6.0-0.2.20071018git0e80b1 - 0.6.0 release * Sun Jun 30 2007 Mohd Izhar Firdaus Ismail 0.0.1-0.3.20070630git - 20070630git * Sun Jun 24 2007 Mohd Izhar Firdaus Ismail 0.0.1-20070622git - Initial specfile, borrowing descriptions from Trevino ubuntu debs