clutter-gtkmm-vl.spec 2.8 KB

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