pygtkglext-vl.spec 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  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: 4%{_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. * Sat Oct 02 2010 Shu KONNO <owa@bg.wakwak.com> 1.1.0-4
  61. - rebuilt with rpm-4.8.1 for pkg-config
  62. * Wed Feb 03 2010 Shu KONNO <owa@bg.wakwak.com> 1.1.0-3
  63. - rebuilt with python-2.6.4
  64. * Wed Jul 23 2008 Shu KONNO <owa@bg.wakwak.com> - 1.1.0-2vl5
  65. - rebuilt with python-2.5.2
  66. * Mon Apr 21 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.1.0-1vl5
  67. - Initial build for Vine Linux
  68. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.1.0-4
  69. - Autorebuild for GCC 4.3
  70. * Wed Aug 15 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.1.0-3
  71. - Update License tag for new Licensing Guidelines compliance
  72. * Thu Mar 29 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.1.0-2
  73. - Various specfile improvements (bz 234122)
  74. * Sat Mar 24 2007 Hans de Goede <j.w.r.degoede@hhs.nl> 1.1.0-1
  75. - Initial Fedora Extras package