python3-pycairo-vl.spec 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. %{!?python3_sitearch: %define python3_sitearch %(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
  2. Name: python3-pycairo
  3. Summary: Python3 bindings for the cairo library
  4. Summary(ja): cairo ライブラリの Python3 バインディング
  5. Version: 1.10.0
  6. Release: 1%{?_dist_release}
  7. Group: Development/Languages
  8. License: LGPLv2
  9. URL: http://cairographics.org/pycairo
  10. Source: http://cairographics.org/releases/pycairo-%{version}.tar.bz2
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildRequires: cairo-devel >= 1.10.0
  13. BuildRequires: python3-devel >= 3.0
  14. BuildRequires: pkgconfig
  15. Requires: python3 >= 3.0
  16. Requires: cairo >= 1.10.0
  17. %description
  18. Python3 bindings for the cairo library.
  19. %package devel
  20. Summary: Libraries and headers for pycairo
  21. Group: Development/Libraries
  22. Requires: %{name} = %{version}-%{release}
  23. Requires: cairo-devel >= 1.10.0
  24. Requires: python3-devel >= 3.0
  25. %description devel
  26. This package contains files required to build wrappers for cairo add-on
  27. libraries so that they interoperate with pycairo3.
  28. %prep
  29. %setup -q -n pycairo-%{version}
  30. %build
  31. export PYTHON=python3
  32. python3 ./waf configure \
  33. --prefix=%{_prefix} \
  34. --libdir=%{_libdir}
  35. python3 ./waf build
  36. %install
  37. rm -rf $RPM_BUILD_ROOT
  38. DESTDIR=$RPM_BUILD_ROOT python3 ./waf install
  39. find $RPM_BUILD_ROOT -name '*.la' | xargs rm -f
  40. %clean
  41. rm -rf $RPM_BUILD_ROOT
  42. %files
  43. %defattr(-,root,root,-)
  44. %doc AUTHORS COPYING* INSTALL NEWS README
  45. %{python3_sitearch}/cairo/
  46. %files devel
  47. %defattr(-,root,root,-)
  48. %{_includedir}/pycairo/py3cairo.h
  49. %{_libdir}/pkgconfig/py3cairo.pc
  50. %changelog
  51. * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.10.0-1
  52. - initial build