jd-vl.spec 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  1. ### for 5.x / 6.x / VineSeed ###
  2. %define pkg_version 2.8.8
  3. %define strtag 140601
  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
  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. * Thu Jun 5 2014 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.8.8-1
  106. - new upstream release
  107. - built with gnutls 3.x
  108. * Wed Jan 8 2014 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.8.7-1
  109. - new upstream release
  110. * Thu Dec 26 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.8.6-2
  111. - rebuild with VineSeed environment
  112. * Sat May 18 2013 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.8.6-1
  113. - new upstream release
  114. * Thu Mar 28 2013 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp>
  115. - 2.8.6-0.beta130304
  116. - new upstream beta release (for testing)
  117. * Mon Aug 27 2012 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.8.5-1
  118. - new upstream release
  119. * Sun Aug 12 2012 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.8.5-0
  120. - new upstream rc release (for testing)
  121. * Sun Aug 14 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.8.2-2
  122. - add -q option to update-desktop-database
  123. * Sun Aug 14 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.8.2-1
  124. - new upstream release
  125. - drop vl4 section from spec file
  126. * Thu Aug 4 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.8.2-0
  127. - new upstream rc release (for testing)
  128. * Sun Mar 20 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.8.1-1
  129. - new upstream release
  130. * Tue Feb 15 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.8.1-0
  131. - new beta release
  132. * Thu Feb 3 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.8.0-1
  133. - new upstream release
  134. * Wed Feb 2 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.8.0-0
  135. - testpackage (not for release)
  136. - drop patch100 (included in new release)
  137. * Tue Feb 1 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.7.5-3
  138. - use Requires(pre) tag instead of Prereq
  139. * Tue Jan 11 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.7.5-2
  140. - add patch100 to add config status line color setting
  141. * Sat Jan 1 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.7.5-1
  142. - 2.7.5 release
  143. * Wed Dec 15 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.7.5-0.1
  144. - 2.7.5 beta (not for release)
  145. * Sat Dec 11 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.7.5-0
  146. - 2.7.5 beta (not for release)
  147. - drop Patch100 (is included in new release)
  148. * Fri Aug 27 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.7.0-2
  149. - add patch1 to show vine package into environment
  150. - add patch100 to fix maru & p2 issue
  151. * Tue Aug 24 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.7.0-1
  152. - new upstream release
  153. * Thu Apr 29 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.6.5-2
  154. - add patch110 to fix build error on Vine4
  155. - add BR: libgpg-error-devel
  156. * Wed Apr 28 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.6.5-1
  157. - new upstream release
  158. - drop Patch100 (is included in new release)
  159. * Mon Mar 22 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.6.0-2
  160. - add Patch100 to build fix with <= gtkmm28 (Vine 4.x env)
  161. * Mon Feb 8 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.6.0-1
  162. - new upstream release
  163. * Sat Feb 6 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.6.0-0.100130
  164. - 2.6.0 rc1 (not for release)
  165. * Tue Dec 29 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.5.5-1
  166. - new upstream release
  167. * Mon Dec 28 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.5.5-0.091225
  168. - 2.5.5 rc1 (not for release)
  169. * Wed Dec 23 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.5.5-0.091220
  170. - 2.5.5 beta (not for release)
  171. - drop patch100 (included in new release)
  172. * Sat Dec 12 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.5.0-1
  173. - new upstream release
  174. * Mon Sep 28 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.4.2-1
  175. - new upstream release
  176. * Tue Sep 22 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp>
  177. - 2.4.2-rc090921-0
  178. - for test
  179. * Mon Jul 13 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.4.1-1
  180. - new upstream release
  181. * Sat Jul 11 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp>
  182. - 2.4.1-rc090705-1
  183. - new upstream rc release for testing
  184. - drop patch100, 110 (included in new release)
  185. * Sat May 30 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.4.0-2
  186. - Merge spec file for vl4 and for vl5
  187. - add patch100, 110 from upstream svn
  188. * Sat May 23 2009 tomcat <webmaster2@tomcat.nyanta.jp> 2.4.0-1vl4
  189. - new upstream release
  190. * Fri Mar 06 2009 tomcat <webmaster2@tomcat.nyanta.jp> 2.3.0-1vl4
  191. - new upstream release
  192. * Fri Jan 16 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.1.0-2vl4
  193. - fix icon file install method
  194. * Sun Dec 28 2008 tomcat <webmaster2@tomcat.nyanta.jp> 2.1.0-1vl4
  195. - new upstream release
  196. * Mon Nov 24 2008 tomcat <webmaster2@tomcat.nyanta.jp> 2.0.3-1vl4
  197. - new upstream release
  198. * Wed Oct 01 2008 tomcat <webmaster2@tomcat.nyanta.jp> 2.0.2-1vl4
  199. - rebuild for official
  200. * Sun Sep 21 2008 tomcat <webmaster2@tomcat.nyanta.jp> 2.0.2-1tomvl4
  201. - update to 2.0.2
  202. * Sun Feb 03 2008 tomcat <webmaster2@tomcat.nyanta.jp> 1.9.8-1tom3
  203. - build with gnutls-1.4.1(official package)
  204. * Sun Dec 30 2007 tomcat <webmaster2@tomcat.nyanta.jp> 1.9.8-1tom2
  205. - build with gnutls-1.6.3(unofficial package)
  206. * Sat Dec 29 2007 tomcat <webmaster2@tomcat.nyanta.jp> 1.9.8-1tom1
  207. - new upstream release
  208. - drop Patch0 (jd-1.9.5-desktop-vi.patch)
  209. - add Source1 (jd-vi.desktop)
  210. * Fri Nov 23 2007 tomcat <webmaster2@tomcat.nyanta.jp> 1.9.7-1tom1
  211. - new upstream release
  212. * Sat Oct 06 2007 tomcat <webmaster2@tomcat.nyanta.jp> 1.9.6-1tom1
  213. - new upstream release
  214. * Wed Jul 04 2007 tomcat <webmaster2@tomcat.nyanta.jp> 1.9.5-1tom2
  215. - modified jd-vi.spec
  216. - add patch0
  217. * Sun Jul 01 2007 tomcat <webmaster2@tomcat.nyanta.jp> 1.9.5-1
  218. - new upstream release
  219. * Wed May 23 2007 tomcat <webmaster2@tomcat.nyanta.jp> 1.8.8-2
  220. - fix the Help file is not installed
  221. * Wed Apr 04 2007 tomcat <webmaster2@tomcat.nyanta.jp> 1.8.8-1
  222. - new upstream release
  223. * Sat Feb 03 2007 tomcat <webmaster2@tomcat.nyanta.jp> 1.8.5-1
  224. - new upstream release
  225. * Mon Dec 18 2006 tomcat <webmaster2@tomcat.nyanta.jp> 1.8.1-1
  226. - new upstream release
  227. * Thu Nov 30 2006 tomcat <webmaster2@tomcat.nyanta.jp> 1.8.0-1
  228. - initial build for Vine Linux
  229. * Thu Mar 9 2006 Houritsuchu <houritsuchu@hotmail.com>
  230. - Version up.
  231. - add icon
  232. * Sat Feb 25 2006 Houritsuchu <houritsuchu@hotmail.com>
  233. - first