gobject-introspection-vl.spec 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  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: gobject-introspection
  4. Version: 0.6.14
  5. Release: 3%{?_dist_release}
  6. Summary: Introspection system for GObject-based libraries
  7. Group: Development/Libraries
  8. License: GPLv2+, LGPLv2+, MIT
  9. URL: http://live.gnome.org/GObjectIntrospection
  10. Source0: ftp://ftp.gnome.org/pub/gnome/sources/%{name}/0.6/%{name}-%{version}.tar.bz2
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  12. BuildRequires: glib2-devel
  13. BuildRequires: python-devel >= 2.5
  14. BuildRequires: gettext
  15. BuildRequires: intltool
  16. BuildRequires: gtk-doc
  17. BuildRequires: flex
  18. BuildRequires: bison
  19. BuildRequires: libffi-devel
  20. BuildRequires: chrpath
  21. BuildRequires: mesa-libGL-devel
  22. BuildRequires: cairo-devel
  23. BuildRequires: libxml2-devel
  24. BuildRequires: libXfixes-devel
  25. BuildRequires: libX11-devel
  26. BuildRequires: fontconfig-devel
  27. BuildRequires: libXft-devel
  28. BuildRequires: freetype2-devel
  29. %description
  30. GObject Introspection can scan C header and source files in order to
  31. generate introspection "typelib" files. It also provides an API to examine
  32. typelib files, useful for creating language bindings among other
  33. things.
  34. %package devel
  35. Summary: Libraries and headers for gobject-introspection
  36. Summary(ja): %{name} の開発用ファイル
  37. Group: Development/Libraries
  38. Requires: %name = %{version}-%{release}
  39. Requires: glib2-devel
  40. Requires: libffi-devel
  41. Requires: pkgconfig
  42. %description devel
  43. Libraries and headers for gobject-introspection
  44. %prep
  45. %setup -q
  46. %build
  47. %configure
  48. make V=1
  49. %install
  50. rm -rf $RPM_BUILD_ROOT
  51. make install DESTDIR=$RPM_BUILD_ROOT
  52. # Die libtool, die.
  53. find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
  54. find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
  55. chrpath --delete $RPM_BUILD_ROOT%{_bindir}/g-ir-{compiler,generate}
  56. # Mistake in upstream automake
  57. rm -f $RPM_BUILD_ROOT/%{_bindir}/barapp
  58. # Move the python modules to the correct location
  59. mkdir -p $RPM_BUILD_ROOT/%{python_sitearch}
  60. mv $RPM_BUILD_ROOT/%{_libdir}/gobject-introspection/giscanner $RPM_BUILD_ROOT/%{python_sitearch}/
  61. rm -f %{_datadir}/gobject-introspection-1.0/Makefile.introspection
  62. %clean
  63. rm -rf $RPM_BUILD_ROOT
  64. %post -p /sbin/ldconfig
  65. %postun -p /sbin/ldconfig
  66. %files
  67. %defattr(-,root,root,-)
  68. %doc COPYING
  69. %{_libdir}/lib*.so.*
  70. %dir %{_libdir}/girepository-1.0
  71. %{_libdir}/girepository-1.0/*.typelib
  72. %files devel
  73. %defattr(-,root,root)
  74. %{_libdir}/lib*.so
  75. %{_libdir}/pkgconfig/*
  76. %{_includedir}/*
  77. %{_bindir}/g-ir-*
  78. %{_datadir}/gir-1.0
  79. %{_datadir}/aclocal/introspection.m4
  80. %{_datadir}/gobject-introspection-1.0/Makefile.introspection
  81. %{python_sitearch}/giscanner
  82. %{_mandir}/man1/*.gz
  83. %changelog
  84. * Sat Sep 25 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6.14-3
  85. - delete Patch0
  86. * Tue Sep 21 2010 IWAI, Masaharu <iwai@alib.jp> 0.6.14-2
  87. - build with rpm-4.8.1-1 for pkg-config file
  88. * Sun Jul 25 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6.14-1
  89. - new upstream release
  90. * Thu Apr 29 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6.10-1
  91. - new upstream release
  92. * Wed Mar 31 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6.9-1
  93. - new upstream release
  94. - add Requires: libffi-devel (devel package)
  95. * Sun Mar 14 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6.8-1
  96. - new upstream release
  97. * Sun Feb 28 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.6.7-1
  98. - new upstream release
  99. - add Patch0 for ppc
  100. * Wed Feb 03 2010 Shu KONNO <owa@bg.wakwak.com> 0.6.5-2
  101. - rebuilt with python-2.6.4
  102. * Sat Sep 26 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.6.5-1
  103. - initial build for Vine Linux
  104. * Fri Sep 11 2009 Colin Walters <walters@verbum.org> - 0.6.5-1
  105. - New upstream
  106. - Drop libtool dep
  107. * Fri Aug 28 2009 Colin Walters <walters@verbum.org> - 0.6.4-2
  108. - Add dep on libtool temporarily
  109. * Mon Aug 26 2009 Colin Walters <walters@verbum.org> - 0.6.4-1
  110. - New upstream 0.6.4
  111. - Drop upstreamed build fix patch
  112. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.3-5
  113. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  114. * Mon Jul 6 2009 Peter Robinson <pbrobinson@gmail.com> - 0.6.3-4
  115. - Add upstream patch to fix a build crash
  116. * Thu Jul 2 2009 Peter Robinson <pbrobinson@gmail.com> - 0.6.3-3
  117. - Add -ggdb temporarily so it compiles on ppc64
  118. * Thu Jul 2 2009 Peter Robinson <pbrobinson@gmail.com> - 0.6.3-2
  119. - Add the new source file
  120. * Thu Jul 2 2009 Peter Robinson <pbrobinson@gmail.com> - 0.6.3-1
  121. - Update to 0.6.3
  122. * Mon Jun 1 2009 Dan Williams <dcbw@redhat.com> - 0.6.2-1
  123. - Update to 0.6.2
  124. * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-2
  125. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  126. * Thu Dec 11 2008 Colin Walters <walters@verbum.org> - 0.6.1-1
  127. - Update to 0.6.1
  128. * Fri Oct 31 2008 Colin Walters <walters@verbum.org> - 0.6.0-1
  129. - Create spec goo