pygtksourceview-vl.spec 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
  2. %define pygtk_version 2.14.1
  3. %define pygobject_version 2.16.1
  4. %define gtksourceview_version 2.10.0
  5. Name: pygtksourceview
  6. Version: 2.10.1
  7. Release: 4%{?_dist_release}
  8. Summary: Python bindings for gtksourceview
  9. Group: Development/Libraries
  10. License: LGPL
  11. URL: http://download.gnome.org/sources/pygtksourceview/
  12. Source0: http://download.gnome.org/sources/pygtksourceview/2.6/pygtksourceview-%{version}.tar.bz2
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. BuildRequires: gtksourceview2-devel >= %{gtksourceview_version}
  15. BuildRequires: pygobject-devel >= %{pygobject_version}
  16. BuildRequires: pygobject-doc >= %{pygobject_version}
  17. BuildRequires: pygtk2-devel >= %{pygtk_version}
  18. BuildRequires: python-devel
  19. BuildRequires: gtk-doc >= 1.14
  20. Vendor: Project Vine
  21. Distribution: Vine Linux
  22. %description
  23. The %{name} package contains Python bindings for the gtksourceview
  24. library.
  25. %package devel
  26. Summary: Development files for using %{name} in Python programs
  27. Group: Development/Libraries
  28. Requires: %{name} = %{version}-%{release}
  29. Requires: %{name}-doc = %{version}-%{release}
  30. Requires: gtksourceview2-devel >= %{gtksourceview_version}
  31. Requires: pkgconfig
  32. Requires: pygtk2-devel >= %{pygtk_version}
  33. %description devel
  34. This package contains files required to build Python programs that
  35. use the %{name} bindings.
  36. %package doc
  37. Summary: Documentation files for %{name}
  38. Group: Applications/Documentation
  39. %description doc
  40. This package contains documentation files for %{name}.
  41. %prep
  42. %setup -q
  43. %build
  44. %configure
  45. ## added adhoc patch
  46. ##make PYTHON='LD_PRELOAD=%{_libdir}/python%{pyver}/lib-dynload/timemodule.so %{_bindir}/python'
  47. make
  48. %install
  49. rm -rf $RPM_BUILD_ROOT
  50. make install DESTDIR=$RPM_BUILD_ROOT
  51. rm -f $RPM_BUILD_ROOT%{python_sitearch}/gtksourceview2.la
  52. %clean
  53. rm -rf $RPM_BUILD_ROOT
  54. %files
  55. %defattr(-,root,root,-)
  56. %doc COPYING AUTHORS README NEWS
  57. %{python_sitearch}/*
  58. %files devel
  59. %defattr(-,root,root,-)
  60. %{_datadir}/pygtk/2.0/defs/gtksourceview2.defs
  61. %{_libdir}/pkgconfig/pygtksourceview-2.0.pc
  62. %files doc
  63. %defattr(-,root,root,-)
  64. %{_datadir}/gtk-doc/html/pygtksourceview2
  65. %changelog
  66. * Sun Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.1-4
  67. - rebuild with VineSeed environment
  68. * Sat Feb 18 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.1-3
  69. - rebuild with python-2.7.2
  70. * Thu Sep 30 2010 Shu KONNO <owa@bg.wakwak.com> 2.10.1-2
  71. - rebuilt with rpm-4.8.1 for pkg-config
  72. * Sat May 01 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.1-1
  73. - new upstream release
  74. * Wed Mar 31 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.0-1
  75. - new upstream release
  76. - add BuildRequires: gtk-doc >= 1.14
  77. * Sat Feb 06 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.8.1-4
  78. - added BR: pygobject-doc
  79. * Thu Feb 04 2010 Shu KONNO <owa@bg.wakwak.com> 2.8.1-3
  80. - rebuilt with python-2.6.4-3
  81. - dropt adhoc patch to make
  82. * Wed Feb 03 2010 Shu KONNO <owa@bg.wakwak.com> 2.8.1-2
  83. - rebuilt with python-2.6.4
  84. - added adhoc patch to fix python bug (import datetime module error)
  85. * Sun Nov 1 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.8.1-1
  86. - new upstream release
  87. * Sat Apr 25 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.6.1-1
  88. - new upstream release
  89. * Sun Nov 23 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.4.0-1
  90. - new upstream release
  91. - changed Group to Development/Libraries
  92. * Mon Jul 21 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.2.0-2
  93. - rebuilt with python-2.5.2
  94. * Sat Apr 12 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.2.0-1vl5
  95. - Initial build for Vine Linux
  96. * Mon Mar 10 2008 Matthias Clasen <mclasen@redhat.com> - 2.2.0-1
  97. - Update to 2.2.0
  98. * Wed Feb 6 2008 Matthias Clasen <mclasen@redhat.com> - 2.1.1-1
  99. - Update to 2.1.1
  100. * Tue Jan 22 2008 Matthew Barnes <mbarnes@redhat.com> - 2.1.0-2.fc9
  101. - Fix a typo.
  102. * Mon Jan 21 2008 Matthew Barnes <mbarnes@redhat.com> - 2.1.0-1.fc9
  103. - Update to 2.1.0
  104. * Fri Oct 26 2007 Matthew Barnes <mbarnes@redhat.com> - 2.0.0-2.fc9
  105. - Add subpackage pygtksourceview-doc (bug #342991).
  106. * Mon Sep 17 2007 Matthias Clasen <mclasen@redhat.com> - 2.0.0-1
  107. - Update to 2.0.0
  108. * Tue Sep 11 2007 Matthew Barnes <mbarnes@redhat.com> - 1.90.5-1
  109. - Update to 1.90.5
  110. * Tue Sep 4 2007 Matthias Clasen <mclasen@redhat.com> - 1.90.4-1
  111. - Update to 1.90.4
  112. * Wed Aug 1 2007 Matthias Clasen <mclasen@redhat.com> - 1.90.3-1
  113. - Update to 1.90.3
  114. * Tue Jul 10 2007 Matthias Clasen <mclasen@redhat.com> - 1.90.2-2
  115. - Rebuild against the gtksourceview2 package
  116. * Fri Jul 06 2007 Matthew Barnes <mbarnes@redhat.com> - 1.90.2-1.fc8
  117. - Update to 1.90.2
  118. - Bump gtksourceview requirement to 1.90.2.
  119. * Tue Jul 03 2007 Florian La Roche <laroche@redhat.com> 1.90.1-3
  120. - fix macro typo
  121. * Tue Jun 26 2007 Matthias Clasen <mclasen@redhat.com> 1.90.1-2
  122. - Incorporate package review feedback
  123. * Mon Jun 25 2007 Matthias Clasen <mclasen@redhat.com> 1.90.1-1
  124. - Initial package