python3-pygobject-vl.spec 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. %{!?python3_sitearch: %define python3_sitearch %(python3 -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
  2. Name: python3-pygobject
  3. Summary: Python3 bindings for GObject Introspection
  4. Summary(ja): GObject Introspection の Python3 バインディング
  5. Version: 3.10.2
  6. Release: 1%{?_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.10/pygobject-%{version}.tar.xz
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. BuildRequires: glib2-devel >= 2.26.0
  13. BuildRequires: python3-devel >= 3.3
  14. BuildRequires: libffi-devel
  15. BuildRequires: libtool, automake
  16. BuildRequires: gobject-introspection-devel >= 0.9.8
  17. BuildRequires: python3-pycairo-devel >= 1.10.0
  18. Requires: python3 >= 3.3
  19. Obsoletes: %{name}-doc < 3.10.0
  20. Vendor: Project Vine
  21. Distribution: Vine Linux
  22. Packager: Takemikaduchi
  23. %description
  24. pygobject provides a convenient wrapper for the GObject library
  25. for use in Python programs.
  26. %package devel
  27. Summary: Development files for building add-on libraries
  28. Group: Development/Libraries
  29. Requires: %{name} = %{version}-%{release}
  30. Requires: pygobject3-devel
  31. Requires: python3-devel
  32. %description devel
  33. This package contains files required to build wrappers for
  34. pygobject-based libraries such as pygtk2.
  35. %prep
  36. %setup -q -n pygobject-%{version}
  37. %build
  38. # --disable-docs doesn't work; it builds the docs anyway.
  39. %configure \
  40. --enable-silent-rules \
  41. --disable-static \
  42. --enable-thread
  43. export tagname=CC
  44. make LIBTOOL=/usr/bin/libtool
  45. %install
  46. rm -rf $RPM_BUILD_ROOT
  47. export tagname=CC
  48. make LIBTOOL=/usr/bin/libtool DESTDIR=$RPM_BUILD_ROOT install
  49. find $RPM_BUILD_ROOT -name '*.la' -or -name '*.a' | xargs rm -f
  50. rm -f examples/Makefile*
  51. # conflict with pygobject
  52. rm -rf $RPM_BUILD_ROOT%{python_sitearch}/gtk-2.0
  53. rm -rf $RPM_BUILD_ROOT%{_datadir}/pygobject
  54. # conflict with pygobject3
  55. rm -f $RPM_BUILD_ROOT%{_includedir}/pygobject-3.0/pygobject.h
  56. rm -f $RPM_BUILD_ROOT%{_libdir}/pkgconfig/pygobject-3.0.pc
  57. %clean
  58. rm -fr $RPM_BUILD_ROOT
  59. %files
  60. %defattr(644, root, root, 755)
  61. %doc AUTHORS NEWS README ChangeLog
  62. %{_libdir}/libpyglib-gi-2.0-python3.so.*
  63. %{python3_sitearch}/pygtkcompat
  64. %{python3_sitearch}/*.egg-info
  65. %{python3_sitearch}/gi
  66. %files devel
  67. %defattr(644, root, root, 755)
  68. %{_libdir}/libpyglib-gi-2.0-python3.so
  69. %changelog
  70. * Sun Nov 24 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.10.2-1
  71. - new upstream release
  72. * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.10.1-1
  73. - initial build