pygtkglext-vl.spec 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
  2. %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
  3. Name: pygtkglext
  4. Version: 1.1.0
  5. Release: 3%{_dist_release}
  6. Summary: Python bindings for GtkGLExt
  7. License: LGPLv2+
  8. Group: System Environment/Libraries
  9. URL: http://www.k-3d.org/gtkglext/Main_Page
  10. Source: http://downloads.sourceforge.net/gtkglext/%{name}-%{version}.tar.bz2
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  12. BuildRequires: gtkglext-devel pygtk2-devel python-devel
  13. Requires: pygtk2 PyOpenGL
  14. %description
  15. Python bindings for GtkGTLExt
  16. %package devel
  17. Summary: Development files for %{name}
  18. Group: Development/Libraries
  19. Requires: %{name} = %{version}-%{release}
  20. Requires: pkgconfig pygtk2-devel
  21. %description devel
  22. The %{name}-devel package contains libraries and header files for
  23. developing applications that use %{name}.
  24. %prep
  25. %setup -q
  26. #iconv -f EUC-JP -t UTF8 AUTHORS > tmp
  27. #mv tmp AUTHORS
  28. #iconv -f EUC-JP -t UTF8 README > tmp
  29. #mv tmp README
  30. %build
  31. %configure
  32. make %{?_smp_mflags}
  33. %install
  34. rm -rf $RPM_BUILD_ROOT
  35. make install DESTDIR=$RPM_BUILD_ROOT INSTALL="%{__install} -p"
  36. if [ %{python_sitelib} != %{python_sitearch} ]; then
  37. mv $RPM_BUILD_ROOT%{python_sitelib}/gtk-2.0/gtk/gdkgl/* \
  38. $RPM_BUILD_ROOT%{python_sitearch}/gtk-2.0/gtk/gdkgl
  39. mv $RPM_BUILD_ROOT%{python_sitelib}/gtk-2.0/gtk/gtkgl/* \
  40. $RPM_BUILD_ROOT%{python_sitearch}/gtk-2.0/gtk/gtkgl
  41. fi
  42. rm $RPM_BUILD_ROOT%{python_sitearch}/gtk-2.0/gtk/gdkgl/_gdkgl.la
  43. rm $RPM_BUILD_ROOT%{python_sitearch}/gtk-2.0/gtk/gtkgl/_gtkgl.la
  44. # this can be executed to run some basic tests (it has a main and shebang)
  45. chmod +x $RPM_BUILD_ROOT%{python_sitearch}/gtk-2.0/gtk/gtkgl/apputils.py
  46. # for %%doc
  47. rm examples/Makefile*
  48. %clean
  49. rm -rf $RPM_BUILD_ROOT
  50. %files
  51. %defattr(-,root,root,-)
  52. %doc AUTHORS ChangeLog COPYING COPYING.LIB README examples
  53. %{python_sitearch}/gtk-2.0/gtk/gdkgl
  54. %{python_sitearch}/gtk-2.0/gtk/gtkgl
  55. %files devel
  56. %defattr(-,root,root,-)
  57. %{_libdir}/pkgconfig/*.pc
  58. %{_datadir}/pygtk/2.0/defs/*
  59. %changelog
  60. * Wed Feb 03 2010 Shu KONNO <owa@bg.wakwak.com> 1.1.0-3
  61. - rebuilt with python-2.6.4
  62. * Wed Jul 23 2008 Shu KONNO <owa@bg.wakwak.com> - 1.1.0-2vl5
  63. - rebuilt with python-2.5.2
  64. * Mon Apr 21 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.1.0-1vl5
  65. - Initial build for Vine Linux
  66. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.1.0-4
  67. - Autorebuild for GCC 4.3
  68. * Wed Aug 15 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.1.0-3
  69. - Update License tag for new Licensing Guidelines compliance
  70. * Thu Mar 29 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.1.0-2
  71. - Various specfile improvements (bz 234122)
  72. * Sat Mar 24 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.1.0-1
  73. - Initial Fedora Extras package