gtksourceviewmm-vl.spec 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. %define ver 2.0
  2. Summary: A C++ wrapper for gtksourceview
  3. Summary(ja): gtksourceview の C++ ラッパー
  4. Name: gtksourceviewmm
  5. Version: 2.10.1
  6. Release: 2%{?_dist_release}
  7. License: LGPL
  8. Group: System Environment/Libraries
  9. Source: ftp://ftp.gnome.org/pub/GNOME/sources/gtksourceviewmm/2.10/%{name}-%{version}.tar.bz2
  10. Buildroot: %{_tmppath}/%{name}-%{version}-root
  11. Requires: gtksourceview2 >= 2.9.7
  12. Requires: gtkmm2 >= 2.12
  13. BuildRequires: gtksourceview2-devel >= 2.9.7
  14. BuildRequires: gtkmm2-devel >= 2.12
  15. Vendor: Project Vine
  16. Distribution: Vine Linux
  17. Packager: Takemikaduchi
  18. %description
  19. Gtksourceviewmm is a C++ wrapper for gtksourceview.
  20. %package devel
  21. Summary: Development tools for gtksourceviewmm applications.
  22. Summary(ja): gtksourceviewmm アプリケーションの開発用ファイル
  23. Group: Development/Libraries
  24. Requires: %{name} = %{version}-%{release}
  25. Requires: gtksourceview2-devel >= 2.9.7
  26. Requires: gtkmm2-devel >= 2.12
  27. %description devel
  28. Header files and libraries for building a extension library for the gtksourceviewmm.
  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. %changelog
  64. * Tue Sep 21 2010 IWAI, Masaharu <iwai@alib.jp> 2.10.1-2
  65. - build with rpm-4.8.1-1 for pkg-config file
  66. * Thu Jul 29 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.10.1-1
  67. - initial build for Vine Linux