gtksourceviewmm3-vl.spec 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. %define ver 3.0
  2. Summary: A C++ wrapper for gtksourceview3
  3. Summary(ja): gtksourceview の C++ ラッパー
  4. Name: gtksourceviewmm3
  5. Version: 3.2.0
  6. Release: 1%{?_dist_release}
  7. License: LGPL
  8. Group: System Environment/Libraries
  9. Source: ftp://ftp.gnome.org/pub/GNOME/sources/gtksourceviewmm/3.2/gtksourceviewmm-%{version}.tar.xz
  10. Buildroot: %{_tmppath}/%{name}-%{version}-root
  11. Requires: gtksourceview3 >= 3.2.0
  12. Requires: gtkmm3 >= 3.2.0
  13. BuildRequires: gtksourceview3-devel >= 3.2.0
  14. BuildRequires: gtkmm3-devel >= 3.2.0
  15. Vendor: Project Vine
  16. Distribution: Vine Linux
  17. Packager: Takemikaduchi
  18. %description
  19. Gtksourceviewmm is a C++ wrapper for gtksourceview3.
  20. %package devel
  21. Summary: Development tools for gtksourceviewmm3 applications.
  22. Summary(ja): gtksourceviewmm3 アプリケーションの開発用ファイル
  23. Group: Development/Libraries
  24. Requires: %{name} = %{version}-%{release}
  25. Requires: gtksourceview3-devel >= 3.2.0
  26. Requires: gtkmm3-devel >= 3.2.0
  27. %description devel
  28. Header files and libraries for building a extension library for the gtksourceviewmm3.
  29. %prep
  30. %setup -q -n gtksourceviewmm-%{version}
  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/gtksourceviewmm-%{ver}
  41. mv ${RPM_BUILD_ROOT}%{_docdir}/gtksourceviewmm-%{ver}/* $RPM_BUILD_ROOT%{_datadir}/gtk-doc/html/gtksourceviewmm-%{ver}/
  42. # devhelp path fix
  43. sed -i 's:doc/gtksourceviewmm-%{ver}:gtk-doc/html/gtksourceviewmm-%{ver}:g' $RPM_BUILD_ROOT%{_datadir}/devhelp/books/gtksourceviewmm-%{ver}/gtksourceviewmm-%{ver}.devhelp2
  44. # remove demos, examples
  45. rm -rf $RPM_BUILD_ROOT%{_datadir}/gtksourceviewmm-%{ver}/demo
  46. rm -rf $RPM_BUILD_ROOT%{_datadir}/gtksourceviewmm-%{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}/gtksourceviewmm-*
  60. %{_libdir}/pkgconfig/*.pc
  61. %{_datadir}/gtk-doc/html/*
  62. %{_datadir}/devhelp/books/*
  63. %changelog
  64. * Tue Jun 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.2.0-1
  65. - initial build