cluttermm-vl.spec 3.1 KB

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