libvtemm-vl.spec 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. %define ver 1.2
  2. Summary: A C++ wrapper for libvte
  3. Summary(ja): libvte の C++ ラッパー
  4. Name: libvtemm
  5. Version: 0.24.0
  6. Release: 2%{?_dist_release}
  7. License: LGPL
  8. Group: System Environment/Libraries
  9. Source: ftp://ftp.gnome.org/pub/GNOME/sources/libvtemm/0.24/%{name}-%{version}.tar.bz2
  10. Buildroot: %{_tmppath}/%{name}-%{version}-root
  11. Requires: vte >= 0.24.0
  12. Requires: glibmm >= 2.22.0
  13. Requires: pangomm >= 2.24.0
  14. Requires: gtkmm2 >= 2.20.0
  15. BuildRequires: vte-devel >= 0.24.0
  16. BuildRequires: glibmm-devel >= 2.22.0
  17. BuildRequires: pangomm-devel >= 2.24.0
  18. BuildRequires: gtkmm2-devel >= 2.20.0
  19. Vendor: Project Vine
  20. Distribution: Vine Linux
  21. Packager: Takemikaduchi
  22. %description
  23. Libvtemm is a C++ wrapper for libvte.
  24. %package devel
  25. Summary: Development tools for libvtemm applications.
  26. Summary(ja): libvtemm アプリケーションの開発用ファイル
  27. Group: Development/Libraries
  28. Requires: %{name} = %{version}-%{release}
  29. Requires: vte-devel >= 0.24.0
  30. Requires: glibmm-devel >= 2.22.0
  31. Requires: pangomm-devel >= 2.24.0
  32. Requires: gtkmm2-devel >= 2.20.0
  33. %description devel
  34. Header files and libraries for building a extension library for the libvtemm.
  35. %prep
  36. %setup -q
  37. %build
  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}-%{ver}/*
  66. %{_libdir}/pkgconfig/*.pc
  67. %{_datadir}/gtk-doc/html/*
  68. %{_datadir}/devhelp/books/*
  69. %changelog
  70. * Thu Sep 23 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.24.0-2
  71. - rebuild with rpm-4.8.1 for pkg-config file
  72. * Thu Jul 29 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.24.0-1
  73. - initial build for Vine Linux