gcalctool-vl.spec 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. Name: gcalctool
  2. Version: 5.30.0
  3. Release: 1%{?_dist_release}
  4. Summary: Gnome2 Calculator application
  5. Summary(ja): GNOME2 電卓アプリケーション
  6. Group: Applications/Productivity
  7. License: GPL
  8. Source0: %{name}-%{version}.tar.bz2
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  10. BuildRequires: gtk2-devel >= 2.8.0
  11. BuildRequires: glib2-devel
  12. BuildRequires: GConf2-devel
  13. BuildRequires: gnome-doc-utils >= 0.3.2
  14. BuildRequires: perl-XML-Parser scrollkeeper
  15. BuildRequires: flex, bison
  16. BuildRequires: docbook-utils
  17. BuildRequires: desktop-file-utils
  18. Requires(post,postun): scrollkeeper
  19. Requires(post,pre,preun): GConf2
  20. %description
  21. gcalctool is a calculator application based on Gtk2.
  22. %description -l ja
  23. gcalctool は Gtk2 ベースの電卓アプリケーションです。
  24. %prep
  25. %setup -q
  26. %build
  27. %configure --disable-schemas-install --disable-scrollkeeper
  28. make %{?_smp_mflsgs}
  29. %install
  30. rm -fr $RPM_BUILD_ROOT
  31. %makeinstall
  32. desktop-file-install --vendor gnome --delete-original \
  33. --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  34. $RPM_BUILD_ROOT%{_datadir}/applications/*
  35. %find_lang %{name}
  36. rm -rf $RPM_BUILD_ROOT%{_localstatedir}/scrollkeeper
  37. %clean
  38. rm -rf %{buildroot}
  39. %post
  40. scrollkeeper-update > /dev/null 2>&1 || :
  41. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  42. gconftool-2 --makefile-install-rule \
  43. %{_sysconfdir}/gconf/schemas/gcalctool.schemas > /dev/null
  44. %pre
  45. if [ "$1" -gt 1 ]; then
  46. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  47. gconftool-2 --makefile-uninstall-rule \
  48. %{_sysconfdir}/gconf/schemas/gcalctool.schemas > /dev/null
  49. fi
  50. %preun
  51. if [ "$1" -eq 0 ]; then
  52. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  53. gconftool-2 --makefile-uninstall-rule \
  54. %{_sysconfdir}/gconf/schemas/gcalctool.schemas > /dev/null
  55. fi
  56. %postun
  57. scrollkeeper-update > /dev/null 2>&1 || :
  58. %files -f %{name}.lang
  59. %defattr(-,root,root)
  60. %doc COPYING NEWS README ChangeLog
  61. %{_bindir}/*
  62. %{_datadir}/applications/*
  63. %{_datadir}/gcalctool
  64. %{_datadir}/gnome/help/gcalctool
  65. %{_mandir}/man1/*
  66. %{_sysconfdir}/gconf/schemas/*
  67. %changelog
  68. * Wed Mar 31 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 5.30.0-1
  69. - new upstream release
  70. * Sun Mar 14 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 5.28.2-1
  71. - new upstream release
  72. - add BuildRequires: docbook-utils, desktop-file-utils
  73. * Sun Nov 01 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.28.1-1
  74. - new upstream release
  75. * Sat Jul 04 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 5.26.3-1
  76. - new upstream release
  77. * Sat Apr 25 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 5.26.1-1
  78. - new upstream release
  79. * Fri Apr 10 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.26.0-1
  80. - new upstream release
  81. * Sat Nov 29 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.24.2-1
  82. - new upstream release
  83. * Wed Oct 28 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 5.24.1-1
  84. - new upstream release
  85. * Tue Oct 14 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.24.0-1vl5
  86. - new upstream release
  87. - spec in UTF-8
  88. * Sun Apr 6 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.22.0-1vl5
  89. - new upstream release
  90. - added %%pre, %%preun section
  91. * Sun Jan 13 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.20.2-0vl1
  92. - new upstream release
  93. * Sun May 27 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.9.14-0vl1
  94. - new upstream release
  95. * Sat Nov 25 2006 KAZUKI SHIMURA <kazuki@ma.ccnw.ne.jp> 5.8.23-0vl2
  96. - add BuildRequires:
  97. - libgnome-devel, libgnomeui-devel, gnome-doc-utils, flex, bison
  98. * Sat Sep 2 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.8.23-0vl1
  99. - new upstream release
  100. * Sun Jun 04 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 5.8.13-0vl1
  101. - new upstream release
  102. * Mon May 8 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.8.10-0vl1
  103. - new upstream release
  104. * Tue Mar 14 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 5.7.32-0vl1
  105. - new upstream release
  106. * Wed Jan 25 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.7.27-0vl1
  107. - updated to 5.7.27
  108. - added BuildRequires: scrollkeeper, atk-devel
  109. * Wed Oct 12 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.6.31-0vl1
  110. - updated to 5.6.31
  111. * Fri Jun 24 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.6.14-0vl1
  112. - updated to 5.6.14
  113. - change Group: to Applications/Productivity
  114. * Sun Apr 10 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 5.5.41-0vl1
  115. - updated to 5.5.41
  116. * Fri Dec 17 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.4.20-0vl1
  117. - updated to 4.4.20
  118. * Sun Mar 21 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.3.50-0vl1
  119. - updated to 4.3.50
  120. * Thu Jan 15 2004 Tomoya TAKA <taka@vinelinux.org> 4.3.38-0vl2
  121. - add BuildRequires: perl-XML-Parser
  122. * Thu Jan 15 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.3.38-0vl1
  123. - new upstream release.
  124. - exec scrolkeeper-update %post and %postun section
  125. * Tue Dec 09 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 4.3.29-0vl1
  126. - initial release.