python3-pygobject-vl.spec 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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.12.1
  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.12/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}-devel < 3.12.0
  20. Obsoletes: %{name}-doc < 3.10.0
  21. Vendor: Project Vine
  22. Distribution: Vine Linux
  23. Packager: Takemikaduchi
  24. %description
  25. pygobject provides a convenient wrapper for the GObject library
  26. for use in Python programs.
  27. %prep
  28. %setup -q -n pygobject-%{version}
  29. %build
  30. # --disable-docs doesn't work; it builds the docs anyway.
  31. %configure \
  32. --enable-silent-rules \
  33. --disable-static \
  34. --enable-thread
  35. export tagname=CC
  36. make LIBTOOL=/usr/bin/libtool
  37. %install
  38. rm -rf $RPM_BUILD_ROOT
  39. export tagname=CC
  40. make LIBTOOL=/usr/bin/libtool DESTDIR=$RPM_BUILD_ROOT install
  41. find $RPM_BUILD_ROOT -name '*.la' -or -name '*.a' | xargs rm -f
  42. rm -f examples/Makefile*
  43. # conflict with pygobject
  44. rm -rf $RPM_BUILD_ROOT%{python_sitearch}/gtk-2.0
  45. rm -rf $RPM_BUILD_ROOT%{_datadir}/pygobject
  46. # conflict with pygobject3
  47. rm -f $RPM_BUILD_ROOT%{_includedir}/pygobject-3.0/pygobject.h
  48. rm -f $RPM_BUILD_ROOT%{_libdir}/pkgconfig/pygobject-3.0.pc
  49. %clean
  50. rm -fr $RPM_BUILD_ROOT
  51. %files
  52. %defattr(644, root, root, 755)
  53. %doc AUTHORS NEWS README ChangeLog
  54. %{python3_sitearch}/pygtkcompat
  55. %{python3_sitearch}/*.egg-info
  56. %{python3_sitearch}/gi
  57. %changelog
  58. * Sat Apr 19 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.12.1-1
  59. - new upstream release
  60. * Sat Mar 29 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.12.0-1
  61. - new upstream release
  62. - remove %%{name}-devel subpackage
  63. * Sun Nov 24 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.10.2-1
  64. - new upstream release
  65. * Sat Oct 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.10.1-1
  66. - initial build