jd-vl.spec 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. ### for Vine Linux 4.x / 5.x ###
  2. %define pkg_version 2.6.0
  3. %define strtag 100208
  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. # upstream svn patches
  24. # Patch100: jd-2.5.0_http_201.patch
  25. # Patch100: jd-2.4.0_close_err_image.patch
  26. # Patch110: jd-2.4.0_tag_drawing_fix.patch
  27. License: GPL
  28. Group: Applications/Internet
  29. URL: http://jd4linux.sourceforge.jp/
  30. Requires: gtkmm2 >= 2.8
  31. Requires: glibmm
  32. Requires: zlib >= 1.2
  33. Requires: pango
  34. Requires: gnutls >= 1.2
  35. Prereq: desktop-file-utils
  36. BuildRequires: libtool, automake, autoconf
  37. BuildRequires: gtkmm2-devel >= 2.8
  38. BuildRequires: glibmm-devel
  39. BuildRequires: zlib-devel >= 1.2
  40. BuildRequires: XOrg-devel
  41. BuildRequires: pango-devel
  42. BuildRequires: gnutls-devel >= 1.2
  43. %if %{sound}
  44. BuildRequires: alsa-lib-devel
  45. %endif
  46. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  47. Packager: tomcat, iwamoto
  48. Vendor: Project Vine
  49. Distribution: Vine Linux
  50. %description
  51. JD is a 2ch browser based on gtkmm2.
  52. %description -l ja
  53. JD は gtkmm2 ベースの2ちゃんねる用ブラウザです。
  54. %prep
  55. %setup -q -n %{name}-%{version}-%{strtag}
  56. # find . -name .svn | sort -r | xargs %{__rm} -rf
  57. # Patch 100 - 200 are upstream patches
  58. # %patch100 -p2 -b .close_err_image
  59. %build
  60. autoreconf -i
  61. ## set TZ for __TIME__
  62. export TZ='Asia/Tokyo'
  63. %if %{sound}
  64. %configure --with-alsa
  65. %else
  66. %configure
  67. %endif
  68. %{__make} %{?_smp_mflags}
  69. %install
  70. %{__rm} -rf ${RPM_BUILD_ROOT}
  71. %{__make} install DESTDIR=${RPM_BUILD_ROOT}
  72. %{__mkdir_p} ${RPM_BUILD_ROOT}%{_datadir}/applications
  73. %{__install} -p -m644 %{SOURCE1} ${RPM_BUILD_ROOT}%{_datadir}/applications/jd.desktop
  74. for i in 16 32 48 96;do \
  75. %{__mkdir_p} ${RPM_BUILD_ROOT}%{icondir}/$i"x"$i/apps; \
  76. %{__install} -p -m644 src/icons/%{name}$i.png ${RPM_BUILD_ROOT}%{icondir}/$i"x"$i/apps/%{name}.png; \
  77. done
  78. %clean
  79. %{__rm} -rf ${RPM_BUILD_ROOT}
  80. %post
  81. update-desktop-database %{_datadir}/applications
  82. %postun
  83. update-desktop-database %{_datadir}/applications
  84. %files
  85. %defattr(-,root,root)
  86. %doc COPYING ChangeLog README
  87. %{_bindir}/%{name}
  88. %{_datadir}/applications/%{name}.desktop
  89. %{_datadir}/pixmaps/%{name}.png
  90. %{icondir}/*/apps/%{name}.png
  91. %changelog
  92. * Mon Feb 8 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.6.0-1
  93. - new upstream release
  94. * Sat Feb 6 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.6.0-0.100130
  95. - 2.6.0 rc1 (not for release)
  96. * Tue Dec 29 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.5.5-1
  97. - new upstream release
  98. * Mon Dec 28 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.5.5-0.091225
  99. - 2.5.5 rc1 (not for release)
  100. * Wed Dec 23 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.5.5-0.091220
  101. - 2.5.5 beta (not for release)
  102. - drop patch100 (included in new release)
  103. * Sat Dec 12 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.5.0-1
  104. - new upstream release
  105. * Mon Sep 28 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.4.2-1
  106. - new upstream release
  107. * Tue Sep 22 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp>
  108. - 2.4.2-rc090921-0
  109. - for test
  110. * Mon Jul 13 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.4.1-1
  111. - new upstream release
  112. * Sat Jul 11 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp>
  113. - 2.4.1-rc090705-1
  114. - new upstream rc release for testing
  115. - drop patch100, 110 (included in new release)
  116. * Sat May 30 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.4.0-2
  117. - Merge spec file for vl4 and for vl5
  118. - add patch100, 110 from upstream svn
  119. * Sat May 23 2009 tomcat <webmaster2@tomcat.nyanta.jp> 2.4.0-1vl4
  120. - new upstream release
  121. * Fri Mar 06 2009 tomcat <webmaster2@tomcat.nyanta.jp> 2.3.0-1vl4
  122. - new upstream release
  123. * Fri Jan 16 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.1.0-2vl4
  124. - fix icon file install method
  125. * Sun Dec 28 2008 tomcat <webmaster2@tomcat.nyanta.jp> 2.1.0-1vl4
  126. - new upstream release
  127. * Mon Nov 24 2008 tomcat <webmaster2@tomcat.nyanta.jp> 2.0.3-1vl4
  128. - new upstream release
  129. * Wed Oct 01 2008 tomcat <webmaster2@tomcat.nyanta.jp> 2.0.2-1vl4
  130. - rebuild for official
  131. * Sun Sep 21 2008 tomcat <webmaster2@tomcat.nyanta.jp> 2.0.2-1tomvl4
  132. - update to 2.0.2
  133. * Sun Feb 03 2008 tomcat <webmaster2@tomcat.nyanta.jp> 1.9.8-1tom3
  134. - build with gnutls-1.4.1(official package)
  135. * Sun Dec 30 2007 tomcat <webmaster2@tomcat.nyanta.jp> 1.9.8-1tom2
  136. - build with gnutls-1.6.3(unofficial package)
  137. * Sat Dec 29 2007 tomcat <webmaster2@tomcat.nyanta.jp> 1.9.8-1tom1
  138. - new upstream release
  139. - drop Patch0 (jd-1.9.5-desktop-vi.patch)
  140. - add Source1 (jd-vi.desktop)
  141. * Fri Nov 23 2007 tomcat <webmaster2@tomcat.nyanta.jp> 1.9.7-1tom1
  142. - new upstream release
  143. * Sat Oct 06 2007 tomcat <webmaster2@tomcat.nyanta.jp> 1.9.6-1tom1
  144. - new upstream release
  145. * Wed Jul 04 2007 tomcat <webmaster2@tomcat.nyanta.jp> 1.9.5-1tom2
  146. - modified jd-vi.spec
  147. - add patch0
  148. * Sun Jul 01 2007 tomcat <webmaster2@tomcat.nyanta.jp> 1.9.5-1
  149. - new upstream release
  150. * Wed May 23 2007 tomcat <webmaster2@tomcat.nyanta.jp> 1.8.8-2
  151. - fix the Help file is not installed
  152. * Wed Apr 04 2007 tomcat <webmaster2@tomcat.nyanta.jp> 1.8.8-1
  153. - new upstream release
  154. * Sat Feb 03 2007 tomcat <webmaster2@tomcat.nyanta.jp> 1.8.5-1
  155. - new upstream release
  156. * Mon Dec 18 2006 tomcat <webmaster2@tomcat.nyanta.jp> 1.8.1-1
  157. - new upstream release
  158. * Thu Nov 30 2006 tomcat <webmaster2@tomcat.nyanta.jp> 1.8.0-1
  159. - initial build for Vine Linux
  160. * Sun Mar 9 2006 Houritsuchu <houritsuchu@hotmail.com>
  161. - Version up.
  162. - add icon
  163. * Sat Feb 25 2006 Houritsuchu <houritsuchu@hotmail.com>
  164. - first