tomoe-gtk-vl.spec 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. %define with_python 0
  2. %define _tomoe_ver 0.6.0
  3. Summary: A class library for tomoe's GUI parts
  4. Summary(ja): tomoe の GUI パーツのクラスライブラリ
  5. Name: tomoe-gtk
  6. Version: 0.6.0
  7. Release: 2%{?_dist_release}
  8. Group: System Environment/Libraries
  9. License: LGPL
  10. URL: http://tomoe.sourceforge.jp/
  11. Source0: tomoe-gtk-%{version}.tar.gz
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. BuildRequires: tomoe-devel >= %{_tomoe_ver}
  14. BuildRequires: gtk2-devel >= 2.4.0, gtk-doc >= 1.4
  15. # does not currently build with gucharmap-2
  16. #BuildRequires: gucharmap-devel
  17. Requires: tomoe >= %{_tomoe_ver}
  18. Requires: gtk2 >= 2.4.0
  19. Requires(post): ldconfig
  20. Obsoletes: libtomoe-gtk < 0.6.0
  21. %description
  22. The tomoe-gtk is a class library for tomoe's GUI parts.
  23. %description -l ja
  24. tomoe-gtk は tomoe の GUI パーツのクラスライブラリです。
  25. %package devel
  26. Summary: Header files for developing tomoe-gtk applications
  27. Summary(ja): tomoe-gtk アプリケーション開発用ヘッダファイル
  28. Group: Development/Libraries
  29. Requires: %{name} = %{version}-%{release}
  30. Requires: tomoe-devel >= %{_tomoe_ver}
  31. Requires: gucharmap-devel >= 1.4.0
  32. Requires: pkgconfig
  33. Obsoletes: libtomoe-gtk-devel < 0.6.0
  34. %description devel
  35. The tomoe-gtk-devel package includes the header files for the tomoe-gtk
  36. package.
  37. Install this package if you want to develop programs which use tomoe-gtk.
  38. %description -l ja devel
  39. tomoe-gtk-devel パッケージには、tomoe-gtk を使うアプリケーションを開発
  40. するためのヘッダファイルが含まれています。
  41. %if %{with_python}
  42. %package -n python-tomoe-gtk
  43. Summary: tomoe-gtk library for Python binding
  44. Summary(ja): Python から tomoe-gtk を使うためのライブラリ
  45. Group: System Environment/Libraries
  46. Requires: %{name} = %{version}-%{release}
  47. Requires: python
  48. BuildRequires: python-devel
  49. %description -n python-tomoe
  50. Python extension library to use tomoe-gtk
  51. %description -l ja -n python-tomoe
  52. Python から tomoe-gtk を使うための拡張ライブラリです。
  53. %endif
  54. %prep
  55. %setup -q
  56. %build
  57. %configure \
  58. --disable-static \
  59. --without-gucharmap
  60. %__make %{?_smp_mflags}
  61. %install
  62. %__rm -rf $RPM_BUILD_ROOT
  63. %makeinstall
  64. ## remove unuse files
  65. find ${RPM_BUILD_ROOT} -name '*.la' | xargs rm
  66. %if !%{with_python}
  67. %__rm -f %{buildroot}%{_libdir}/python?.?/site-packages/gtk-?.?/tomoegtk.so
  68. %endif
  69. %find_lang %{name}
  70. %clean
  71. %__rm -rf %{buildroot}
  72. %post
  73. %{_syssbindir}/ldconfig
  74. %postun
  75. %{_syssbindir}/ldconfig
  76. %files -f %{name}.lang
  77. %defattr(-,root,root,-)
  78. %doc AUTHORS COPYING ChangeLog INSTALL
  79. %{_libdir}/*.so.*
  80. %{_datadir}/tomoe-gtk
  81. %files devel
  82. %defattr(-,root,root,-)
  83. %{_includedir}/tomoe/gtk/*.h
  84. %{_libdir}/pkgconfig/*.pc
  85. %{_libdir}/*.so
  86. %{_datadir}/gtk-doc/html/libtomoe-gtk
  87. %changelog
  88. * Sun Oct 03 2010 Shu KONNO <owa@bg.wakwak.com> 0.6.0-2
  89. - rebuilt with rpm-4.8.1 for pkg-config
  90. * Sun May 31 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.6.0-1
  91. - new upstream release
  92. - added %%configure:
  93. - --disable-static
  94. - --without-gucharmap
  95. * Mon Sep 29 2008 Shu KONNO <owa@bg.wakwak.com> 0.5.1-1vl5
  96. - applied new versioning policy, spec in utf-8
  97. - removed *.la
  98. * Sun Mar 11 2007 KAZUKI SHIMURA <kazuki@ma.ccna.ne.jp> 0.5.1-0vl1
  99. - new upstream release
  100. - drop obsolete test-fix.patch (patch0)
  101. * Mon Jan 08 2007 KAZUKI SHIMURA <kazuki@ma.ccna.ne.jp> 0.5.0-0vl2
  102. - add Requires: gucharmap-devel to -devel package
  103. * Mon Dec 31 2006 KAZUKI SHIMURA <kazuki@ma.ccna.ne.jp> 0.5.0-0vl1
  104. - new upstream release
  105. - update required version of tomoe
  106. - add test-fix.patch (patch0)
  107. - add Requires: tomoe-devel to -devel package
  108. - add BuildRequires: gtk-doc >= 1.4, gucharmap-devel >= 1.4.0
  109. * Fri Nov 24 2006 KAZUKI SHIMURA <kazuki@ma.ccna.ne.jp> 0.3.0-0vl1
  110. - new upstream release
  111. - update required-version of tomoe
  112. - add Requires: pkgconfig to -devel package
  113. - update %%files
  114. * Mon Nov 07 2005 KAZUKI SHIMURA <kazuki@ma.ccna.ne.jp> 0.1.0-0vl1
  115. - initial release for Vine Linux