cluttermm-vl.spec 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. %define ver 1.0
  2. Summary: A C++ wrapper for Clutter
  3. Summary(ja): Clutter の C++ ラッパー
  4. Name: cluttermm
  5. Version: 1.3.3
  6. Release: 1%{?_dist_release}
  7. License: LGPL
  8. Group: System Environment/Libraries
  9. Source: ftp://ftp.gnome.org/pub/GNOME/sources/cluttermm/1.3/%{name}-%{version}.tar.xz
  10. Buildroot: %{_tmppath}/%{name}-%{version}-root
  11. Requires: clutter >= 1.3.8
  12. Requires: atkmm >= 2.22.2
  13. Requires: pangomm >= 2.27.1
  14. BuildRequires: clutter-devel >= 1.3.8
  15. BuildRequires: atkmm-devel >= 2.22.2
  16. BuildRequires: pangomm-devel >= 2.27.1
  17. BuildRequires: mm-common
  18. Vendor: Project Vine
  19. Distribution: Vine Linux
  20. Packager: Takemikaduchi
  21. %description
  22. Cluttermm is a C++ wrapper for Clutter. See Clutter::Stage and Clutter::Actor,
  23. for instance, and see the Programming with cluttermm tutorial.
  24. %package devel
  25. Summary: Development tools for cluttermm applications.
  26. Summary(ja): cluttermm アプリケーションの開発用ファイル
  27. Group: Development/Libraries
  28. Requires: %{name} = %{version}-%{release}
  29. Requires: clutter-devel >= 1.2.0
  30. %description devel
  31. Header files and libraries for building a extension library for the cluttermm.
  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. %{_datadir}/%{name}-%{ver}/proc/m4/*.m4
  67. %changelog
  68. * Sun Oct 09 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.3.3-1
  69. - new upstream release
  70. - add BuildRequires: atkmm-devel, mm-common
  71. * Sat Sep 25 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.6-2
  72. - rebuild with rpm-4.8.1 for pkg-config file
  73. * Thu Jul 29 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9.6-1
  74. - initial build for Vine Linux