twitux-vl.spec 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. %define ver 0.69
  2. %define rel 3
  3. Summary: GTK+ application for Twitter.com
  4. Summary(ja): Twitter.comのためのGTK+アプリケーション
  5. Name: twitux
  6. Version: %{ver}
  7. Release: %{rel}%{?_dist_release}
  8. Source0: %{name}-%{version}.tar.bz2
  9. Source1: twitux-ja.po
  10. Patch0: twitux-0.69-help.patch
  11. Patch1: twitux-0.69-r372.patch
  12. License: GPLv2+
  13. Group: Applications/Internet
  14. URL: https://sourceforge.net/projects/twitux
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  16. Vendor: Project Vine
  17. Distribution: Vine Linux
  18. BuildRequires: gtk2-devel >= 2.14.0, glib2-devel >= 2.15.5
  19. BuildRequires: libsexy-devel, libsoup-devel, libnotify-devel
  20. BuildRequires: libcanberra-devel >= 0.4
  21. BuildRequires: dbus-devel >= 0.61, dbus-glib-devel
  22. BuildRequires(install,check): desktop-file-utils
  23. PreReq: desktop-file-utils, rarian-compat
  24. %description
  25. Twitux it's a free and open source GTK+ application for Twitter.com.
  26. you can: Send status, View friend status and see what they are doing ,
  27. Send direct messages to your Twitter friends, GUI notificactions
  28. when a friend update their status.. and more :)
  29. %description -l ja
  30. Twitux フリーで、オープンソースで開発されている GTK+ ベースの
  31. Twitter クライアントです。
  32. このクライアントを使うと、ステータスの送信から、友達のステータス
  33. や彼らが何をしているのかの確認、友達宛のダイレクトメッセージの送信、
  34. 友達がステータスを更新した時の GUI による通知等々が利用できます。
  35. %prep
  36. %setup -q
  37. %patch0 -p 1
  38. %{__cp} -f %{SOURCE1} po/ja.po
  39. %{__rm} -f po/ja.gmo
  40. %patch1 -p 1
  41. %build
  42. %configure --disable-schemas-install
  43. %{__make} %{?_smp_mflags}
  44. %install
  45. %{__rm} -rf ${RPM_BUILD_ROOT}
  46. %{makeinstall}
  47. %{__rm} -f ${RPM_BUILD_ROOT}%{_datadir}/icons/hicolor/icon-theme.cache
  48. %find_lang %{name}
  49. %clean
  50. %{__rm} -rf ${RPM_BUILD_ROOT}
  51. %check
  52. make check
  53. %{_bindir}/desktop-file-validate ${RPM_BUILD_ROOT}%{_datadir}/applications/twitux.desktop
  54. %post
  55. %{_bindir}/update-desktop-database %{_datadir}/applications
  56. %{_bindir}/scrollkeeper-update > /dev/null 2>&1 || :
  57. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  58. SCHEMAS="twitux.schemas"
  59. for S in $SCHEMAS; do
  60. %{_bindir}/gconftool-2 --makefile-install-rule \
  61. %{_sysconfdir}/gconf/schemas/$S > /dev/null
  62. done
  63. %pre
  64. if [ "$1" -gt 1 ]; then
  65. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  66. SCHEMAS="twitux.schemas"
  67. for S in $SCHEMAS; do
  68. %{_bindir}/gconftool-2 --makefile-uninstall-rule \
  69. %{_sysconfdir}/gconf/schemas/$S > /dev/null
  70. done
  71. fi
  72. %preun
  73. if [ "$1" -eq 0 ]; then
  74. export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
  75. SCHEMAS="twitux.schemas"
  76. for S in $SCHEMAS; do
  77. %{_bindir}/gconftool-2 --makefile-uninstall-rule \
  78. %{_sysconfdir}/gconf/schemas/$S > /dev/null
  79. done
  80. fi
  81. %postun
  82. %{_bindir}/update-desktop-database %{_datadir}/applications >& /dev/null ||:
  83. %{_bindir}/scrollkeeper-update > /dev/null 2>&1 || :
  84. %files -f %{name}.lang
  85. %defattr(-,root,root)
  86. %doc
  87. %{_bindir}/twitux
  88. %{_sysconfdir}/gconf/schemas/twitux.schemas
  89. %{_datadir}/applications/twitux.desktop
  90. %{_datadir}/gnome/help/twitux
  91. %{_datadir}/icons/hicolor/*/apps/*
  92. %{_datadir}/twitux
  93. %{_datadir}/omf/twitux
  94. %changelog
  95. * Sun Aug 09 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.69-3
  96. - add japanese description
  97. * Thu Apr 16 2009 IWAI, Masaharu <iwai@alib.jp> 0.69-2
  98. - fix avatar size and memory leak (Patch2): patch from upstream SVN)
  99. * Sun Mar 29 2009 IWAI, Masaharu <iwai@alib.jp> 0.69-1
  100. - initial release