pangomm-vl.spec 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. %define apiver 1.4
  2. Name: pangomm
  3. Version: 2.26.1
  4. Release: 1%{?_dist_release}
  5. Summary: C++ interface for Pango
  6. Summary(ja): Pango の C++ インターフェース
  7. Group: System Environment/Libraries
  8. License: LGPLv2+
  9. URL: http://gtkmm.sourceforge.net/
  10. Source0: http://ftp.gnome.org/pub/GNOME/sources/pangomm/2.24/%{name}-%{version}.tar.bz2
  11. Patch0: pangomm-2.14.0-devhelp.patch
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildRequires: glibmm-devel >= 2.14.1
  14. BuildRequires: cairomm-devel >= 1.2.2
  15. BuildRequires: pango-devel >= 1.23.0
  16. #BuildRequires: doxygen graphviz
  17. Obsoletes: gtkmm2 < 2.13.5
  18. %description
  19. pangomm provides a C++ interface to the Pango library. Highlights
  20. include typesafe callbacks, widgets extensible via inheritance and a
  21. comprehensive set of widget classes that can be freely combined to
  22. quickly create complex user interfaces.
  23. %package devel
  24. Summary: Headers for developing programs that will use %{name}
  25. Summary(ja): %{name} を使用するプログラムを開発するためのファイル
  26. Group: Development/Libraries
  27. Requires: %{name} = %{version}-%{release}
  28. Requires: glibmm-devel >= 2.14.1
  29. Requires: cairomm-devel >= 1.2.2
  30. Requires: pango-devel >= 1.23.0
  31. Requires: pkgconfig gtk-doc
  32. Obsoletes: gtkmm2-devel < 2.13.5
  33. %description devel
  34. This package contains the libraries and header files needed for
  35. developing pangomm applications.
  36. %prep
  37. %setup -q
  38. #patch0 -p1
  39. %build
  40. %configure --disable-static
  41. make %{?_smp_mflags}
  42. %install
  43. rm -rf $RPM_BUILD_ROOT
  44. #make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
  45. make install DESTDIR=$RPM_BUILD_ROOT
  46. #rm -rf $RPM_BUILD_ROOT%{_libdir}/pangomm-%{apiver}
  47. find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
  48. # Fix documentation installation, put everything under gtk-doc and fix
  49. # relative paths.
  50. mkdir -p $RPM_BUILD_ROOT%{_datadir}/gtk-doc/html/pangomm-%{apiver}
  51. mv $RPM_BUILD_ROOT%{_docdir}/pangomm-%{apiver}/* $RPM_BUILD_ROOT%{_datadir}/gtk-doc/html/pangomm-%{apiver}/
  52. rm -r ${RPM_BUILD_ROOT}%{_docdir}/pangomm-%{apiver}
  53. # Fix devhelp relative path
  54. sed -i 's:doc/pangomm-%{apiver}:gtk-doc/html/pangomm-%{apiver}:g' $RPM_BUILD_ROOT%{_datadir}/devhelp/books/pangomm-%{apiver}/pangomm-%{apiver}.devhelp2
  55. %clean
  56. rm -rf $RPM_BUILD_ROOT
  57. %post -p /sbin/ldconfig
  58. %postun -p /sbin/ldconfig
  59. %files
  60. %defattr(-, root, root, -)
  61. %doc AUTHORS ChangeLog COPYING NEWS README
  62. %{_libdir}/*.so.*
  63. %files devel
  64. %defattr(-, root, root, -)
  65. %{_includedir}/pangomm-%{apiver}
  66. %{_libdir}/*.so
  67. %{_libdir}/pangomm-%{apiver}/*
  68. %{_libdir}/pkgconfig/*.pc
  69. %{_datadir}/gtk-doc/html/pangomm-%{apiver}
  70. %{_datadir}/devhelp/books/pangomm-%{apiver}
  71. %changelog
  72. * Thu Apr 29 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.26.1-1
  73. - new upstream release
  74. * Sun Sep 27 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.26.0-1
  75. - new upstream release
  76. * Fri Mar 20 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.24.0-1
  77. - new upstream release
  78. - dropped Patch0
  79. * Sat Oct 4 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.14.0-1
  80. - Initial build for Vine Linux
  81. - added Patch0 for documentation path fix
  82. * Fri Aug 29 2008 Denis Leroy <denis@poolshark.org> - 2.13.7-3
  83. - Obsoletes older gtkmm to avoid libpangomm conflict
  84. * Wed Aug 27 2008 Denis Leroy <denis@poolshark.org> - 2.13.7-2
  85. - Spec review fixes
  86. * Mon Aug 25 2008 Denis Leroy <denis@poolshark.org> - 2.13.7-1
  87. - First version