vine-release-vl.spec 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. %define vine_version 7.0
  2. %define vine_codename Ausone
  3. %define vine_codename_lsb %(echo %{vine_codename} | sed -e 's/ //g')
  4. %define rh_version 10
  5. %define lsb_version 4.0
  6. # new vine linux release number
  7. %define _dist_release vl%(echo %{vine_version} | cut -f1 -d.)
  8. # (vineseed|vinebeta|vinecr)
  9. %define vineseed 1
  10. #define vinebeta 1
  11. #define vinecr 1
  12. # release=1+, alpha/beta=0.1+, seed=0.0.1+
  13. %define relbase 0.0.2
  14. Summary: Vine Linux release file
  15. Summary(ja): Vine Linux リリースファイル
  16. Name: vine-release
  17. Version: %{vine_version}%{?vinecr:CR}
  18. Release: %{relbase}%{_dist_release}%{?vineseed:.seed}%{?vinebeta:.beta%{vinebeta}}
  19. License: BSD
  20. Group: System Environment/Base
  21. Distribution: Vine Linux
  22. Vendor: Project Vine
  23. Packager: daisuke
  24. BuildRoot: /tmp/%{name}-%{version}-root
  25. BuildArchitectures: noarch
  26. Obsoletes: redhat-release
  27. Provides: redhat-release = %{rh_version}
  28. %description
  29. Vine Linux release file
  30. %description -l ja
  31. Vine Linux リリースファイル
  32. %install
  33. mkdir -p ${RPM_BUILD_ROOT}/etc
  34. echo "Vine Linux %{vine_version} %{?vinecr:CR }%{?vineseed:(+VineSeed) }%{?vinebeta:(BETA) }(%{vine_codename})" > ${RPM_BUILD_ROOT}/etc/vine-release
  35. ln -sf vine-release ${RPM_BUILD_ROOT}/etc/system-release
  36. cat <<EOF > ${RPM_BUILD_ROOT}/etc/os-release
  37. PRETTY_NAME="Vine Linux %{vine_version} %{?vinecr:CR }%{?vineseed:(+VineSeed) }%{?vinebeta:(BETA) }(%{vine_codename})"
  38. NAME="Vine Linux"
  39. VERSION="%{vine_version} %{?vinecr:CR }%{?vineseed:(+VineSeed) }%{?vinebeta:(BETA) }(%{vine_codename})"
  40. ID="vine"
  41. VERSION_ID="%{vine_version}"
  42. ANSI_COLOR="0;34"
  43. CPE_NAME="cpe:/o:vinelinux:vine:%{vine_version}"
  44. HOME_URL="https://vinelinux.org/"
  45. BUG_REPORT_URL="http://mantis.vinelinux.org/"
  46. EOF
  47. cat <<EOF > ${RPM_BUILD_ROOT}/etc/lsb-release
  48. LSB_VERSION="%{lsb_version}"
  49. DISTRIB_ID="Vine"
  50. DISTRIB_RELEASE="%{version}"
  51. DISTRIB_CODENAME="%{vine_codename_lsb}"
  52. DISTRIB_DESCRIPTION="Vine Linux %{version}"
  53. EOF
  54. %pre
  55. if [ -f /etc/vine-release ]; then
  56. if [ ! -z "`grep CR /etc/vine-release`" ]; then
  57. touch /tmp/vine-cr
  58. fi
  59. fi
  60. %files
  61. %defattr(-,root,root)
  62. /etc/vine-release
  63. /etc/system-release
  64. /etc/os-release
  65. /etc/lsb-release
  66. %changelog
  67. * Sun Oct 29 2017 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 7.0-0.0.2vl7.seed
  68. - added /etc/{os,system}-release.
  69. * Sat Aug 06 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 7.0-0.0.1vl7.seed
  70. - build for VineSeed(vl7)
  71. * Sat Jul 09 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 6.0-1vl6
  72. - build for Vine Linux 6 release
  73. * Tue Apr 19 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 6.0-0.1vl6.beta
  74. - build for Vine Linux 6 Beta
  75. - add /etc/lsb-version
  76. * Tue Aug 25 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 6.0-0.0.1vl6.seed
  77. - build for VineSeed (vl6)
  78. * Wed Aug 05 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 5.0-1vl5
  79. - build for Vine Linux 5 release
  80. * Mon Jul 06 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 5.0-0.1vl5.beta
  81. - build for Vine Linux 5 Beta
  82. * Mon Mar 23 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 5.0-0.0.2vl5.seed
  83. - spec in utf-8
  84. * Tue Mar 18 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 5.0-0.0.1vl5.seed
  85. - build for VineSeed
  86. * Sat Dec 02 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 4.0-0vl1.seed
  87. - new upstream release
  88. * Tue Oct 24 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 4.0-0vl1
  89. - build for Vine Linux 4.0
  90. * Sat Oct 14 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 4.0-0vl0.beta4
  91. - build for Vine Linux 4.0 BETA4
  92. * Sat Sep 16 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 4.0-0vl0.beta3
  93. - build for Vine Linux 4.0 BETA3
  94. * Fri Sep 01 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 4.0-0vl0.beta2
  95. - build for Vine Linux 4.0 BETA2
  96. * Wed Aug 30 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 4.0-0vl0.beta1
  97. - build for Vine Linux 4.0 BETA1
  98. * Thu Sep 22 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 3.2-0vl1.seed
  99. - build for VineSeed
  100. * Fri Sep 16 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 3.2CR-0vl1
  101. - Vine Linux 3.2CR
  102. * Thu Aug 18 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 3.2-0vl1
  103. - Vine Linux 3.2
  104. * Sat Oct 30 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 3.1CR-0vl1
  105. - Vine Linux 3.1CR
  106. * Tue Aug 03 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 3.0-0vl1.seed
  107. - build for VineSeed
  108. - remove redhat-release
  109. * Wed Jul 28 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 3.0-0vl1
  110. - Vine Linux 3.0
  111. * Sat Jul 24 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 2.98-0vl1
  112. - Vine Linux 2.98/3.0RC1
  113. * Sat Jul 17 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 2.96-0vl1
  114. - Vine Linux 2.96
  115. * Tue Jun 29 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 2.95-0vl1
  116. - Vine Linux 2.95
  117. * Thu Jun 17 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 2.93-0vl1
  118. - Vine Linux 2.93
  119. * Mon Jun 7 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 2.92-0vl1
  120. - Vine Linux 2.92
  121. * Thu Apr 4 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 2.91-1
  122. - Vine Linux 2.91
  123. * Tue May 27 2003 Daisuke SUZUKI <daisuke@vinelinux.org> 2.90-1
  124. - Vine Linux 2.90
  125. - include dummy /etc/redhat-release, Obsoletes: redhat-release
  126. * Sun Oct 27 2002 Daisuke SUZUKI <daisuke@vinelinux.org> 2.6-2
  127. - fixed typo :(
  128. * Fri Sep 20 2002 Daisuke SUZUKI <daisuke@vinelinux.org> 2.6-1
  129. - Vine Linux 2.6 release
  130. * Sun Mar 31 2002 Daisuke SUZUKI <daisuke@vinelinux.org> 2.5-1
  131. - Vine Linux 2.5 release
  132. * Sun Jan 6 2002 Daisuke SUZUKI <daisuke@vinelinux.org> 2.4.99-1
  133. - Vine Linux 2.4.99 (2.5beta) release
  134. * Wed Jan 17 2001 Daisuke SUZUKI <daisuke@vinelinux.org> 2.1.5-1CR
  135. - Vine Linux 2.1.5CR release
  136. * Fri Dec 15 2000 Daisuke SUZUKI <daisuke@vinelinux.org> 2.1.4-1CR
  137. - Vine Linux 2.1.4CR (Hancom Special Edition) release
  138. * Sat Oct 14 2000 Daisuke SUZUKI <daisuke@vinelinux.org> 2.1-1CR
  139. - Vine Linux 2.1CR release
  140. * Thu Oct 12 2000 Daisuke SUZUKI <daisuke@vinelinux.org> 2.1-1
  141. - Vine Linux 2.1 release
  142. * Tue Oct 3 2000 Daisuke SUZUKI <daisuke@vinelinux.org>
  143. - Vine Linux 2.1beta
  144. * Sun Apr 2 2000 Daisuke SUZUKI <daisuke@vinelinux.org>
  145. - Vine Linux 2.0
  146. * Thu Feb 17 2000 Daisuke SUZUKI <daisuke@vinelinux.org>
  147. - added %post to remove libwcsmbs.so from ld.so.preload
  148. * Tue Jan 25 2000 Daisuke SUZUKI <daisuke@vinelinux.org>
  149. - Vine Linux 2.0 beta
  150. * Mon Jan 10 2000 Daisuke SUZUKI <daisuke@vinelinux.org>
  151. - Vine Linux 2.0 alpha
  152. * Mon Jan 10 2000 Jun Nishii <jun@vinelinux.org>
  153. - added %defattr
  154. - change group
  155. * Sat Jul 17 1999 Hideya Hane <vine@flatout.org>
  156. - sync Vine Linux 1.9
  157. * Fri May 14 1999 Hideya Hane <vine@flatout.org>
  158. - sync Vine Linux 1.1
  159. * Fri Mar 19 1999 Hideya Hane <vine@flatout.org>
  160. - sync Vine Linux 1.0
  161. * Mon Dec 28 1998 Hideya Hane <vine@flatout.org>
  162. - sync Vine Linux 1.0beta
  163. * Mon Oct 16 1998 Hideya Hane <vine@flatout.org>
  164. - sync RHL-5.2
  165. * Mon Oct 10 1998 Hideya Hane <vine@flatout.org>
  166. - add tcl/tk jp
  167. - add tgif
  168. * Mon Oct 10 1998 Hideya Hane <vine@flatout.org>
  169. - initial release