pygobject3-vl.spec 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
  2. Name: pygobject3
  3. Summary: Python bindings for GObject Introspection
  4. Summary(ja): GObject Introspection の Python バインディング
  5. Version: 3.0.4
  6. Release: 2%{?_dist_release}
  7. Group: Development/Languages
  8. License: LGPL
  9. URL: http://www.pygtk.org/
  10. Source: http://ftp.gnome.org/pub/GNOME/sources/pygobject/3.0/pygobject-%{version}.tar.xz
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildRequires: glib2-devel >= 2.26.0
  13. BuildRequires: python-devel >= 2.6
  14. BuildRequires: libffi-devel
  15. BuildRequires: libtool, automake
  16. BuildRequires: gobject-introspection-devel >= 0.9.8
  17. BuildRequires: pycairo-devel >= 1.8.10
  18. Vendor: Project Vine
  19. Distribution: Vine Linux
  20. Packager: Takemikaduchi
  21. %description
  22. pygobject provides a convenient wrapper for the GObject library
  23. for use in Python programs.
  24. %package devel
  25. Summary: Development files for building add-on libraries
  26. Group: Development/Libraries
  27. Requires: %{name} = %{version}-%{release}
  28. #Requires: pygobject-doc = %{version}-%{release}
  29. Requires: glib2-devel
  30. Requires: libffi-devel
  31. Requires: pkgconfig
  32. %description devel
  33. This package contains files required to build wrappers for
  34. pygobject-based libraries such as pygtk2.
  35. %package doc
  36. Summary: Documentation files for pygobject
  37. Group: Documentation
  38. BuildArch: noarch
  39. %description doc
  40. This package contains documentation files for pygobject.
  41. %prep
  42. %setup -q -n pygobject-%{version}
  43. %build
  44. # --disable-docs doesn't work; it builds the docs anyway.
  45. %configure \
  46. --enable-silent-rules \
  47. --disable-static \
  48. --enable-thread
  49. export tagname=CC
  50. make LIBTOOL=/usr/bin/libtool
  51. %install
  52. rm -rf $RPM_BUILD_ROOT
  53. export tagname=CC
  54. make LIBTOOL=/usr/bin/libtool DESTDIR=$RPM_BUILD_ROOT install
  55. find $RPM_BUILD_ROOT -name '*.la' -or -name '*.a' | xargs rm -f
  56. rm -f examples/Makefile*
  57. # conflict with pygobject
  58. rm -rf $RPM_BUILD_ROOT%{python_sitearch}/gtk-2.0
  59. rm -rf $RPM_BUILD_ROOT%{_datadir}/pygobject
  60. %clean
  61. rm -fr $RPM_BUILD_ROOT
  62. %files
  63. %defattr(644, root, root, 755)
  64. %doc AUTHORS NEWS README ChangeLog
  65. %doc examples
  66. %{_libdir}/libpyglib-gi-2.0-python.so.*
  67. %{python_sitearch}/gi
  68. %files devel
  69. %defattr(644, root, root, 755)
  70. %{_includedir}/pygobject-3.0/pygobject.h
  71. %{_libdir}/libpyglib-gi-2.0-python.so
  72. %{_libdir}/pkgconfig/pygobject-3.0.pc
  73. %files doc
  74. %defattr(644, root, root, 755)
  75. %changelog
  76. * Wed Feb 15 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.4-2
  77. - rebuild with python-2.7.2
  78. * Wed Feb 15 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.4-1
  79. - new upstream release
  80. * Thu Nov 03 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.2-1
  81. - new upstream release
  82. * Thu Oct 06 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.1-1
  83. - new upstream release
  84. * Fri Sep 23 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.0.0-1
  85. - new upstream release
  86. * Sat Sep 03 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.90.3-1
  87. - initial build for Vine Linux