jd-vl.spec 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338
  1. ### for 5.x / 6.x / VineSeed ###
  2. %define pkg_version 2.8.9
  3. %define strtag 170418
  4. %define repoid 40140
  5. %define vendor_rel 4
  6. %define pre_release 0
  7. %if %{pre_release}
  8. %define pkg_release %{vendor_rel}.%{strtag}%{?_dist_release}
  9. %else
  10. %define pkg_release %{vendor_rel}%{?_dist_release}
  11. %endif
  12. ## icon install dist dir
  13. %define icondir %{_datadir}/icons/hicolor
  14. ## enable/disable sound (0:disable 1:enable)
  15. %define sound 1
  16. Summary: A 2ch browser
  17. Summary(ja): 2ちゃんねる用ブラウザ
  18. Name: jd
  19. Version: %{pkg_version}
  20. Release: %{pkg_release}
  21. Source0: http://prdownloads.sourceforge.jp/jd4linux/%{repoid}/%{name}-%{version}-%{strtag}.tar.bz2
  22. Source1: jd-vl.desktop
  23. # Vine Patch
  24. Patch1: jd-vine_env.patch
  25. # upstream svn patches
  26. # Patch100: jd-2.5.0_http_201.patch
  27. # Patch100: jd-2.4.0_close_err_image.patch
  28. # Patch110: jd-2.4.0_tag_drawing_fix.patch
  29. # Patch100: jd-2.6.0_gtkmm28.patch
  30. # Patch100: jd-2.7.0_maru_p2.patch
  31. # Patch100: jd-2.7.5-command_line_color_config.patch
  32. # Patch110: jd-2.6.5_vine4.patch
  33. # Patch 200 - 299 are non upstream patches
  34. Patch200: jd-2.8.9_5ch.patch
  35. Patch210: jd-2.8.9_emoji.patch
  36. License: GPL
  37. Group: Applications/Internet
  38. URL: http://jd4linux.sourceforge.jp/
  39. Requires: gtkmm2 >= 2.8
  40. Requires: glibmm
  41. Requires: zlib >= 1.2
  42. Requires: pango
  43. Requires: gnutls >= 1.2
  44. Requires(pre): desktop-file-utils
  45. # Prereq: desktop-file-utils
  46. BuildRequires: libtool, automake, autoconf
  47. BuildRequires: gtkmm2-devel >= 2.8
  48. BuildRequires: glibmm-devel
  49. BuildRequires: zlib-devel >= 1.2
  50. BuildRequires: XOrg-devel
  51. BuildRequires: pango-devel
  52. BuildRequires: gnutls-devel >= 1.2
  53. BuildRequires: libgpg-error-devel
  54. %if %{sound}
  55. BuildRequires: alsa-lib-devel
  56. %endif
  57. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  58. Packager: iwamoto
  59. Vendor: Project Vine
  60. Distribution: Vine Linux
  61. %description
  62. JD is a 2ch browser based on gtkmm2.
  63. %description -l ja
  64. JD は gtkmm2 ベースの2ちゃんねる用ブラウザです。
  65. %prep
  66. %setup -q -n %{name}-%{version}-%{strtag}
  67. # %setup -q -n %{name}-%{version}-rc110803
  68. # find . -name .svn | sort -r | xargs %{__rm} -rf
  69. %patch1 -p1 -b .vine_env
  70. # Patch 100 - 199 are upstream patches
  71. # %patch100 -p2 -b .close_err_image
  72. # %patch100 -p2 -b .gtkmm28
  73. # %patch100 -p0 -b .maru_p2
  74. # %patch100 -p0 -b .color
  75. # Patch 200 - 299 are non upstream patches
  76. %patch200 -p1 -b .5ch
  77. %patch210 -p0 -b .emoji
  78. %build
  79. autoreconf -i
  80. ## set TZ for __TIME__
  81. export TZ='Asia/Tokyo'
  82. %if %{sound}
  83. %configure --with-alsa "CXXFLAGS= -std=c++0x"
  84. %else
  85. %configure
  86. %endif
  87. %{__make} %{?_smp_mflags} V=1
  88. %install
  89. %{__rm} -rf ${RPM_BUILD_ROOT}
  90. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  91. %{__mkdir_p} ${RPM_BUILD_ROOT}%{_datadir}/applications
  92. %{__install} -p -m644 %{SOURCE1} ${RPM_BUILD_ROOT}%{_datadir}/applications/jd.desktop
  93. for i in 16 32 48 96;do \
  94. %{__mkdir_p} ${RPM_BUILD_ROOT}%{icondir}/$i"x"$i/apps; \
  95. %{__install} -p -m644 src/icons/%{name}$i.png ${RPM_BUILD_ROOT}%{icondir}/$i"x"$i/apps/%{name}.png; \
  96. done
  97. %clean
  98. %{__rm} -rf ${RPM_BUILD_ROOT}
  99. %post
  100. update-desktop-database -q %{_datadir}/applications
  101. %postun
  102. update-desktop-database -q %{_datadir}/applications
  103. %files
  104. %defattr(-,root,root)
  105. %doc COPYING ChangeLog README
  106. %{_bindir}/%{name}
  107. %{_datadir}/applications/%{name}.desktop
  108. %{_datadir}/pixmaps/%{name}.png
  109. %{icondir}/*/apps/%{name}.png
  110. %changelog
  111. * Wed Nov 29 2017 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.8.9-4
  112. - 3vl7 was skipped
  113. - add patch210
  114. - add patch200
  115. * Thu Sep 01 2016 Toshiaki Ara <ara_t@384.jp> 2.8.9-2
  116. - rebuild with gcc-5.4.0
  117. * Wed Dec 30 2015 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.8.9-1
  118. - new upstream release
  119. - New 2ch API is NOT supported
  120. * Thu Jun 5 2014 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.8.8-1
  121. - new upstream release
  122. - built with gnutls 3.x
  123. * Wed Jan 8 2014 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.8.7-1
  124. - new upstream release
  125. * Thu Dec 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.6-2
  126. - rebuild with VineSeed environment
  127. * Sat May 18 2013 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.8.6-1
  128. - new upstream release
  129. * Thu Mar 28 2013 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp>
  130. - 2.8.6-0.beta130304
  131. - new upstream beta release (for testing)
  132. * Mon Aug 27 2012 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.8.5-1
  133. - new upstream release
  134. * Sun Aug 12 2012 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.8.5-0
  135. - new upstream rc release (for testing)
  136. * Sun Aug 14 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.8.2-2
  137. - add -q option to update-desktop-database
  138. * Sun Aug 14 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.8.2-1
  139. - new upstream release
  140. - drop vl4 section from spec file
  141. * Thu Aug 4 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.8.2-0
  142. - new upstream rc release (for testing)
  143. * Sun Mar 20 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.8.1-1
  144. - new upstream release
  145. * Tue Feb 15 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.8.1-0
  146. - new beta release
  147. * Thu Feb 3 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.8.0-1
  148. - new upstream release
  149. * Wed Feb 2 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.8.0-0
  150. - testpackage (not for release)
  151. - drop patch100 (included in new release)
  152. * Tue Feb 1 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.7.5-3
  153. - use Requires(pre) tag instead of Prereq
  154. * Tue Jan 11 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.7.5-2
  155. - add patch100 to add config status line color setting
  156. * Sat Jan 1 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.7.5-1
  157. - 2.7.5 release
  158. * Wed Dec 15 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.7.5-0.1
  159. - 2.7.5 beta (not for release)
  160. * Sat Dec 11 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.7.5-0
  161. - 2.7.5 beta (not for release)
  162. - drop Patch100 (is included in new release)
  163. * Fri Aug 27 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.7.0-2
  164. - add patch1 to show vine package into environment
  165. - add patch100 to fix maru & p2 issue
  166. * Tue Aug 24 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.7.0-1
  167. - new upstream release
  168. * Thu Apr 29 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.6.5-2
  169. - add patch110 to fix build error on Vine4
  170. - add BR: libgpg-error-devel
  171. * Wed Apr 28 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.6.5-1
  172. - new upstream release
  173. - drop Patch100 (is included in new release)
  174. * Mon Mar 22 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.6.0-2
  175. - add Patch100 to build fix with <= gtkmm28 (Vine 4.x env)
  176. * Mon Feb 8 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.6.0-1
  177. - new upstream release
  178. * Sat Feb 6 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.6.0-0.100130
  179. - 2.6.0 rc1 (not for release)
  180. * Tue Dec 29 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.5.5-1
  181. - new upstream release
  182. * Mon Dec 28 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.5.5-0.091225
  183. - 2.5.5 rc1 (not for release)
  184. * Wed Dec 23 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.5.5-0.091220
  185. - 2.5.5 beta (not for release)
  186. - drop patch100 (included in new release)
  187. * Sat Dec 12 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.5.0-1
  188. - new upstream release
  189. * Mon Sep 28 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.4.2-1
  190. - new upstream release
  191. * Tue Sep 22 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp>
  192. - 2.4.2-rc090921-0
  193. - for test
  194. * Mon Jul 13 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.4.1-1
  195. - new upstream release
  196. * Sat Jul 11 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp>
  197. - 2.4.1-rc090705-1
  198. - new upstream rc release for testing
  199. - drop patch100, 110 (included in new release)
  200. * Sat May 30 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.4.0-2
  201. - Merge spec file for vl4 and for vl5
  202. - add patch100, 110 from upstream svn
  203. * Sat May 23 2009 tomcat <webmaster2@tomcat.nyanta.jp> 2.4.0-1vl4
  204. - new upstream release
  205. * Fri Mar 06 2009 tomcat <webmaster2@tomcat.nyanta.jp> 2.3.0-1vl4
  206. - new upstream release
  207. * Fri Jan 16 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.1.0-2vl4
  208. - fix icon file install method
  209. * Sun Dec 28 2008 tomcat <webmaster2@tomcat.nyanta.jp> 2.1.0-1vl4
  210. - new upstream release
  211. * Mon Nov 24 2008 tomcat <webmaster2@tomcat.nyanta.jp> 2.0.3-1vl4
  212. - new upstream release
  213. * Wed Oct 01 2008 tomcat <webmaster2@tomcat.nyanta.jp> 2.0.2-1vl4
  214. - rebuild for official
  215. * Sun Sep 21 2008 tomcat <webmaster2@tomcat.nyanta.jp> 2.0.2-1tomvl4
  216. - update to 2.0.2
  217. * Sun Feb 03 2008 tomcat <webmaster2@tomcat.nyanta.jp> 1.9.8-1tom3
  218. - build with gnutls-1.4.1(official package)
  219. * Sun Dec 30 2007 tomcat <webmaster2@tomcat.nyanta.jp> 1.9.8-1tom2
  220. - build with gnutls-1.6.3(unofficial package)
  221. * Sat Dec 29 2007 tomcat <webmaster2@tomcat.nyanta.jp> 1.9.8-1tom1
  222. - new upstream release
  223. - drop Patch0 (jd-1.9.5-desktop-vi.patch)
  224. - add Source1 (jd-vi.desktop)
  225. * Fri Nov 23 2007 tomcat <webmaster2@tomcat.nyanta.jp> 1.9.7-1tom1
  226. - new upstream release
  227. * Sat Oct 06 2007 tomcat <webmaster2@tomcat.nyanta.jp> 1.9.6-1tom1
  228. - new upstream release
  229. * Wed Jul 04 2007 tomcat <webmaster2@tomcat.nyanta.jp> 1.9.5-1tom2
  230. - modified jd-vi.spec
  231. - add patch0
  232. * Sun Jul 01 2007 tomcat <webmaster2@tomcat.nyanta.jp> 1.9.5-1
  233. - new upstream release
  234. * Wed May 23 2007 tomcat <webmaster2@tomcat.nyanta.jp> 1.8.8-2
  235. - fix the Help file is not installed
  236. * Wed Apr 04 2007 tomcat <webmaster2@tomcat.nyanta.jp> 1.8.8-1
  237. - new upstream release
  238. * Sat Feb 03 2007 tomcat <webmaster2@tomcat.nyanta.jp> 1.8.5-1
  239. - new upstream release
  240. * Mon Dec 18 2006 tomcat <webmaster2@tomcat.nyanta.jp> 1.8.1-1
  241. - new upstream release
  242. * Thu Nov 30 2006 tomcat <webmaster2@tomcat.nyanta.jp> 1.8.0-1
  243. - initial build for Vine Linux
  244. * Thu Mar 9 2006 Houritsuchu <houritsuchu@hotmail.com>
  245. - Version up.
  246. - add icon
  247. * Sat Feb 25 2006 Houritsuchu <houritsuchu@hotmail.com>
  248. - first