8be7013
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
8be7013
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
13f4ae2
%define         basever 0.7.6
8be7013
8be7013
Name:           compizconfig-python
13f4ae2
Version:        0.7.6
3bf1802
Release:        2%{?dist}
8be7013
Summary:        Python bindings for the Compiz Configuration System
8be7013
8be7013
Group:          Development/Libraries
8be7013
License:        LGPLv2+
8be7013
URL:            http://www.compiz-fusion.org
8be7013
8be7013
Source0:        http://releases.compiz-fusion.org/%{version}/%{name}-%{version}.tar.bz2
8be7013
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
8be7013
8be7013
# libdrm is not available on these arches
8be7013
ExcludeArch:    s390 s390x ppc64
13f4ae2
BuildRequires:  libcompizconfig-devel >= %{basever}, Pyrex, glib2-devel
8be7013
8be7013
%description
8be7013
The Compiz Project brings 3D desktop visual effects that improve
8be7013
usability of the X Window System and provide increased productivity
8be7013
though plugins and themes contributed by the community giving a
8be7013
rich desktop experience.
8be7013
8be7013
This package contains bindings to configure Compiz's
8be7013
plugins and the composite window manager.
8be7013
8be7013
%prep
8be7013
%setup -q 
8be7013
8be7013
%build
8be7013
%configure --disable-static
8be7013
make %{?_smp_mflags}
8be7013
8be7013
8be7013
%install
8be7013
rm -rf $RPM_BUILD_ROOT
8be7013
make install DESTDIR=$RPM_BUILD_ROOT
8be7013
find $RPM_BUILD_ROOT -type f -name "*.a" -o -name "*.la" | xargs rm -f
8be7013
8be7013
8be7013
%clean
8be7013
rm -rf $RPM_BUILD_ROOT
8be7013
8be7013
8be7013
%files
8be7013
%defattr(-,root,root,-)
ad6f499
%doc COPYING
8be7013
%{python_sitearch}/compizconfig.so
8be7013
%exclude %{_libdir}/pkgconfig/compizconfig-python.pc
8be7013
8be7013
8be7013
%changelog
3bf1802
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.7.6-2
3bf1802
- Rebuild for Python 2.6
3bf1802
13f4ae2
* Sat Jun 07 2008 Mohd Izhar Firdaus Ismail <mohd.izhar.firdaus@gmail.com> 0.7.6-1
13f4ae2
- 0.7.6 update
13f4ae2
ad6f499
* Tue Mar 28 2008 Mohd Izhar Firdaus Ismail <mohd.izhar.firdaus@gmail.com> 0.7.2-1
ad6f499
- 0.7.2 update
5ffc1d3
db0bff9
* Sat Nov 25 2007 Mohd Izhar Firdaus Ismail <mohd.izhar.firdaus@gmail.com> 0.6.0.1-2
db0bff9
- 0.6.0.1 release
db0bff9
db0bff9
* Sat Oct 21 2007 Mohd Izhar Firdaus Ismail <mohd.izhar.firdaus@gmail.com> 0.6.0-1
8be7013
- official 0.6.0 tarball release
8be7013
8be7013
* Fri Aug 19 2007 Mohd Izhar Firdaus Ismail <mohd.izhar.firdaus@gmail.com> 0.6.0-0.3.20071018git
8be7013
- removed devel package
8be7013
8be7013
* Thu Aug 18 2007 Mohd Izhar Firdaus Ismail <mohd.izhar.firdaus@gmail.com> 0.6.0-0.2.20071018git0e80b1
8be7013
- 0.6.0 prerelease
8be7013
8be7013
* Sun Jun 30 2007 Mohd Izhar Firdaus Ismail <mohd.izhar.firdaus@gmail.com> 0.0.1-0.3.20070630git
8be7013
- 20070630git
8be7013
8be7013
* Sun Jun 24 2007 Mohd Izhar Firdaus Ismail <mohd.izhar.firdaus@gmail.com> 0.0.1-20070622git
8be7013
- Initial specfile, borrowing descriptions from Trevino ubuntu debs