hexchat-vl.spec 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. %define name hexchat
  2. %define version 2.10.0
  3. %define release 1%{?_dist_release}
  4. Summary: IRC client based on XChat
  5. Summary(ja): XChat をベースにした IRC クライアント
  6. Name: %{name}
  7. Version: %{version}
  8. Release: %{release}
  9. Group: Applications/Internet
  10. License: GPLv2
  11. URL: http://hexchat.github.io/
  12. Source0: http://dl.hexchat.net/hexchat/hexchat-%{version}.tar.xz
  13. Buildroot: %{_tmppath}/%{name}-%{version}-root
  14. Patch0: xchat-1.8.7-use-sysconf-to-detect-cpus.patch
  15. Patch110: http://takuo.jp/junk/xchat/99_x_dialog.dpatch
  16. Patch200: hexchat-2.9.5_defaultserver-vine.patch
  17. BuildRequires: autoconf
  18. BuildRequires: dbus-devel
  19. BuildRequires: dbus-glib-devel
  20. BuildRequires: desktop-file-utils
  21. BuildRequires: gettext
  22. BuildRequires: glib2-devel >= 2.10.0
  23. BuildRequires: gtk2-devel >= 2.10.0
  24. BuildRequires: openssl-devel
  25. BuildRequires: pciutils-devel
  26. BuildRequires: perl
  27. BuildRequires: pkgconfig
  28. BuildRequires: python-devel
  29. BuildRequires: tcl
  30. %description
  31. HexChat is an easy to use graphical IRC chat client for the X Window System.
  32. It allows you to join multiple IRC channels (chat rooms) at the same time,
  33. talk publicly, private one-on-one conversations etc. Even file transfers
  34. are possible.
  35. %package devel
  36. Summary: Development files for hexchat
  37. Summary(ja): hexchat を使った開発に必要なファイル
  38. Group: Development/Libraries
  39. Requires: %{name} = %{version}-%{release}
  40. %description devel
  41. Development files for hexchat.
  42. %description -l ja devel
  43. hexchat の開発ファイルです。
  44. %prep
  45. %setup -q
  46. %patch0 -p0 -b .use-sysconf-to-detect-cpus
  47. %patch110 -p1 -b .dialog
  48. %patch200 -p1 -b .servlist
  49. %build
  50. #./autogen.sh
  51. find -type f -exec chmod a-x {} \;
  52. find -name configure -exec chmod a+x {} \;
  53. %configure --disable-textfe \
  54. --enable-openssl \
  55. --enable-python \
  56. --enable-shm \
  57. --disable-spell \
  58. --disable-rpath \
  59. --enable-ipv6
  60. make %{?_smp_mflags}
  61. %install
  62. rm -rf $RPM_BUILD_ROOT
  63. make DESTDIR=$RPM_BUILD_ROOT install
  64. # Remove unwanted stuff
  65. find $RPM_BUILD_ROOT -type f -name '*.la' -exec rm -rf {} \;
  66. # Remove unused schema
  67. rm -f %{buildroot}%{_sysconfdir}/gconf/schemas/apps_hexchat_url_handler.schemas
  68. desktop-file-install \
  69. --delete-original \
  70. --add-mime-type='x-scheme-handler/irc;x-scheme-handler/ircs' \
  71. --set-key=Exec --set-value='sh -c "hexchat --existing --url %U || exec hexchat"' \
  72. %{buildroot}/%{_datadir}/applications/hexchat.desktop
  73. %find_lang %{name}
  74. %post
  75. /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
  76. /usr/bin/update-desktop-database &> /dev/null || :
  77. %postun
  78. /usr/bin/update-desktop-database &> /dev/null || :
  79. if [ $1 -eq 0 ] ; then
  80. /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
  81. /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  82. fi
  83. %posttrans
  84. /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
  85. %clean
  86. rm -rf $RPM_BUILD_ROOT
  87. %files -f %{name}.lang
  88. %defattr(-,root,root)
  89. #%doc share/doc/*
  90. %{_bindir}/hexchat
  91. %{_libdir}/hexchat/plugins/*.so
  92. %{_datadir}/appdata/hexchat.appdata.xml
  93. %{_datadir}/applications/hexchat.desktop
  94. %{_datadir}/dbus-1/services/*
  95. %{_datadir}/icons/hicolor/*
  96. %{_mandir}/man1/%{name}.1.gz
  97. %files devel
  98. %defattr(-,root,root)
  99. %{_includedir}/%{name}-plugin.h
  100. %{_libdir}/pkgconfig/hexchat-plugin.pc
  101. %changelog
  102. * Tue Jul 01 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.10.0-1
  103. - new upstream release
  104. * Sat Apr 12 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.9.6.1-2
  105. - rebuilt with new toolchain
  106. * Sat Oct 12 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.9.6.1-1
  107. - new upstream release
  108. * Sat Aug 31 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 2.9.5-1
  109. - new upstream release