jd-vl.spec 9.2 KB

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