vine-keyring-vl.spec 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317
  1. %define rpmhome %{_prefix}/lib/rpm
  2. %define pubringdir %{rpmhome}/gnupg
  3. %define keyringdate 20210323
  4. Summary: The gnupg keyring for Vine Linux
  5. Summary(ja): Vine Linux 用の GnuPG 鍵輪
  6. Name: vine-keyring
  7. Version: 2.%{keyringdate}
  8. Release: 1%{?_dist_release}
  9. Vendor: Project Vine
  10. Distribution: Vine Linux
  11. Packager: daisuke
  12. License: distributable without modification
  13. Group: system
  14. Source0: %{name}-%{keyringdate}.tar.xz
  15. Source10: gpg-import.sh
  16. Source11: gpg-import.lua
  17. Source12: gpg-import.conf
  18. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  19. BuildArch: noarch
  20. Requires: gnupg
  21. Requires(pre): sh-utils, gnupg, fileutils
  22. AutoReqProv: off
  23. # delete old vulnerable keys
  24. Obsoletes: gpg-pubkey = f061a290-4467fe68
  25. %description
  26. This package contains the gnup keyring that is used to sign
  27. Vine Linux rpm packages by Vine Linux official developpers.
  28. It will be installed in %{rpmhome}/gnupg/pubring.gpg.
  29. This gpg keyring should include following developpers.
  30. - Project Vine
  31. - VineSeed/VineSeedPlus developpers
  32. - VinePlus developpers
  33. - Security Watch Team
  34. - Documentation Team
  35. ..
  36. %description -l ja
  37. このパッケージには、Vine Linux のオフィシャルの開発者が rpm パッケージ
  38. に署名するために使用している GnuPG の公開鍵が鍵輪として、以下の場所に
  39. インストールされています。(%{rpmhome}/gnupg/pubring.gpg)
  40. Vine Linux の開発者の公開鍵はかならずこの鍵輪に含まれている必要があり
  41. ます。
  42. %prep
  43. %setup -n %{name}
  44. %build
  45. %install
  46. rm -rf $RPM_BUILD_ROOT
  47. mkdir -p $RPM_BUILD_ROOT%{pubringdir}
  48. install %{name}.gpg* $RPM_BUILD_ROOT%{pubringdir}
  49. touch $RPM_BUILD_ROOT%{pubringdir}/pubring.gpg
  50. # install gpg-import.lua staff
  51. mkdir -p $RPM_BUILD_ROOT%{rpmhome}
  52. install -m744 %{SOURCE10} $RPM_BUILD_ROOT%{rpmhome}
  53. mkdir -p $RPM_BUILD_ROOT%{_datadir}/apt/scripts/
  54. mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/apt/apt.conf.d/
  55. install %{SOURCE11} $RPM_BUILD_ROOT%{_datadir}/apt/scripts/
  56. install %{SOURCE12} $RPM_BUILD_ROOT%{_sysconfdir}/apt/apt.conf.d/
  57. %post
  58. if [ ! -f %{pubringdir}/pubring.gpg ]; then
  59. touch %{pubringdir}/pubring.gpg
  60. fi
  61. gpg -q --batch --no-options --homedir %{pubringdir} < /dev/null > /dev/null 2>&1 ||:
  62. gpg -q --batch --no-options --no-default-keyring --no-permission-warning \
  63. --secret-keyring /dev/null --homedir %{pubringdir} \
  64. --keyring %{pubringdir}/vine-keyring.gpg --export -a | \
  65. gpg -q --batch --no-options --no-default-keyring --no-permission-warning \
  66. --secret-keyring /dev/null --homedir %{pubringdir} \
  67. --keyring %{pubringdir}/pubring.gpg --import ||:
  68. touch %{pubringdir}/.need_to_import
  69. exit 0
  70. %files
  71. %defattr(644,root,root)
  72. %attr(755,root,root) %dir %{pubringdir}
  73. %ghost %{pubringdir}/pubring.gpg
  74. %config %{pubringdir}/vine-keyring.gpg
  75. %config %{pubringdir}/vine-keyring.gpg.sha1sum.gpg
  76. %attr(744,root,root) %{rpmhome}/gpg-import.sh
  77. %attr(755,root,root) %{_datadir}/apt/scripts/*
  78. %{_sysconfdir}/apt/apt.conf.d/*
  79. %changelog
  80. * Tue Mar 23 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.20210323-1
  81. - updated gpg-import.sh: don't leave garbage.
  82. - refreshed all keys from keyserver.
  83. * Sun Oct 26 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 2.14-1
  84. - update vine-keyring
  85. - add ken (new key)
  86. * Sat Aug 30 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 2.13-1
  87. - update vine-keyring
  88. - add inagaki (new key)
  89. - refresh all keys from keyserver
  90. * Mon Feb 25 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 2.12-1
  91. - update vine-keyring
  92. - add tomop (new key)
  93. * Fri Jul 22 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.11-1
  94. - refresh all keys from keyserver
  95. * Tue Mar 08 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.10-1
  96. - update vine-keyring
  97. - add yasumichi (new key)
  98. - refresh all keys from keyserver
  99. * Wed Dec 08 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.9-1
  100. - update vine-keyring
  101. - add Jiro Matsuzawa
  102. - add iwaim (new key)
  103. - refresh all keys from keyserver
  104. * Thu Sep 09 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.8-1
  105. - update vine-keyring
  106. - add daisuke (new key)
  107. - add shaolin (new key)
  108. - add yasumichi (new key)
  109. - add munepi (new key)
  110. - refresh all keys from keyserver
  111. * Wed Feb 10 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.7-2
  112. - fix build on x86_64
  113. * Wed Feb 10 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.7-1
  114. - add new uid
  115. * Sun Nov 29 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.6-1
  116. - update vine-keyring
  117. - replace takemikaduchi key by new key...
  118. * Sun Nov 29 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.5-1
  119. - update vine-keyring
  120. - add Takemikaduchi
  121. * Wed Sep 23 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.4-1
  122. - update vine-keyring
  123. - new key for Toshiaki Ara
  124. - refresh keys from keyserver
  125. * Sun Sep 20 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3-1
  126. - update vine-keyring
  127. - add new sigs, refresh keys from keyserver
  128. - add Toshiaki Ara
  129. * Wed Jul 29 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2-1
  130. - update vine-keyring
  131. - add new uid, sigs
  132. - refresh keys from keyserver
  133. * Mon Dec 08 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1-1
  134. - update vine-keyring
  135. - add Toshiharu Kudoh, tomcat
  136. * Sun Aug 17 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0-1
  137. - new versioning policy, spec in utf8
  138. * Mon Mar 17 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0-0vl19
  139. - update vine-keyring
  140. - add Munehiro Yamamoto, TOSHI
  141. * Thu Jan 24 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0-0vl18
  142. - update vine-keyring
  143. - add Kunio Murasawa, yamamoto, Masahiro INOUE
  144. * Sat Aug 11 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0-0vl17
  145. - update vine-keyring
  146. * Sat Jan 20 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0-0vl16
  147. - update vine-keyring
  148. - add Hideki MIWA, Susumu Tanimura
  149. * Sat Nov 18 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0-0vl15
  150. - update vine-keyring
  151. - add Takuya Kobayashi
  152. * Mon Sep 18 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0-0vl14
  153. - update gpg-import.sh
  154. - set "HOME=/root" on exec gpg.
  155. * Wed Sep 13 2006 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 2.0-0vl13
  156. - change Group to System Environment/Libraries. <BTS:VineLinux:163>
  157. * Tue Jun 06 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0-0vl12
  158. - update vine-keyring
  159. - add kazutaka harada
  160. * Tue May 23 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0-0vl11
  161. - update vine-keyring
  162. - add Takahiro Adachi
  163. * Sat May 20 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0-0vl10
  164. - update vine-keyring
  165. - add NAKAMURA Kenta's new key, revoke old one.
  166. * Tue May 16 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0-0vl9
  167. - move gpg-import.lua to %%{_datadir}/apt/scripts
  168. * Tue May 16 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0-0vl8
  169. - update vine-keyring
  170. - add Shoji Matsumoto
  171. * Wed Dec 21 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0-0vl7
  172. - update vine-keyring
  173. - add KATO Masashi
  174. * Tue Dec 20 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0-0vl6
  175. - add gpg-import.{lua,conf,sh} to import gpg pubkeys
  176. in apt's post rpm transaction.
  177. - add flag to check new gpg keys
  178. * Tue Dec 20 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0-0vl5
  179. - disable gpg pubkey import (it may cause rpmdb coprruption..)
  180. * Sun Dec 18 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0-0vl4
  181. - make /usr/lib/rpm/gnupg/pubring.gpg for apt.
  182. * Sun Dec 18 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0-0vl3
  183. - update %%post scripts
  184. * Sun Dec 18 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0-0vl2
  185. - add add gpg public keys as %%pubkey in %%files
  186. - update vine-keyring
  187. - add KITA Toshihiro (see keyring fo details)
  188. * Fri Dec 16 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0-0vl1
  189. - modified keyring import mechanism to support rpm-4.4
  190. * Mon Oct 31 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0-0vl20
  191. - update vine-keyring
  192. - add Atsushi SHICHI, NAKAMURA Kenta (see keyring for details)
  193. * Thu Aug 25 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0-0vl19
  194. - update vine-keyring
  195. - add Seiya Nishizawa (see keyring for details)
  196. * Mon Apr 04 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0-0vl18
  197. - update vine-keyring
  198. - add Shu KONNO (see keyring for details)
  199. * Thu Feb 24 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0-0vl17
  200. - update vine-keyring
  201. - add Yasumichi Akahoshi, TANAKA hiroaki (see keyring for details)
  202. * Sun Nov 28 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0-0vl16
  203. - update vine-keyring
  204. - add Satoshi IWAMOTO (see keyring for details)
  205. * Tue Oct 05 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0-0vl15
  206. - update vine-keyring
  207. - add Takeyuki Fujioka (see keyring for details)
  208. * Fri Sep 24 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0-0vl14
  209. - update vine-keyring
  210. - add USAMI kosuke (see keyring for details)
  211. * Sat Aug 21 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0-0vl13
  212. - update vine-keyring
  213. - add UECHI Yasumasa, KANEKO Seiji (see keyring for details)
  214. * Tue Aug 17 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0-0vl12
  215. - update vine-keyring
  216. - add IKEDA Katsumi, HOTTA Michihide (see keyring for detail)
  217. * Thu Aug 05 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0-0vl11
  218. - update vine-keyring
  219. - add Ryoichi INAGAKI (see keyring for detail)
  220. * Fri Jun 18 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0-0vl10
  221. - update vine-keyring
  222. - add Hiroaki Irokawa (see keyring for detail)
  223. * Mon Apr 19 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0-0vl9
  224. - update vine-keyring
  225. - add NISHIMURA Daisuke (see keyring for detail)
  226. * Sat Apr 17 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0-0vl8
  227. - update vine-keyring
  228. - add AKIYAMA Kazuhito (see keyring for detail)
  229. * Fri Apr 16 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0-0vl7
  230. - update vine-keyring
  231. - add KAZUKI SHIMURA (see keyring for detail)
  232. * Wed Apr 14 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0-0vl6
  233. - update vine-keyring
  234. - add Tomoya Taka (see keyring for detail)
  235. * Sun Apr 11 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0-0vl5
  236. - update vine-keyring
  237. - add tkoba, iwai, tomop (see keyring for details)
  238. * Fri Apr 09 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0-0vl4
  239. - add "--homedir %%{pubringdir}" to gpg option in %%post script.
  240. * Thu Apr 08 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0-0vl3
  241. - add "--secret-keyring /dev/null" to gpg option in %%post script.
  242. * Wed Apr 07 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0-0vl2
  243. - update vine-keyring, add signed md5sum file.
  244. * Wed Apr 07 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0-0vl1
  245. - initial build for Vine Linux, partly based on SUSE's suse-build-key package.