clutter-gtkmm-vl.spec 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. %define ver 1.0
  2. Summary: A C++ wrapper for clutter-gtkmm
  3. Summary(ja): clutter-gtkmm の C++ ラッパー
  4. Name: clutter-gtkmm
  5. Version: 0.9.6
  6. Release: 2%{?_dist_release}
  7. License: LGPL
  8. Group: System Environment/Libraries
  9. Source: ftp://ftp.gnome.org/pub/GNOME/sources/clutter-gtkmm/0.9/%{name}-%{version}.tar.bz2
  10. Buildroot: %{_tmppath}/%{name}-%{version}-root
  11. Requires: clutter-gtk >= 0.10.4
  12. Requires: cluttermm >= 0.9.6
  13. Requires: gtkmm2 >= 2.18.0
  14. BuildRequires: clutter-gtk-devel >= 0.10.4
  15. BuildRequires: cluttermm-devel >= 0.9.6
  16. BuildRequires: gtkmm2-devel >= 2.18.0
  17. Vendor: Project Vine
  18. Distribution: Vine Linux
  19. Packager: Takemikaduchi
  20. %description
  21. Clutter-gtkmm is a C++ wrapper for clutter-gtkmm.
  22. %package devel
  23. Summary: Development tools for clutter-gtkmm applications.
  24. Summary(ja): clutter-gtkmm アプリケーションの開発用ファイル
  25. Group: Development/Libraries
  26. Requires: %{name} = %{version}-%{release}
  27. Requires: clutter-gtk-devel >= 0.10.4
  28. Requires: cluttermm-devel >= 0.9.6
  29. Requires: gtkmm2-devel >= 2.18.0
  30. %description devel
  31. Header files and libraries for building a extension library for the clutter-gtkmm.
  32. %prep
  33. %setup -q
  34. %build
  35. %configure --disable-static
  36. make %{?_smp_mflags}
  37. %install
  38. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  39. make install DESTDIR=$RPM_BUILD_ROOT
  40. find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
  41. find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
  42. # Fix documentation installation, put everything under gtk-doc
  43. mkdir -p $RPM_BUILD_ROOT%{_datadir}/gtk-doc/html/%{name}-%{ver}
  44. mv ${RPM_BUILD_ROOT}%{_docdir}/%{name}-%{ver}/* $RPM_BUILD_ROOT%{_datadir}/gtk-doc/html/%{name}-%{ver}/
  45. # devhelp path fix
  46. sed -i 's:doc/%{name}-%{ver}:gtk-doc/html/%{name}-%{ver}:g' $RPM_BUILD_ROOT%{_datadir}/devhelp/books/%{name}-%{ver}/%{name}-%{ver}.devhelp2
  47. # remove demos, examples
  48. rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}-%{ver}/demo
  49. rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}-%{ver}/examples
  50. %post -p /sbin/ldconfig
  51. %postun -p /sbin/ldconfig
  52. %clean
  53. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
  54. %files
  55. %defattr(-, root, root)
  56. %doc AUTHORS COPYING ChangeLog NEWS README
  57. %{_libdir}/lib*.so.*
  58. %files devel
  59. %defattr(-, root, root)
  60. %{_includedir}/*
  61. %{_libdir}/*.so
  62. %{_libdir}/%{name}-*
  63. %{_libdir}/pkgconfig/*.pc
  64. %{_datadir}/gtk-doc/html/*
  65. %{_datadir}/devhelp/books/*
  66. %changelog
  67. * Sat Sep 25 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.6-2
  68. - rebuild with rpm-4.8.1 for pkg-config file
  69. * Thu Jul 29 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.6-1
  70. - initial build for Vine Linux