kwiki.spec 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708
  1. ##
  2. ## kwiki.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2005 The OpenPKG Project <http://www.openpkg.org/>
  4. ## Copyright (c) 2000-2005 Ralf S. Engelschall <rse@engelschall.com>
  5. ## Copyright (c) 2000-2005 Cable & Wireless <http://www.cw.com/>
  6. ##
  7. ## Permission to use, copy, modify, and distribute this software for
  8. ## any purpose with or without fee is hereby granted, provided that
  9. ## the above copyright notice and this permission notice appear in all
  10. ## copies.
  11. ##
  12. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  13. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  14. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  15. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  16. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  17. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  18. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  19. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  20. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  21. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  22. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  23. ## SUCH DAMAGE.
  24. ##
  25. # package versions
  26. %define V_spoon 0.21
  27. %define V_kwiki 0.37
  28. %define V_kwiki_modperl 0.03
  29. %define V_kwiki_anchorlink 0.02
  30. %define V_kwiki_archive_rcs 0.14
  31. %define V_kwiki_archive_cvs 0.102
  32. %define V_kwiki_autoformat 0.02
  33. %define V_kwiki_cache 0.11
  34. %define V_kwiki_revisions 0.14
  35. %define V_kwiki_diff 0.02
  36. %define V_kwiki_recentchanges 0.13
  37. %define V_kwiki_recentchangesrss 0.05
  38. %define V_kwiki_search 0.12
  39. %define V_kwiki_gdgraphgenerator 0.03
  40. %define V_kwiki_googlelink 0.01
  41. %define V_kwiki_icons_crystal 0.12
  42. %define V_kwiki_icons_gnome 0.14
  43. %define V_kwiki_image 0.01
  44. %define V_kwiki_mindmap 0.08
  45. %define V_kwiki_newpage 0.12
  46. %define V_kwiki_notify_mail 0.03
  47. %define V_kwiki_pageinclude 0.01
  48. %define V_kwiki_paragraphblocks 0.12
  49. %define V_kwiki_preformattedblocks 0.11
  50. %define V_kwiki_shellblocks 0.02
  51. %define V_kwiki_shortcutlinks 0.02
  52. %define V_kwiki_toolbar_list 0.01
  53. %define V_kwiki_username 0.14
  54. %define V_kwiki_userpreferences 0.13
  55. %define V_kwiki_vimmode 0.04
  56. %define V_kwiki_authoronlypageediting 0.01
  57. %define V_kwiki_breadcrumbs 0.12
  58. %define V_kwiki_comments 0.06
  59. %define V_kwiki_edit_requireusername 0.02
  60. %define V_kwiki_favorites 0.13
  61. %define V_kwiki_guestbook 0.13
  62. %define V_kwiki_htmlblocks 0.11
  63. %define V_kwiki_livesearch 0.06
  64. %define V_kwiki_pagetemplate 0.03
  65. %define V_kwiki_email 0.02
  66. %define V_kwiki_formatter_pod 0.11
  67. %define V_kwiki_podblocks 0.11
  68. %define V_kwiki_scode 0.03
  69. %define V_kwiki_theme_klassik 0.12
  70. %define V_kwiki_timezone 0.11
  71. %define V_kwiki_users_remote 0.01
  72. %define V_kwiki_pageprivacy 0.10
  73. %define V_kwiki_navigationtoolbar 0.02
  74. %define V_kwiki_configblocks 0.01
  75. %define V_kwiki_infobox 0.02
  76. %define V_kwiki_theme_columnlayout 0.08
  77. %define V_kwiki_theme_hlb 0.01
  78. %define V_kwiki_theme_tabnav 0.01
  79. %define V_kwiki_theme_bluepole 1.00
  80. %define V_kwiki_foreignlinkglyphs 0.01
  81. %define V_kwiki_backlinks 0.03
  82. %define V_kwiki_fetchrss 0.05
  83. # package information
  84. Name: kwiki
  85. Summary: Kwiki Wiki Engine
  86. URL: http://www.kwiki.org/
  87. Vendor: Brian Ingerson et al.
  88. Packager: The OpenPKG Project
  89. Distribution: OpenPKG
  90. Class: EVAL
  91. Group: Web
  92. License: GPL/Artistic
  93. Version: %{V_kwiki}
  94. Release: 20050131
  95. # list of sources
  96. Source0: http://www.cpan.org/authors/id/I/IN/INGY/Spoon-%{V_spoon}.tar.gz
  97. Source1: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-%{V_kwiki}.tar.gz
  98. Source2: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-AnchorLink-%{V_kwiki_anchorlink}.tar.gz
  99. Source3: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Archive-Rcs-%{V_kwiki_archive_rcs}.tar.gz
  100. Source4: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Autoformat-%{V_kwiki_autoformat}.tar.gz
  101. Source5: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Cache-%{V_kwiki_cache}.tar.gz
  102. Source6: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Revisions-%{V_kwiki_revisions}.tar.gz
  103. Source7: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Diff-%{V_kwiki_diff}.tar.gz
  104. Source8: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-RecentChanges-%{V_kwiki_recentchanges}.tar.gz
  105. Source9: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-RecentChangesRSS-%{V_kwiki_recentchangesrss}.tar.gz
  106. Source10: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Search-%{V_kwiki_search}.tar.gz
  107. Source11: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-GDGraphGenerator-%{V_kwiki_gdgraphgenerator}.tar.gz
  108. Source12: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-GoogleLink-%{V_kwiki_googlelink}.tar.gz
  109. Source13: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Icons-Crystal-%{V_kwiki_icons_crystal}.tar.gz
  110. Source14: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Icons-Gnome-%{V_kwiki_icons_gnome}.tar.gz
  111. Source15: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Image-%{V_kwiki_image}.tar.gz
  112. Source16: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-MindMap-%{V_kwiki_mindmap}.tar.gz
  113. Source17: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-ModPerl-%{V_kwiki_modperl}.tar.gz
  114. Source18: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-NewPage-%{V_kwiki_newpage}.tar.gz
  115. Source19: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Notify-Mail-%{V_kwiki_notify_mail}.tar.gz
  116. Source20: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-PageInclude-%{V_kwiki_pageinclude}.tar.gz
  117. Source21: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-ParagraphBlocks-%{V_kwiki_paragraphblocks}.tar.gz
  118. Source22: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-PreformattedBlocks-%{V_kwiki_preformattedblocks}.tar.gz
  119. Source23: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-ShellBlocks-%{V_kwiki_shellblocks}.tar.gz
  120. Source24: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-ShortcutLinks-%{V_kwiki_shortcutlinks}.tar.gz
  121. Source25: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Toolbar-List-%{V_kwiki_toolbar_list}.tar.gz
  122. Source26: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-UserName-%{V_kwiki_username}.tar.gz
  123. Source27: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-UserPreferences-%{V_kwiki_userpreferences}.tar.gz
  124. Source28: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-VimMode-%{V_kwiki_vimmode}.tar.gz
  125. Source29: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Archive-Cvs-%{V_kwiki_archive_cvs}.tar.gz
  126. Source30: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-AuthorOnlyPageEditing-%{V_kwiki_authoronlypageediting}.tar.gz
  127. Source31: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-BreadCrumbs-%{V_kwiki_breadcrumbs}.tar.gz
  128. Source32: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Comments-%{V_kwiki_comments}.tar.gz
  129. Source33: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Edit-RequireUserName-%{V_kwiki_edit_requireusername}.tar.gz
  130. Source34: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Favorites-%{V_kwiki_favorites}.tar.gz
  131. Source35: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-GuestBook-%{V_kwiki_guestbook}.tar.gz
  132. Source36: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-HtmlBlocks-%{V_kwiki_htmlblocks}.tar.gz
  133. Source37: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-LiveSearch-%{V_kwiki_livesearch}.tar.gz
  134. Source38: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-PageTemplate-%{V_kwiki_pagetemplate}.tar.gz
  135. Source39: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Email-%{V_kwiki_email}.tar.gz
  136. Source40: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Formatter-Pod-%{V_kwiki_formatter_pod}.tar.gz
  137. Source41: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-PodBlocks-%{V_kwiki_podblocks}.tar.gz
  138. Source42: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Scode-%{V_kwiki_scode}.tar.gz
  139. Source43: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Theme-Klassik-%{V_kwiki_theme_klassik}.tar.gz
  140. Source44: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-TimeZone-%{V_kwiki_timezone}.tar.gz
  141. Source45: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Users-Remote-%{V_kwiki_users_remote}.tar.gz
  142. Source46: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-PagePrivacy-%{V_kwiki_pageprivacy}.tar.gz
  143. Source47: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-NavigationToolbar-%{V_kwiki_navigationtoolbar}.tar.gz
  144. Source48: http://www.cpan.org/authors/id/G/GU/GUGOD/Kwiki-ConfigBlocks-%{V_kwiki_configblocks}.tar.gz
  145. Source49: http://www.cpan.org/authors/id/G/GU/GUGOD/Kwiki-Infobox-%{V_kwiki_infobox}.tar.gz
  146. Source50: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Theme-ColumnLayout-%{V_kwiki_theme_columnlayout}.tar.gz
  147. Source51: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Theme-HLB-%{V_kwiki_theme_hlb}.tar.gz
  148. Source52: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Theme-TabNav-%{V_kwiki_theme_tabnav}.tar.gz
  149. Source53: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-ForeignLinkGlyphs-%{V_kwiki_foreignlinkglyphs}.tar.gz
  150. Source54: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Backlinks-%{V_kwiki_backlinks}.tar.gz
  151. Source55: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-FetchRSS-%{V_kwiki_fetchrss}.tar.gz
  152. Source56: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Theme-Bluepole-%{V_kwiki_theme_bluepole}.tar.gz
  153. Source100: kwiki-apache.conf
  154. Source101: kwiki-plugins.txt
  155. Source102: kwiki-rules.wiki
  156. Source103: kwiki-sandbox.wiki
  157. Source104: kwiki-openpkg.pm
  158. Patch0: kwiki.patch
  159. # build information
  160. Prefix: %{l_prefix}
  161. BuildRoot: %{l_buildroot}
  162. BuildPreReq: OpenPKG, openpkg >= 20040130, perl, perl-openpkg
  163. PreReq: OpenPKG, openpkg >= 20040130, perl, apache
  164. BuildPreReq: perl-sys, perl-parse, perl-text, perl-mail, perl-vcs, perl-gd, perl-xml
  165. PreReq: perl-sys, perl-parse, perl-text, perl-mail, perl-vcs, perl-gd, perl-xml
  166. AutoReq: no
  167. AutoReqProv: no
  168. %description
  169. Kwiki is perhaps the simplest to install, most modular, and easiest
  170. to extend Wiki engine. It is implemented in Perl and uses a flexible
  171. plugin architecture.
  172. %track
  173. prog kwiki:Spoon = {
  174. version = %{V_spoon}
  175. url = http://www.cpan.org/authors/id/I/IN/INGY/
  176. regex = Spoon-(__VER__)\.tar\.gz
  177. }
  178. prog kwiki:Kwiki = {
  179. version = %{V_kwiki}
  180. url = http://www.cpan.org/modules/by-module/Kwiki/
  181. regex = Kwiki-(__VER__)\.tar\.gz
  182. }
  183. prog kwiki:Kwiki-AnchorLink = {
  184. version = %{V_kwiki_anchorlink}
  185. url = http://www.cpan.org/modules/by-module/Kwiki/
  186. regex = Kwiki-AnchorLink-(__VER__)\.tar\.gz
  187. }
  188. prog kwiki:Kwiki-Archive-Rcs = {
  189. version = %{V_kwiki_archive_rcs}
  190. url = http://www.cpan.org/modules/by-module/Kwiki/
  191. regex = Kwiki-Archive-Rcs-(__VER__)\.tar\.gz
  192. }
  193. prog kwiki:Kwiki-Archive-Cvs = {
  194. version = %{V_kwiki_archive_cvs}
  195. url = http://www.cpan.org/modules/by-module/Kwiki/
  196. regex = Kwiki-Archive-Cvs-(__VER__)\.tar\.gz
  197. }
  198. prog kwiki:Kwiki-Autoformat = {
  199. version = %{V_kwiki_autoformat}
  200. url = http://www.cpan.org/modules/by-module/Kwiki/
  201. regex = Kwiki-Autoformat-(__VER__)\.tar\.gz
  202. }
  203. prog kwiki:Kwiki-Cache = {
  204. version = %{V_kwiki_cache}
  205. url = http://www.cpan.org/modules/by-module/Kwiki/
  206. regex = Kwiki-Cache-(__VER__)\.tar\.gz
  207. }
  208. prog kwiki:Kwiki-Revisions = {
  209. version = %{V_kwiki_revisions}
  210. url = http://www.cpan.org/modules/by-module/Kwiki/
  211. regex = Kwiki-Revisions-(__VER__)\.tar\.gz
  212. }
  213. prog kwiki:Kwiki-Diff = {
  214. version = %{V_kwiki_diff}
  215. url = http://www.cpan.org/modules/by-module/Kwiki/
  216. regex = Kwiki-Diff-(__VER__)\.tar\.gz
  217. }
  218. prog kwiki:Kwiki-RecentChanges = {
  219. version = %{V_kwiki_recentchanges}
  220. url = http://www.cpan.org/modules/by-module/Kwiki/
  221. regex = Kwiki-RecentChanges-(__VER__)\.tar\.gz
  222. }
  223. prog kwiki:Kwiki-RecentChangesRSS = {
  224. version = %{V_kwiki_recentchangesrss}
  225. url = http://www.cpan.org/modules/by-module/Kwiki/
  226. regex = Kwiki-RecentChangesRSS-(__VER__)\.tar\.gz
  227. }
  228. prog kwiki:Kwiki-Search = {
  229. version = %{V_kwiki_search}
  230. url = http://www.cpan.org/modules/by-module/Kwiki/
  231. regex = Kwiki-Search-(__VER__)\.tar\.gz
  232. }
  233. prog kwiki:Kwiki-GDGraphGenerator = {
  234. version = %{V_kwiki_gdgraphgenerator}
  235. url = http://www.cpan.org/modules/by-module/Kwiki/
  236. regex = Kwiki-GDGraphGenerator-(__VER__)\.tar\.gz
  237. }
  238. prog kwiki:Kwiki-GoogleLink = {
  239. version = %{V_kwiki_googlelink}
  240. url = http://www.cpan.org/modules/by-module/Kwiki/
  241. regex = Kwiki-GoogleLink-(__VER__)\.tar\.gz
  242. }
  243. prog kwiki:Kwiki-Icons-Crystal = {
  244. version = %{V_kwiki_icons_crystal}
  245. url = http://www.cpan.org/modules/by-module/Kwiki/
  246. regex = Kwiki-Icons-Crystal-(__VER__)\.tar\.gz
  247. }
  248. prog kwiki:Kwiki-Icons-Gnome = {
  249. version = %{V_kwiki_icons_gnome}
  250. url = http://www.cpan.org/modules/by-module/Kwiki/
  251. regex = Kwiki-Icons-Gnome-(__VER__)\.tar\.gz
  252. }
  253. prog kwiki:Kwiki-Image = {
  254. version = %{V_kwiki_image}
  255. url = http://www.cpan.org/modules/by-module/Kwiki/
  256. regex = Kwiki-Image-(__VER__)\.tar\.gz
  257. }
  258. prog kwiki:Kwiki-MindMap = {
  259. version = %{V_kwiki_mindmap}
  260. url = http://www.cpan.org/modules/by-module/Kwiki/
  261. regex = Kwiki-MindMap-(__VER__)\.tar\.gz
  262. }
  263. prog kwiki:Kwiki-ModPerl = {
  264. version = %{V_kwiki_modperl}
  265. url = http://www.cpan.org/modules/by-module/Kwiki/
  266. regex = Kwiki-ModPerl-(__VER__)\.tar\.gz
  267. }
  268. prog kwiki:Kwiki-NewPage = {
  269. version = %{V_kwiki_newpage}
  270. url = http://www.cpan.org/modules/by-module/Kwiki/
  271. regex = Kwiki-NewPage-(__VER__)\.tar\.gz
  272. }
  273. prog kwiki:Kwiki-Notify-Mail = {
  274. version = %{V_kwiki_notify_mail}
  275. url = http://www.cpan.org/modules/by-module/Kwiki/
  276. regex = Kwiki-Notify-Mail-(__VER__)\.tar\.gz
  277. }
  278. prog kwiki:Kwiki-PageInclude = {
  279. version = %{V_kwiki_pageinclude}
  280. url = http://www.cpan.org/modules/by-module/Kwiki/
  281. regex = Kwiki-PageInclude-(__VER__)\.tar\.gz
  282. }
  283. prog kwiki:Kwiki-ParagraphBlocks = {
  284. version = %{V_kwiki_paragraphblocks}
  285. url = http://www.cpan.org/modules/by-module/Kwiki/
  286. regex = Kwiki-ParagraphBlocks-(__VER__)\.tar\.gz
  287. }
  288. prog kwiki:Kwiki-PreformattedBlocks = {
  289. version = %{V_kwiki_preformattedblocks}
  290. url = http://www.cpan.org/modules/by-module/Kwiki/
  291. regex = Kwiki-PreformattedBlocks-(__VER__)\.tar\.gz
  292. }
  293. prog kwiki:Kwiki-ShellBlocks = {
  294. version = %{V_kwiki_shellblocks}
  295. url = http://www.cpan.org/modules/by-module/Kwiki/
  296. regex = Kwiki-ShellBlocks-(__VER__)\.tar\.gz
  297. }
  298. prog kwiki:Kwiki-ShortcutLinks = {
  299. version = %{V_kwiki_shortcutlinks}
  300. url = http://www.cpan.org/modules/by-module/Kwiki/
  301. regex = Kwiki-ShortcutLinks-(__VER__)\.tar\.gz
  302. }
  303. prog kwiki:Kwiki-Toolbar-List = {
  304. version = %{V_kwiki_toolbar_list}
  305. url = http://www.cpan.org/modules/by-module/Kwiki/
  306. regex = Kwiki-Toolbar-List-(__VER__)\.tar\.gz
  307. }
  308. prog kwiki:Kwiki-UserName = {
  309. version = %{V_kwiki_username}
  310. url = http://www.cpan.org/modules/by-module/Kwiki/
  311. regex = Kwiki-UserName-(__VER__)\.tar\.gz
  312. }
  313. prog kwiki:Kwiki-UserPreferences = {
  314. version = %{V_kwiki_userpreferences}
  315. url = http://www.cpan.org/modules/by-module/Kwiki/
  316. regex = Kwiki-UserPreferences-(__VER__)\.tar\.gz
  317. }
  318. prog kwiki:Kwiki-VimMode = {
  319. version = %{V_kwiki_vimmode}
  320. url = http://www.cpan.org/modules/by-module/Kwiki/
  321. regex = Kwiki-VimMode-(__VER__)\.tar\.gz
  322. }
  323. prog kwiki:Kwiki-AuthorOnlyPageEditing = {
  324. version = %{V_kwiki_authoronlypageediting}
  325. url = http://www.cpan.org/modules/by-module/Kwiki/
  326. regex = Kwiki-AuthorOnlyPageEditing-(__VER__)\.tar\.gz
  327. }
  328. prog kwiki:Kwiki-BreadCrumbs = {
  329. version = %{V_kwiki_breadcrumbs}
  330. url = http://www.cpan.org/modules/by-module/Kwiki/
  331. regex = Kwiki-BreadCrumbs-(__VER__)\.tar\.gz
  332. }
  333. prog kwiki:Kwiki-Comments = {
  334. version = %{V_kwiki_comments}
  335. url = http://www.cpan.org/modules/by-module/Kwiki/
  336. regex = Kwiki-Comments-(__VER__)\.tar\.gz
  337. }
  338. prog kwiki:Kwiki-Edit-RequireUserName = {
  339. version = %{V_kwiki_edit_requireusername}
  340. url = http://www.cpan.org/modules/by-module/Kwiki/
  341. regex = Kwiki-Edit-RequireUserName-(__VER__)\.tar\.gz
  342. }
  343. prog kwiki:Kwiki-Favorites = {
  344. version = %{V_kwiki_favorites}
  345. url = http://www.cpan.org/modules/by-module/Kwiki/
  346. regex = Kwiki-Favorites-(__VER__)\.tar\.gz
  347. }
  348. prog kwiki:Kwiki-GuestBook = {
  349. version = %{V_kwiki_guestbook}
  350. url = http://www.cpan.org/modules/by-module/Kwiki/
  351. regex = Kwiki-GuestBook-(__VER__)\.tar\.gz
  352. }
  353. prog kwiki:Kwiki-HtmlBlocks = {
  354. version = %{V_kwiki_htmlblocks}
  355. url = http://www.cpan.org/modules/by-module/Kwiki/
  356. regex = Kwiki-HtmlBlocks-(__VER__)\.tar\.gz
  357. }
  358. prog kwiki:Kwiki-LiveSearch = {
  359. version = %{V_kwiki_livesearch}
  360. url = http://www.cpan.org/modules/by-module/Kwiki/
  361. regex = Kwiki-LiveSearch-(__VER__)\.tar\.gz
  362. }
  363. prog kwiki:Kwiki-PageTemplate = {
  364. version = %{V_kwiki_pagetemplate}
  365. url = http://www.cpan.org/modules/by-module/Kwiki/
  366. regex = Kwiki-PageTemplate-(__VER__)\.tar\.gz
  367. }
  368. prog kwiki:Kwiki-Email = {
  369. version = %{V_kwiki_email}
  370. url = http://www.cpan.org/modules/by-module/Kwiki/
  371. regex = Kwiki-Email-(__VER__)\.tar\.gz
  372. }
  373. prog kwiki:Kwiki-Formatted-Pod = {
  374. version = %{V_kwiki_formatter_pod}
  375. url = http://www.cpan.org/modules/by-module/Kwiki/
  376. regex = Kwiki-Formatter-Pod-(__VER__)\.tar\.gz
  377. }
  378. prog kwiki:Kwiki-PodBlocks = {
  379. version = %{V_kwiki_podblocks}
  380. url = http://www.cpan.org/modules/by-module/Kwiki/
  381. regex = Kwiki-PodBlocks-(__VER__)\.tar\.gz
  382. }
  383. prog kwiki:Kwiki-Scode = {
  384. version = %{V_kwiki_scode}
  385. url = http://www.cpan.org/modules/by-module/Kwiki/
  386. regex = Kwiki-Scode-(__VER__)\.tar\.gz
  387. }
  388. prog kwiki:Kwiki-Theme-Klassik = {
  389. version = %{V_kwiki_theme_klassik}
  390. url = http://www.cpan.org/modules/by-module/Kwiki/
  391. regex = Kwiki-Theme-Klassik-(__VER__)\.tar\.gz
  392. }
  393. prog kwiki:Kwiki-TimeZone = {
  394. version = %{V_kwiki_timezone}
  395. url = http://www.cpan.org/modules/by-module/Kwiki/
  396. regex = Kwiki-TimeZone-(__VER__)\.tar\.gz
  397. }
  398. prog kwiki:Kwiki-Users-Remote = {
  399. version = %{V_kwiki_users_remote}
  400. url = http://www.cpan.org/modules/by-module/Kwiki/
  401. regex = Kwiki-Users-Remote-(__VER__)\.tar\.gz
  402. }
  403. prog kwiki:Kwiki-PagePrivacy = {
  404. version = %{V_kwiki_pageprivacy}
  405. url = http://www.cpan.org/modules/by-module/Kwiki/
  406. regex = Kwiki-PagePrivacy-(__VER__)\.tar\.gz
  407. }
  408. prog kwiki:Kwiki-NavigationToolbar = {
  409. version = %{V_kwiki_navigationtoolbar}
  410. url = http://www.cpan.org/modules/by-module/Kwiki/
  411. regex = Kwiki-NavigationToolbar-(__VER__)\.tar\.gz
  412. }
  413. prog kwiki:Kwiki-Theme-ColumnLayout = {
  414. version = %{V_kwiki_theme_columnlayout}
  415. url = http://www.cpan.org/modules/by-module/Kwiki/
  416. regex = Kwiki-Theme-ColumnLayout-(__VER__)\.tar\.gz
  417. }
  418. prog kwiki:Kwiki-Theme-HLB = {
  419. version = %{V_kwiki_theme_hlb}
  420. url = http://www.cpan.org/modules/by-module/Kwiki/
  421. regex = Kwiki-Theme-HLB-(__VER__)\.tar\.gz
  422. }
  423. prog kwiki:Kwiki-Theme-TabNav = {
  424. version = %{V_kwiki_theme_tabnav}
  425. url = http://www.cpan.org/modules/by-module/Kwiki/
  426. regex = Kwiki-Theme-TabNav-(__VER__)\.tar\.gz
  427. }
  428. prog kwiki:Kwiki-ConfigBlocks = {
  429. version = %{V_kwiki_configblocks}
  430. url = http://www.cpan.org/authors/id/G/GU/GUGOD/
  431. regex = Kwiki-ConfigBlocks-(__VER__)\.tar\.gz
  432. }
  433. prog kwiki:Kwiki-Infobox = {
  434. version = %{V_kwiki_infobox}
  435. url = http://www.cpan.org/authors/id/G/GU/GUGOD/
  436. regex = Kwiki-Infobox-(__VER__)\.tar\.gz
  437. }
  438. prog kwiki:Kwiki-ForeignLinkGlyphs = {
  439. version = %{V_kwiki_foreignlinkglyphs}
  440. url = http://www.cpan.org/modules/by-module/Kwiki/
  441. regex = Kwiki-ForeignLinkGlyphs-(__VER__)\.tar\.gz
  442. }
  443. prog kwiki:Kwiki-Backlinks = {
  444. version = %{V_kwiki_backlinks}
  445. url = http://www.cpan.org/modules/by-module/Kwiki/
  446. regex = Kwiki-Backlinks-(__VER__)\.tar\.gz
  447. }
  448. prog kwiki:Kwiki-FetchRSS = {
  449. version = %{V_kwiki_fetchrss}
  450. url = http://www.cpan.org/modules/by-module/Kwiki/
  451. regex = Kwiki-FetchRSS-(__VER__)\.tar\.gz
  452. }
  453. prog kwiki:Kwiki-Bluepole = {
  454. version = %{V_kwiki_theme_bluepole}
  455. url = http://www.cpan.org/modules/by-module/Kwiki/
  456. regex = Kwiki-Theme-Bluepole-(__VER__)\.tar\.gz
  457. }
  458. %prep
  459. %setup -q -c
  460. %setup -q -T -D -a 1
  461. %setup -q -T -D -a 2
  462. %setup -q -T -D -a 3
  463. %setup -q -T -D -a 4
  464. %setup -q -T -D -a 5
  465. %setup -q -T -D -a 6
  466. %setup -q -T -D -a 7
  467. %setup -q -T -D -a 8
  468. %setup -q -T -D -a 9
  469. %setup -q -T -D -a 10
  470. %setup -q -T -D -a 11
  471. %setup -q -T -D -a 12
  472. %setup -q -T -D -a 13
  473. %setup -q -T -D -a 14
  474. %setup -q -T -D -a 15
  475. %setup -q -T -D -a 16
  476. %setup -q -T -D -a 17
  477. %setup -q -T -D -a 18
  478. %setup -q -T -D -a 19
  479. %setup -q -T -D -a 20
  480. %setup -q -T -D -a 21
  481. %setup -q -T -D -a 22
  482. %setup -q -T -D -a 23
  483. %setup -q -T -D -a 24
  484. %setup -q -T -D -a 25
  485. %setup -q -T -D -a 26
  486. %setup -q -T -D -a 27
  487. %setup -q -T -D -a 28
  488. %setup -q -T -D -a 29
  489. %setup -q -T -D -a 30
  490. %setup -q -T -D -a 31
  491. %setup -q -T -D -a 32
  492. %setup -q -T -D -a 33
  493. %setup -q -T -D -a 34
  494. %setup -q -T -D -a 35
  495. %setup -q -T -D -a 36
  496. %setup -q -T -D -a 37
  497. %setup -q -T -D -a 38
  498. %setup -q -T -D -a 39
  499. %setup -q -T -D -a 40
  500. %setup -q -T -D -a 41
  501. %setup -q -T -D -a 42
  502. %setup -q -T -D -a 43
  503. %setup -q -T -D -a 44
  504. %setup -q -T -D -a 45
  505. %setup -q -T -D -a 46
  506. %setup -q -T -D -a 47
  507. %setup -q -T -D -a 48
  508. %setup -q -T -D -a 49
  509. %setup -q -T -D -a 50
  510. %setup -q -T -D -a 51
  511. %setup -q -T -D -a 52
  512. %setup -q -T -D -a 53
  513. %setup -q -T -D -a 54
  514. %setup -q -T -D -a 55
  515. %setup -q -T -D -a 56
  516. sed <%{PATCH0} -e 's;@l_prefix@;%{l_prefix};g' | %{l_patch} -p0 -b
  517. %build
  518. %install
  519. # prepare installation
  520. rm -rf $RPM_BUILD_ROOT
  521. %{l_prefix}/bin/perl-openpkg prepare
  522. # install Kwiki components
  523. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  524. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  525. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  526. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  527. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  528. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  529. %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
  530. %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
  531. %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
  532. %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
  533. %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
  534. %{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install
  535. %{l_prefix}/bin/perl-openpkg -d %{SOURCE12} configure build install
  536. %{l_prefix}/bin/perl-openpkg -d %{SOURCE13} configure build install
  537. %{l_prefix}/bin/perl-openpkg -d %{SOURCE14} configure build install
  538. %{l_prefix}/bin/perl-openpkg -d %{SOURCE15} configure build install
  539. %{l_prefix}/bin/perl-openpkg -d %{SOURCE16} configure build install
  540. %{l_prefix}/bin/perl-openpkg -d %{SOURCE17} configure build install
  541. %{l_prefix}/bin/perl-openpkg -d %{SOURCE18} configure build install
  542. %{l_prefix}/bin/perl-openpkg -d %{SOURCE19} configure build install
  543. %{l_prefix}/bin/perl-openpkg -d %{SOURCE20} configure build install
  544. %{l_prefix}/bin/perl-openpkg -d %{SOURCE21} configure build install
  545. %{l_prefix}/bin/perl-openpkg -d %{SOURCE22} configure build install
  546. %{l_prefix}/bin/perl-openpkg -d %{SOURCE23} configure build install
  547. %{l_prefix}/bin/perl-openpkg -d %{SOURCE24} configure build install
  548. %{l_prefix}/bin/perl-openpkg -d %{SOURCE25} configure build install
  549. %{l_prefix}/bin/perl-openpkg -d %{SOURCE26} configure build install
  550. %{l_prefix}/bin/perl-openpkg -d %{SOURCE27} configure build install
  551. %{l_prefix}/bin/perl-openpkg -d %{SOURCE28} configure build install
  552. %{l_prefix}/bin/perl-openpkg -d %{SOURCE29} configure build install
  553. %{l_prefix}/bin/perl-openpkg -d %{SOURCE30} configure build install
  554. %{l_prefix}/bin/perl-openpkg -d %{SOURCE31} configure build install
  555. %{l_prefix}/bin/perl-openpkg -d %{SOURCE32} configure build install
  556. %{l_prefix}/bin/perl-openpkg -d %{SOURCE33} configure build install
  557. %{l_prefix}/bin/perl-openpkg -d %{SOURCE34} configure build install
  558. %{l_prefix}/bin/perl-openpkg -d %{SOURCE35} configure build install
  559. %{l_prefix}/bin/perl-openpkg -d %{SOURCE36} configure build install
  560. %{l_prefix}/bin/perl-openpkg -d %{SOURCE37} configure build install
  561. %{l_prefix}/bin/perl-openpkg -d %{SOURCE38} configure build install
  562. %{l_prefix}/bin/perl-openpkg -d %{SOURCE39} configure build install
  563. %{l_prefix}/bin/perl-openpkg -d %{SOURCE40} configure build install
  564. %{l_prefix}/bin/perl-openpkg -d %{SOURCE41} configure build install
  565. %{l_prefix}/bin/perl-openpkg -d %{SOURCE42} configure build install
  566. %{l_prefix}/bin/perl-openpkg -d %{SOURCE43} configure build install
  567. %{l_prefix}/bin/perl-openpkg -d %{SOURCE44} configure build install
  568. %{l_prefix}/bin/perl-openpkg -d %{SOURCE45} configure build install
  569. %{l_prefix}/bin/perl-openpkg -d %{SOURCE46} configure build install
  570. %{l_prefix}/bin/perl-openpkg -d %{SOURCE47} configure build install
  571. %{l_prefix}/bin/perl-openpkg -d %{SOURCE48} configure build install
  572. %{l_prefix}/bin/perl-openpkg -d %{SOURCE49} configure build install
  573. %{l_prefix}/bin/perl-openpkg -d %{SOURCE50} configure build install
  574. %{l_prefix}/bin/perl-openpkg -d %{SOURCE51} configure build install
  575. %{l_prefix}/bin/perl-openpkg -d %{SOURCE52} configure build install
  576. %{l_prefix}/bin/perl-openpkg -d %{SOURCE53} configure build install
  577. %{l_prefix}/bin/perl-openpkg -d %{SOURCE54} configure build install
  578. %{l_prefix}/bin/perl-openpkg -d %{SOURCE55} configure build install
  579. %{l_prefix}/bin/perl-openpkg -d %{SOURCE56} configure build install
  580. # manually install OpenPKG Kwiki theme
  581. mkdir Kwiki-Theme-OpenPKG
  582. ( echo "use ExtUtils::MakeMaker;"
  583. echo "WriteMakefile("
  584. echo " NAME => 'Kwiki::Theme::OpenPKG',"
  585. echo " VERSION_FROM => 'OpenPKG.pm',"
  586. echo " NO_META => 1,"
  587. echo ");"
  588. ) >Kwiki-Theme-OpenPKG/Makefile.PL
  589. cp %{SOURCE kwiki-openpkg.pm} Kwiki-Theme-OpenPKG/OpenPKG.pm
  590. %{l_prefix}/bin/perl-openpkg -d Kwiki-Theme-OpenPKG configure build install
  591. # finalize Perl module installation
  592. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  593. # install Apache configuration
  594. %{l_shtool} mkdir -f -p -m 755 \
  595. $RPM_BUILD_ROOT%{l_prefix}/etc/kwiki
  596. %{l_shtool} install -c -m 644 %{l_value -s -a} \
  597. %{SOURCE kwiki-apache.conf} \
  598. $RPM_BUILD_ROOT%{l_prefix}/etc/kwiki/
  599. # install administration helper script
  600. ( echo "#!/bin/sh"
  601. echo "cd %{l_prefix}/var/kwiki && \\ "
  602. echo "%{l_prefix}/bin/kwiki -update_all && \\ "
  603. echo "chown -R %{l_nusr}:%{l_ngrp} %{l_prefix}/var/kwiki/*"
  604. ) >kwiki-update
  605. %{l_shtool} install -c -m 755 \
  606. -e 's; $;;' \
  607. kwiki-update $RPM_BUILD_ROOT%{l_prefix}/bin/
  608. # install template files
  609. %{l_shtool} mkdir -f -p -m 755 \
  610. $RPM_BUILD_ROOT%{l_prefix}/share/kwiki
  611. %{l_shtool} install -c -m 644 %{l_value -s -a} \
  612. %{SOURCE kwiki-plugins.txt} %{SOURCE kwiki-rules.wiki} %{SOURCE kwiki-sandbox.wiki} \
  613. $RPM_BUILD_ROOT%{l_prefix}/share/kwiki/
  614. # install Kwiki state directory
  615. %{l_shtool} mkdir -f -p -m 755 \
  616. $RPM_BUILD_ROOT%{l_prefix}/var/kwiki
  617. # determine installation files
  618. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  619. %{l_files_std} `cat perl-openpkg-files` \
  620. '%config %{l_prefix}/etc/kwiki/*' \
  621. '%attr(-,%{l_nusr},%{l_ngrp}) %{l_prefix}/var/kwiki'
  622. %files -f files
  623. %clean
  624. rm -rf $RPM_BUILD_ROOT
  625. %post
  626. if [ ".$1" = .1 ]; then
  627. # add hook to Apache configuration
  628. apacheconf="$RPM_INSTALL_PREFIX/etc/apache/apache.conf"
  629. if [ -f $apacheconf ]; then
  630. ( echo "Include $RPM_INSTALL_PREFIX/etc/kwiki/kwiki-apache.conf"
  631. ) | $RPM_INSTALL_PREFIX/lib/openpkg/rpmtool config \
  632. -a -i "$RPM_INSTALL_PREFIX:kwiki" $apacheconf
  633. fi
  634. # create initial Kwiki
  635. ( cd $RPM_INSTALL_PREFIX/var/kwiki || exit $?
  636. echo "++ Generating new standard Kwiki in $RPM_INSTALL_PREFIX/var/kwiki/"
  637. $RPM_INSTALL_PREFIX/bin/kwiki -quiet -new
  638. echo "++ Pre-configuring Kwiki in $RPM_INSTALL_PREFIX/var/kwiki/"
  639. cp $RPM_INSTALL_PREFIX/share/kwiki/kwiki-plugins.txt \
  640. $RPM_INSTALL_PREFIX/var/kwiki/plugins
  641. cp $RPM_INSTALL_PREFIX/share/kwiki/kwiki-rules.wiki \
  642. $RPM_INSTALL_PREFIX/var/kwiki/database/KwikiFormattingRules
  643. cp $RPM_INSTALL_PREFIX/share/kwiki/kwiki-sandbox.wiki \
  644. $RPM_INSTALL_PREFIX/var/kwiki/database/KwikiSandbox
  645. echo "++ Generating administrator view of Kwiki in $RPM_INSTALL_PREFIX/var/kwiki/admin/"
  646. $RPM_INSTALL_PREFIX/bin/kwiki -quiet -new_view admin
  647. ( echo "+Kwiki::PagePrivacy"
  648. ) >>admin/plugins
  649. ( echo "privacy_group: admin"
  650. ) >admin/config2.yaml
  651. $RPM_INSTALL_PREFIX/bin/htpasswd -b -c admin/passwd admin admin
  652. echo "++ Finalizing Kwiki in $RPM_INSTALL_PREFIX/var/kwiki/"
  653. $RPM_INSTALL_PREFIX/bin/kwiki-update
  654. ) || exit $?
  655. # display information about steps the admin should perform next
  656. ( echo "Kwiki was successfully installed. You should now start Apache with:"
  657. echo " \$ $RPM_INSTALL_PREFIX/etc/rc apache start"
  658. echo "Further Kwiki configuration can be done in the files:"
  659. echo " $RPM_INSTALL_PREFIX/var/kwiki/plugins"
  660. echo " $RPM_INSTALL_PREFIX/var/kwiki/config.yaml"
  661. echo "To activate your changes run:"
  662. echo " \$ $RPM_INSTALL_PREFIX/bin/kwiki-update"
  663. echo " \$ $RPM_INSTALL_PREFIX/etc/rc apache stop start"
  664. echo "The Kwiki Homepage URLs are:"
  665. echo " http://localhost/kwiki/ (user view)"
  666. echo " http://localhost/kwiki/admin/ (administrator view)"
  667. echo "Use the username \"admin\" with password \"admin\" to"
  668. echo "login to the administrator view."
  669. ) | %{l_rpmtool} msg -b -t notice
  670. fi
  671. %preun
  672. if [ ".$1" = .0 ]; then
  673. # remove hook from Apache configuration
  674. apacheconf="$RPM_INSTALL_PREFIX/etc/apache/apache.conf"
  675. if [ -f $apacheconf ]; then
  676. $RPM_INSTALL_PREFIX/lib/openpkg/rpmtool config \
  677. -r -i "$RPM_INSTALL_PREFIX:kwiki" $apacheconf
  678. fi
  679. # remove Kwiki files
  680. rm -rf $RPM_INSTALL_PREFIX/var/kwiki/.[a-z]* 2>/dev/null || true
  681. rm -rf $RPM_INSTALL_PREFIX/var/kwiki/* 2>/dev/null || true
  682. fi