jd-vl.spec 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  1. ### for Vine Linux 4.x / 5.x / VineSeed ###
  2. %define pkg_version 2.8.1
  3. %define strtag 110312
  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: tomcat, 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. # find . -name .svn | sort -r | xargs %{__rm} -rf
  65. %patch1 -p1 -b .vine_env
  66. # Patch 100 - 200 are upstream patches
  67. # %patch100 -p2 -b .close_err_image
  68. # %patch100 -p2 -b .gtkmm28
  69. # %patch100 -p0 -b .maru_p2
  70. # %patch100 -p0 -b .color
  71. %if %{?_dist_release} == "vl4"
  72. %patch110 -p1 -b .vine4
  73. %endif
  74. %build
  75. autoreconf -i
  76. ## set TZ for __TIME__
  77. export TZ='Asia/Tokyo'
  78. %if %{sound}
  79. %configure --with-alsa
  80. %else
  81. %configure
  82. %endif
  83. %{__make} %{?_smp_mflags}
  84. %install
  85. %{__rm} -rf ${RPM_BUILD_ROOT}
  86. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  87. %{__mkdir_p} ${RPM_BUILD_ROOT}%{_datadir}/applications
  88. %{__install} -p -m644 %{SOURCE1} ${RPM_BUILD_ROOT}%{_datadir}/applications/jd.desktop
  89. for i in 16 32 48 96;do \
  90. %{__mkdir_p} ${RPM_BUILD_ROOT}%{icondir}/$i"x"$i/apps; \
  91. %{__install} -p -m644 src/icons/%{name}$i.png ${RPM_BUILD_ROOT}%{icondir}/$i"x"$i/apps/%{name}.png; \
  92. done
  93. %clean
  94. %{__rm} -rf ${RPM_BUILD_ROOT}
  95. %post
  96. update-desktop-database %{_datadir}/applications
  97. %postun
  98. update-desktop-database %{_datadir}/applications
  99. %files
  100. %defattr(-,root,root)
  101. %doc COPYING ChangeLog README
  102. %{_bindir}/%{name}
  103. %{_datadir}/applications/%{name}.desktop
  104. %{_datadir}/pixmaps/%{name}.png
  105. %{icondir}/*/apps/%{name}.png
  106. %changelog
  107. * Sun Mar 20 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.8.1-1
  108. - new upstream release
  109. * Tue Feb 15 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.8.1-0
  110. - new beta release
  111. * Thu Feb 3 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.8.0-1
  112. - new upstream release
  113. * Wed Feb 2 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.8.0-0
  114. - testpackage (not for release)
  115. - drop patch100 (included in new release)
  116. * Tue Feb 1 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.7.5-3
  117. - use Requires(pre) tag instead of Prereq
  118. * Tue Jan 11 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.7.5-2
  119. - add patch100 to add config status line color setting
  120. * Sat Jan 1 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.7.5-1
  121. - 2.7.5 release
  122. * Wed Dec 15 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.7.5-0.1
  123. - 2.7.5 beta (not for release)
  124. * Sat Dec 11 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.7.5-0
  125. - 2.7.5 beta (not for release)
  126. - drop Patch100 (is included in new release)
  127. * Fri Aug 27 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.7.0-2
  128. - add patch1 to show vine package into environment
  129. - add patch100 to fix maru & p2 issue
  130. * Tue Aug 24 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.7.0-1
  131. - new upstream release
  132. * Thu Apr 29 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.6.5-2
  133. - add patch110 to fix build error on Vine4
  134. - add BR: libgpg-error-devel
  135. * Wed Apr 28 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.6.5-1
  136. - new upstream release
  137. - drop Patch100 (is included in new release)
  138. * Mon Mar 22 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.6.0-2
  139. - add Patch100 to build fix with <= gtkmm28 (Vine 4.x env)
  140. * Mon Feb 8 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.6.0-1
  141. - new upstream release
  142. * Sat Feb 6 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.6.0-0.100130
  143. - 2.6.0 rc1 (not for release)
  144. * Tue Dec 29 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.5.5-1
  145. - new upstream release
  146. * Mon Dec 28 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.5.5-0.091225
  147. - 2.5.5 rc1 (not for release)
  148. * Wed Dec 23 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.5.5-0.091220
  149. - 2.5.5 beta (not for release)
  150. - drop patch100 (included in new release)
  151. * Sat Dec 12 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.5.0-1
  152. - new upstream release
  153. * Mon Sep 28 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.4.2-1
  154. - new upstream release
  155. * Tue Sep 22 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp>
  156. - 2.4.2-rc090921-0
  157. - for test
  158. * Mon Jul 13 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.4.1-1
  159. - new upstream release
  160. * Sat Jul 11 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp>
  161. - 2.4.1-rc090705-1
  162. - new upstream rc release for testing
  163. - drop patch100, 110 (included in new release)
  164. * Sat May 30 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.4.0-2
  165. - Merge spec file for vl4 and for vl5
  166. - add patch100, 110 from upstream svn
  167. * Sat May 23 2009 tomcat <webmaster2@tomcat.nyanta.jp> 2.4.0-1vl4
  168. - new upstream release
  169. * Fri Mar 06 2009 tomcat <webmaster2@tomcat.nyanta.jp> 2.3.0-1vl4
  170. - new upstream release
  171. * Fri Jan 16 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.1.0-2vl4
  172. - fix icon file install method
  173. * Sun Dec 28 2008 tomcat <webmaster2@tomcat.nyanta.jp> 2.1.0-1vl4
  174. - new upstream release
  175. * Mon Nov 24 2008 tomcat <webmaster2@tomcat.nyanta.jp> 2.0.3-1vl4
  176. - new upstream release
  177. * Wed Oct 01 2008 tomcat <webmaster2@tomcat.nyanta.jp> 2.0.2-1vl4
  178. - rebuild for official
  179. * Sun Sep 21 2008 tomcat <webmaster2@tomcat.nyanta.jp> 2.0.2-1tomvl4
  180. - update to 2.0.2
  181. * Sun Feb 03 2008 tomcat <webmaster2@tomcat.nyanta.jp> 1.9.8-1tom3
  182. - build with gnutls-1.4.1(official package)
  183. * Sun Dec 30 2007 tomcat <webmaster2@tomcat.nyanta.jp> 1.9.8-1tom2
  184. - build with gnutls-1.6.3(unofficial package)
  185. * Sat Dec 29 2007 tomcat <webmaster2@tomcat.nyanta.jp> 1.9.8-1tom1
  186. - new upstream release
  187. - drop Patch0 (jd-1.9.5-desktop-vi.patch)
  188. - add Source1 (jd-vi.desktop)
  189. * Fri Nov 23 2007 tomcat <webmaster2@tomcat.nyanta.jp> 1.9.7-1tom1
  190. - new upstream release
  191. * Sat Oct 06 2007 tomcat <webmaster2@tomcat.nyanta.jp> 1.9.6-1tom1
  192. - new upstream release
  193. * Wed Jul 04 2007 tomcat <webmaster2@tomcat.nyanta.jp> 1.9.5-1tom2
  194. - modified jd-vi.spec
  195. - add patch0
  196. * Sun Jul 01 2007 tomcat <webmaster2@tomcat.nyanta.jp> 1.9.5-1
  197. - new upstream release
  198. * Wed May 23 2007 tomcat <webmaster2@tomcat.nyanta.jp> 1.8.8-2
  199. - fix the Help file is not installed
  200. * Wed Apr 04 2007 tomcat <webmaster2@tomcat.nyanta.jp> 1.8.8-1
  201. - new upstream release
  202. * Sat Feb 03 2007 tomcat <webmaster2@tomcat.nyanta.jp> 1.8.5-1
  203. - new upstream release
  204. * Mon Dec 18 2006 tomcat <webmaster2@tomcat.nyanta.jp> 1.8.1-1
  205. - new upstream release
  206. * Thu Nov 30 2006 tomcat <webmaster2@tomcat.nyanta.jp> 1.8.0-1
  207. - initial build for Vine Linux
  208. * Sun Mar 9 2006 Houritsuchu <houritsuchu@hotmail.com>
  209. - Version up.
  210. - add icon
  211. * Sat Feb 25 2006 Houritsuchu <houritsuchu@hotmail.com>
  212. - first