cluttermm-vl.spec 2.5 KB

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