cb768b4
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
cb768b4
a65a734
%define cairo_version 1.4.12
a65a734
cb768b4
### Abstract ###
32880c4
Jonathan Blandford 53c51bc
Name: pycairo
a65a734
Version: 1.4.12
a685867
Release: 2%{?dist}
Jonathan Blandford 53c51bc
License: LGPL
Jonathan Blandford 53c51bc
Group: Development/Languages
cb768b4
Summary: Python bindings for the cairo library
0ca6d49
URL: http://cairographics.org/pycairo
Jonathan Blandford 53c51bc
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
0ca6d49
Source: http://cairographics.org/releases/pycairo-%{version}.tar.gz
cb768b4
cb768b4
### Build Dependencies ###
cb768b4
a65a734
BuildRequires: cairo-devel >= %{cairo_version}
2676cc6
BuildRequires: pkgconfig
0ca6d49
BuildRequires: python-devel
cb768b4
Jonathan Blandford 53c51bc
%description
cb768b4
Python bindings for the cairo library.
Jonathan Blandford 53c51bc
32880c4
%package devel
32880c4
Summary: Libraries and headers for pycairo
32880c4
Group: Development/Libraries
0ca6d49
Requires: %{name} = %{version}-%{release}
0ca6d49
Requires: cairo-devel
0ca6d49
Requires: pkgconfig
0ca6d49
Requires: python-devel
32880c4
32880c4
%description devel
cb768b4
This package contains files required to build wrappers for cairo add-on
cb768b4
libraries so that they interoperate with pycairo.
32880c4
Jonathan Blandford 53c51bc
%prep
0ca6d49
%setup -q -n pycairo-%{version}
Jonathan Blandford 53c51bc
Jonathan Blandford 53c51bc
%build
cb768b4
%configure
0ca6d49
make %{?_smp_mflags}
Jonathan Blandford 53c51bc
Jonathan Blandford 53c51bc
%install
Jonathan Blandford 53c51bc
rm -rf $RPM_BUILD_ROOT
0ca6d49
make DESTDIR=$RPM_BUILD_ROOT install
0ca6d49
find $RPM_BUILD_ROOT -name '*.la' | xargs rm -f
Jonathan Blandford 53c51bc
Jonathan Blandford 53c51bc
%clean
Jonathan Blandford 53c51bc
rm -rf $RPM_BUILD_ROOT
Jonathan Blandford 53c51bc
Jonathan Blandford 53c51bc
%files
Jonathan Blandford 53c51bc
%defattr(-,root,root,-)
a65a734
%doc AUTHORS ChangeLog COPYING* INSTALL NEWS README
a685867
%doc examples doc/FAQ doc/NOTES
cb768b4
%{python_sitearch}/cairo/
Jonathan Blandford 53c51bc
32880c4
%files devel
32880c4
%defattr(-,root,root,-)
0ca6d49
%{_includedir}/pycairo/
cb768b4
%{_libdir}/pkgconfig/pycairo.pc
Jonathan Blandford 53c51bc
Jonathan Blandford 53c51bc
%changelog
a685867
* Wed May 07 2008 Matthew Barnes <mbarnes@redhat.com> - 1.4.12-2
a685867
- Add more documentation files to the package (RH bug #445519).
a685867
a65a734
* Thu Dec 13 2007 Matthew Barnes <mbarnes@redhat.com> - 1.4.12-1.fc8
a65a734
- Update to 1.4.12
a65a734
- Bump cairo requirement to 1.4.12
a65a734
552320f
* Wed Oct 10 2007 Matthew Barnes <mbarnes@redhat.com> - 1.4.0-2.fc7
552320f
- Rebuild
552320f
c943b21
* Thu Mar 15 2007 Matthew Barnes <mbarnes@redhat.com> - 1.4.0-1.fc7
c943b21
- Update to 1.4.0
c943b21
0ca6d49
* Mon Feb 05 2007 Matthew Barnes <mbarnes@redhat.com> - 1.2.6-3.fc7
0ca6d49
- Incorporate suggestions from package review (RH bug #226329).
0ca6d49
a2af4a6
* Thu Dec  7 2006 Jeremy Katz <katzj@redhat.com> - 1.2.6-2
a2af4a6
- rebuild against python 2.5
a2af4a6
cb768b4
* Tue Nov 28 2006 Matthew Barnes <mbarnes@redhat.com> - 1.2.6-1.fc7
cb768b4
- Update to 1.2.6
cb768b4
- Clean up the spec file.
cb768b4
0914dd1
* Sun Oct 15 2006 Matthew Barnes <mbarnes@redhat.com> - 1.2.2-1
0914dd1
- Update to 1.2.2
0914dd1
2434289
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.2.0-1.1
2434289
- rebuild
2434289
19d81cf
* Wed Jul 05 2006 John (J5) Palmieri <johnp@redhat.com> - 1.2.0-1
19d81cf
- Update to upstream 1.2.0
19d81cf
4bd5663
* Mon Jul  3 2006 Jeremy Katz <katzj@redhat.com> - 1.0.2-3
4bd5663
- require new enough cairo (#197457)
4bd5663
2676cc6
* Mon Jun 05 2006 John (J5) Palmieri <johnp@redhat.com> - 1.0.2-2
2676cc6
- add pkgconfig BR
2676cc6
ade89bb
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.0.2-1.2.1
ade89bb
- bump again for double-long bug on ppc(64)
ade89bb
8e50f00
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.0.2-1.2
8e50f00
- rebuilt for new gcc4.1 snapshot and glibc changes
8e50f00
44a91e2
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
44a91e2
- rebuilt
44a91e2
32880c4
* Wed Oct 26 2005 John (J5) Palmieri <johnp@redhat.com> - 1.0.2-1
32880c4
- Updated to latest and push into rawhide
32880c4
Kristian Høgsberg 9532918
* Fri Dec 10 2004 Kristian Høgsberg <krh@redhat.com> - 0.1.3-1
Kristian Høgsberg 9532918
- Add python-devel build requires.
Kristian Høgsberg 9532918
Jonathan Blandford 53c51bc
* Wed Nov 24 2004  <jrb@redhat.com> - 
Jonathan Blandford 53c51bc
- Initial build.
Jonathan Blandford 53c51bc