kwiki.spec 44 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941
  1. ##
  2. ## kwiki.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2005 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ## Copyright (c) 2000-2005 Ralf S. Engelschall <http://engelschall.com/>
  5. ##
  6. ## Permission to use, copy, modify, and distribute this software for
  7. ## any purpose with or without fee is hereby granted, provided that
  8. ## the above copyright notice and this permission notice appear in all
  9. ## copies.
  10. ##
  11. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  12. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  13. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  14. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  15. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  16. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  17. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  18. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  19. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  20. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  21. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  22. ## SUCH DAMAGE.
  23. ##
  24. # FIXME: rse: still some plugins are broken because they need porting to Kwiki 0.38!!
  25. # package versions
  26. %define V_perl 5.8.6
  27. %define V_spoon 0.23
  28. %define V_kwiki 0.38
  29. %define V_kwiki_modperl 0.09
  30. %define V_kwiki_anchorlink 0.03
  31. %define V_kwiki_archive_rcs 0.15
  32. %define V_kwiki_archive_cvs 0.102
  33. %define V_kwiki_autoformat 0.02
  34. %define V_kwiki_cache 0.11
  35. %define V_kwiki_revisions 0.15
  36. %define V_kwiki_diff 0.02
  37. %define V_kwiki_recentchanges 0.13
  38. %define V_kwiki_recentchangesrss 0.07
  39. %define V_kwiki_search 0.12
  40. %define V_kwiki_gdgraphgenerator 0.03
  41. %define V_kwiki_googlelink 0.01
  42. %define V_kwiki_icons_crystal 0.12
  43. %define V_kwiki_icons_gnome 0.14
  44. %define V_kwiki_image 0.01
  45. %define V_kwiki_mindmap 0.09
  46. %define V_kwiki_newpage 0.12
  47. %define V_kwiki_notify_mail 0.03
  48. %define V_kwiki_pageinclude 0.02
  49. %define V_kwiki_paragraphblocks 0.12
  50. %define V_kwiki_preformattedblocks 0.11
  51. %define V_kwiki_shellblocks 0.02
  52. %define V_kwiki_shortcutlinks 0.03
  53. %define V_kwiki_toolbar_list 0.01
  54. %define V_kwiki_username 0.14
  55. %define V_kwiki_userpreferences 0.13
  56. %define V_kwiki_vimmode 0.04
  57. %define V_kwiki_authoronlypageediting 0.01
  58. %define V_kwiki_breadcrumbs 0.12
  59. %define V_kwiki_comments 0.06
  60. %define V_kwiki_edit_requireusername 0.02
  61. %define V_kwiki_favorites 0.13
  62. %define V_kwiki_guestbook 0.13
  63. %define V_kwiki_htmlblocks 0.11
  64. %define V_kwiki_livesearch 0.07
  65. %define V_kwiki_pagetemplate 0.04
  66. %define V_kwiki_email 0.02
  67. %define V_kwiki_formatter_pod 0.11
  68. %define V_kwiki_podblocks 0.11
  69. %define V_kwiki_scode 0.03
  70. %define V_kwiki_theme_klassik 0.12
  71. %define V_kwiki_timezone 0.11
  72. %define V_kwiki_users_remote 0.03
  73. %define V_kwiki_users_cookie 0.01
  74. %define V_kwiki_pageprivacy 0.10
  75. %define V_kwiki_navigationtoolbar 0.02
  76. %define V_kwiki_configblocks 0.01
  77. %define V_kwiki_infobox 0.03
  78. %define V_kwiki_theme_columnlayout 0.08
  79. %define V_kwiki_theme_hlb 0.01
  80. %define V_kwiki_theme_tabnav 0.01
  81. %define V_kwiki_theme_bluepole 1.00
  82. %define V_kwiki_theme_greenhouse 0.03
  83. %define V_kwiki_theme_cpb 0.10
  84. %define V_kwiki_theme_justcontent 0.10
  85. %define V_kwiki_theme_selectable 0.10
  86. %define V_kwiki_foreignlinkglyphs 0.01
  87. %define V_kwiki_backlinks 0.10
  88. %define V_kwiki_fetchrss 0.08
  89. %define V_kwiki_cooluri 0.04
  90. %define V_kwiki_datedannounce 0.01
  91. %define V_kwiki_homepagepreference 0.10
  92. %define V_kwiki_pagestats 0.05
  93. %define V_kwiki_purple 0.04
  94. %define V_kwiki_test 0.03
  95. %define V_kwiki_attachments 0.18
  96. %define V_kwiki_opensearch 0.02
  97. %define V_kwiki_urlblock 0.05
  98. %define V_kwiki_cacheddisplay 0.05
  99. %define V_kwiki_footnote 0.01
  100. %define V_kwiki_raw 0.02
  101. %define V_kwiki_trackback 0.01
  102. %define V_kwiki_typekey 0.05
  103. %define V_kwiki_keywords 0.14
  104. %define V_kwiki_blog 0.10
  105. %define V_kwiki_listpages 0.11
  106. %define V_kwiki_printerfriendly 0.12
  107. %define V_kwiki_username_cookie 0.01
  108. # package information
  109. Name: kwiki
  110. Summary: Kwiki Wiki Engine
  111. URL: http://www.kwiki.org/
  112. Vendor: Brian Ingerson et al.
  113. Packager: OpenPKG
  114. Distribution: OpenPKG
  115. Class: PLUS
  116. Group: Web
  117. License: GPL/Artistic
  118. Version: %{V_kwiki}
  119. Release: 20051110
  120. # list of sources
  121. Source0: http://www.cpan.org/authors/id/I/IN/INGY/Spoon-%{V_spoon}.tar.gz
  122. Source1: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-%{V_kwiki}.tar.gz
  123. Source2: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-AnchorLink-%{V_kwiki_anchorlink}.tar.gz
  124. Source3: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Archive-Rcs-%{V_kwiki_archive_rcs}.tar.gz
  125. Source4: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Autoformat-%{V_kwiki_autoformat}.tar.gz
  126. Source5: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Cache-%{V_kwiki_cache}.tar.gz
  127. Source6: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Revisions-%{V_kwiki_revisions}.tar.gz
  128. Source7: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Diff-%{V_kwiki_diff}.tar.gz
  129. Source8: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-RecentChanges-%{V_kwiki_recentchanges}.tar.gz
  130. Source9: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-RecentChangesRSS-%{V_kwiki_recentchangesrss}.tar.gz
  131. Source10: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Search-%{V_kwiki_search}.tar.gz
  132. Source11: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-GDGraphGenerator-%{V_kwiki_gdgraphgenerator}.tar.gz
  133. Source12: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-GoogleLink-%{V_kwiki_googlelink}.tar.gz
  134. Source13: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Icons-Crystal-%{V_kwiki_icons_crystal}.tar.gz
  135. Source14: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Icons-Gnome-%{V_kwiki_icons_gnome}.tar.gz
  136. Source15: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Image-%{V_kwiki_image}.tar.gz
  137. Source16: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-MindMap-%{V_kwiki_mindmap}.tar.gz
  138. Source17: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-ModPerl-%{V_kwiki_modperl}.tar.gz
  139. Source18: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-NewPage-%{V_kwiki_newpage}.tar.gz
  140. Source19: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Notify-Mail-%{V_kwiki_notify_mail}.tar.gz
  141. Source20: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-PageInclude-%{V_kwiki_pageinclude}.tar.gz
  142. Source21: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-ParagraphBlocks-%{V_kwiki_paragraphblocks}.tar.gz
  143. Source22: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-PreformattedBlocks-%{V_kwiki_preformattedblocks}.tar.gz
  144. Source23: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-ShellBlocks-%{V_kwiki_shellblocks}.tar.gz
  145. Source24: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-ShortcutLinks-%{V_kwiki_shortcutlinks}.tar.gz
  146. Source25: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Toolbar-List-%{V_kwiki_toolbar_list}.tar.gz
  147. Source26: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-UserName-%{V_kwiki_username}.tar.gz
  148. Source27: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-UserPreferences-%{V_kwiki_userpreferences}.tar.gz
  149. Source28: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-VimMode-%{V_kwiki_vimmode}.tar.gz
  150. Source29: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Archive-Cvs-%{V_kwiki_archive_cvs}.tar.gz
  151. Source30: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-AuthorOnlyPageEditing-%{V_kwiki_authoronlypageediting}.tar.gz
  152. Source31: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-BreadCrumbs-%{V_kwiki_breadcrumbs}.tar.gz
  153. Source32: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Comments-%{V_kwiki_comments}.tar.gz
  154. Source33: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Edit-RequireUserName-%{V_kwiki_edit_requireusername}.tar.gz
  155. Source34: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Favorites-%{V_kwiki_favorites}.tar.gz
  156. Source35: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-GuestBook-%{V_kwiki_guestbook}.tar.gz
  157. Source36: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-HtmlBlocks-%{V_kwiki_htmlblocks}.tar.gz
  158. Source37: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-LiveSearch-%{V_kwiki_livesearch}.tar.gz
  159. Source38: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-PageTemplate-%{V_kwiki_pagetemplate}.tar.gz
  160. Source39: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Email-%{V_kwiki_email}.tar.gz
  161. Source40: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Formatter-Pod-%{V_kwiki_formatter_pod}.tar.gz
  162. Source41: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-PodBlocks-%{V_kwiki_podblocks}.tar.gz
  163. Source42: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Scode-%{V_kwiki_scode}.tar.gz
  164. Source43: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Theme-Klassik-%{V_kwiki_theme_klassik}.tar.gz
  165. Source44: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-TimeZone-%{V_kwiki_timezone}.tar.gz
  166. Source45: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Users-Remote-%{V_kwiki_users_remote}.tar.gz
  167. Source46: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-PagePrivacy-%{V_kwiki_pageprivacy}.tar.gz
  168. Source47: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-NavigationToolbar-%{V_kwiki_navigationtoolbar}.tar.gz
  169. Source48: http://www.cpan.org/authors/id/G/GU/GUGOD/Kwiki-ConfigBlocks-%{V_kwiki_configblocks}.tar.gz
  170. Source49: http://www.cpan.org/authors/id/G/GU/GUGOD/Kwiki-Infobox-%{V_kwiki_infobox}.tar.gz
  171. Source50: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Theme-ColumnLayout-%{V_kwiki_theme_columnlayout}.tar.gz
  172. Source51: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Theme-HLB-%{V_kwiki_theme_hlb}.tar.gz
  173. Source52: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Theme-TabNav-%{V_kwiki_theme_tabnav}.tar.gz
  174. Source53: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-ForeignLinkGlyphs-%{V_kwiki_foreignlinkglyphs}.tar.gz
  175. Source54: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Backlinks-%{V_kwiki_backlinks}.tar.gz
  176. Source55: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-FetchRSS-%{V_kwiki_fetchrss}.tar.gz
  177. Source56: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Theme-Bluepole-%{V_kwiki_theme_bluepole}.tar.gz
  178. Source57: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-CoolURI-%{V_kwiki_cooluri}.tar.gz
  179. Source58: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-DatedAnnounce-%{V_kwiki_datedannounce}.tar.gz
  180. Source59: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-HomePagePreference-%{V_kwiki_homepagepreference}.tar.gz
  181. Source60: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-PageStats-%{V_kwiki_pagestats}.tar.gz
  182. Source61: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Purple-%{V_kwiki_purple}.tar.gz
  183. Source62: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Test-%{V_kwiki_test}.tar.gz
  184. Source63: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Attachments-%{V_kwiki_attachments}.tar.gz
  185. Source64: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-OpenSearch-%{V_kwiki_opensearch}.tar.gz
  186. Source65: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-URLBlock-%{V_kwiki_urlblock}.tar.gz
  187. Source66: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-CachedDisplay-%{V_kwiki_cacheddisplay}.tar.gz
  188. Source67: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Footnote-%{V_kwiki_footnote}.tar.gz
  189. Source68: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Raw-%{V_kwiki_raw}.tar.gz
  190. Source69: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Trackback-%{V_kwiki_trackback}.tar.gz
  191. Source70: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-TypeKey-%{V_kwiki_typekey}.tar.gz
  192. Source71: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Theme-GreenHouse-%{V_kwiki_theme_greenhouse}.tar.gz
  193. Source72: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Users-Cookie-%{V_kwiki_users_cookie}.tar.gz
  194. Source73: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Theme-CPB-%{V_kwiki_theme_cpb}.tar.gz
  195. Source74: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Theme-JustContent-%{V_kwiki_theme_justcontent}.tar.gz
  196. Source75: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Theme-Selectable-%{V_kwiki_theme_selectable}.tar.gz
  197. Source76: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Keywords-%{V_kwiki_keywords}.tar.gz
  198. Source77: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Blog-%{V_kwiki_blog}.tar.gz
  199. Source78: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-ListPages-%{V_kwiki_listpages}.tar.gz
  200. Source79: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-PrinterFriendly-%{V_kwiki_printerfriendly}.tar.gz
  201. Source80: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-UserName-Cookie-%{V_kwiki_username_cookie}.tar.gz
  202. Source100: kwiki-apache.conf
  203. Source101: kwiki-plugins.txt
  204. Source102: kwiki-rules.wiki
  205. Source103: kwiki-sandbox.wiki
  206. Source104: kwiki-openpkg.pm
  207. Source105: kwiki-spamwhitelist.pm
  208. Patch0: kwiki.patch
  209. # build information
  210. Prefix: %{l_prefix}
  211. BuildRoot: %{l_buildroot}
  212. BuildPreReq: OpenPKG, openpkg >= 20040130, perl, perl-openpkg
  213. PreReq: OpenPKG, openpkg >= 20040130, perl, apache, rcs
  214. BuildPreReq: perl-sys >= %{V_perl}-20050121, perl-parse >= %{V_perl}-20050131
  215. PreReq: perl-sys >= %{V_perl}-20050121, perl-parse >= %{V_perl}-20050131
  216. BuildPreReq: perl-text, perl-mail, perl-vcs, perl-gd, perl-xml
  217. PreReq: perl-text, perl-mail, perl-vcs, perl-gd, perl-xml
  218. AutoReq: no
  219. AutoReqProv: no
  220. %description
  221. Kwiki is perhaps the simplest to install, most modular, and easiest
  222. to extend Wiki engine. It is implemented in Perl and uses a flexible
  223. plugin architecture.
  224. %track
  225. prog kwiki:Spoon = {
  226. version = %{V_spoon}
  227. url = http://www.cpan.org/authors/id/I/IN/INGY/
  228. regex = Spoon-(__VER__)\.tar\.gz
  229. }
  230. prog kwiki:Kwiki = {
  231. version = %{V_kwiki}
  232. url = http://www.cpan.org/modules/by-module/Kwiki/
  233. regex = Kwiki-(__VER__)\.tar\.gz
  234. }
  235. prog kwiki:Kwiki-AnchorLink = {
  236. version = %{V_kwiki_anchorlink}
  237. url = http://www.cpan.org/modules/by-module/Kwiki/
  238. regex = Kwiki-AnchorLink-(__VER__)\.tar\.gz
  239. }
  240. prog kwiki:Kwiki-Archive-Rcs = {
  241. version = %{V_kwiki_archive_rcs}
  242. url = http://www.cpan.org/modules/by-module/Kwiki/
  243. regex = Kwiki-Archive-Rcs-(__VER__)\.tar\.gz
  244. }
  245. prog kwiki:Kwiki-Archive-Cvs = {
  246. version = %{V_kwiki_archive_cvs}
  247. url = http://www.cpan.org/modules/by-module/Kwiki/
  248. regex = Kwiki-Archive-Cvs-(__VER__)\.tar\.gz
  249. }
  250. prog kwiki:Kwiki-Autoformat = {
  251. version = %{V_kwiki_autoformat}
  252. url = http://www.cpan.org/modules/by-module/Kwiki/
  253. regex = Kwiki-Autoformat-(__VER__)\.tar\.gz
  254. }
  255. prog kwiki:Kwiki-Cache = {
  256. version = %{V_kwiki_cache}
  257. url = http://www.cpan.org/modules/by-module/Kwiki/
  258. regex = Kwiki-Cache-(__VER__)\.tar\.gz
  259. }
  260. prog kwiki:Kwiki-Revisions = {
  261. version = %{V_kwiki_revisions}
  262. url = http://www.cpan.org/modules/by-module/Kwiki/
  263. regex = Kwiki-Revisions-(__VER__)\.tar\.gz
  264. }
  265. prog kwiki:Kwiki-Diff = {
  266. version = %{V_kwiki_diff}
  267. url = http://www.cpan.org/modules/by-module/Kwiki/
  268. regex = Kwiki-Diff-(__VER__)\.tar\.gz
  269. }
  270. prog kwiki:Kwiki-RecentChanges = {
  271. version = %{V_kwiki_recentchanges}
  272. url = http://www.cpan.org/modules/by-module/Kwiki/
  273. regex = Kwiki-RecentChanges-(__VER__)\.tar\.gz
  274. }
  275. prog kwiki:Kwiki-RecentChangesRSS = {
  276. version = %{V_kwiki_recentchangesrss}
  277. url = http://www.cpan.org/modules/by-module/Kwiki/
  278. regex = Kwiki-RecentChangesRSS-(__VER__)\.tar\.gz
  279. }
  280. prog kwiki:Kwiki-Search = {
  281. version = %{V_kwiki_search}
  282. url = http://www.cpan.org/modules/by-module/Kwiki/
  283. regex = Kwiki-Search-(__VER__)\.tar\.gz
  284. }
  285. prog kwiki:Kwiki-GDGraphGenerator = {
  286. version = %{V_kwiki_gdgraphgenerator}
  287. url = http://www.cpan.org/modules/by-module/Kwiki/
  288. regex = Kwiki-GDGraphGenerator-(__VER__)\.tar\.gz
  289. }
  290. prog kwiki:Kwiki-GoogleLink = {
  291. version = %{V_kwiki_googlelink}
  292. url = http://www.cpan.org/modules/by-module/Kwiki/
  293. regex = Kwiki-GoogleLink-(__VER__)\.tar\.gz
  294. }
  295. prog kwiki:Kwiki-Icons-Crystal = {
  296. version = %{V_kwiki_icons_crystal}
  297. url = http://www.cpan.org/modules/by-module/Kwiki/
  298. regex = Kwiki-Icons-Crystal-(__VER__)\.tar\.gz
  299. }
  300. prog kwiki:Kwiki-Icons-Gnome = {
  301. version = %{V_kwiki_icons_gnome}
  302. url = http://www.cpan.org/modules/by-module/Kwiki/
  303. regex = Kwiki-Icons-Gnome-(__VER__)\.tar\.gz
  304. }
  305. prog kwiki:Kwiki-Image = {
  306. version = %{V_kwiki_image}
  307. url = http://www.cpan.org/modules/by-module/Kwiki/
  308. regex = Kwiki-Image-(__VER__)\.tar\.gz
  309. }
  310. prog kwiki:Kwiki-MindMap = {
  311. version = %{V_kwiki_mindmap}
  312. url = http://www.cpan.org/modules/by-module/Kwiki/
  313. regex = Kwiki-MindMap-(__VER__)\.tar\.gz
  314. }
  315. prog kwiki:Kwiki-ModPerl = {
  316. version = %{V_kwiki_modperl}
  317. url = http://www.cpan.org/modules/by-module/Kwiki/
  318. regex = Kwiki-ModPerl-(__VER__)\.tar\.gz
  319. }
  320. prog kwiki:Kwiki-NewPage = {
  321. version = %{V_kwiki_newpage}
  322. url = http://www.cpan.org/modules/by-module/Kwiki/
  323. regex = Kwiki-NewPage-(__VER__)\.tar\.gz
  324. }
  325. prog kwiki:Kwiki-Notify-Mail = {
  326. version = %{V_kwiki_notify_mail}
  327. url = http://www.cpan.org/modules/by-module/Kwiki/
  328. regex = Kwiki-Notify-Mail-(__VER__)\.tar\.gz
  329. }
  330. prog kwiki:Kwiki-PageInclude = {
  331. version = %{V_kwiki_pageinclude}
  332. url = http://www.cpan.org/modules/by-module/Kwiki/
  333. regex = Kwiki-PageInclude-(__VER__)\.tar\.gz
  334. }
  335. prog kwiki:Kwiki-ParagraphBlocks = {
  336. version = %{V_kwiki_paragraphblocks}
  337. url = http://www.cpan.org/modules/by-module/Kwiki/
  338. regex = Kwiki-ParagraphBlocks-(__VER__)\.tar\.gz
  339. }
  340. prog kwiki:Kwiki-PreformattedBlocks = {
  341. version = %{V_kwiki_preformattedblocks}
  342. url = http://www.cpan.org/modules/by-module/Kwiki/
  343. regex = Kwiki-PreformattedBlocks-(__VER__)\.tar\.gz
  344. }
  345. prog kwiki:Kwiki-ShellBlocks = {
  346. version = %{V_kwiki_shellblocks}
  347. url = http://www.cpan.org/modules/by-module/Kwiki/
  348. regex = Kwiki-ShellBlocks-(__VER__)\.tar\.gz
  349. }
  350. prog kwiki:Kwiki-ShortcutLinks = {
  351. version = %{V_kwiki_shortcutlinks}
  352. url = http://www.cpan.org/modules/by-module/Kwiki/
  353. regex = Kwiki-ShortcutLinks-(__VER__)\.tar\.gz
  354. }
  355. prog kwiki:Kwiki-Toolbar-List = {
  356. version = %{V_kwiki_toolbar_list}
  357. url = http://www.cpan.org/modules/by-module/Kwiki/
  358. regex = Kwiki-Toolbar-List-(__VER__)\.tar\.gz
  359. }
  360. prog kwiki:Kwiki-UserName = {
  361. version = %{V_kwiki_username}
  362. url = http://www.cpan.org/modules/by-module/Kwiki/
  363. regex = Kwiki-UserName-(__VER__)\.tar\.gz
  364. }
  365. prog kwiki:Kwiki-UserPreferences = {
  366. version = %{V_kwiki_userpreferences}
  367. url = http://www.cpan.org/modules/by-module/Kwiki/
  368. regex = Kwiki-UserPreferences-(__VER__)\.tar\.gz
  369. }
  370. prog kwiki:Kwiki-VimMode = {
  371. version = %{V_kwiki_vimmode}
  372. url = http://www.cpan.org/modules/by-module/Kwiki/
  373. regex = Kwiki-VimMode-(__VER__)\.tar\.gz
  374. }
  375. prog kwiki:Kwiki-AuthorOnlyPageEditing = {
  376. version = %{V_kwiki_authoronlypageediting}
  377. url = http://www.cpan.org/modules/by-module/Kwiki/
  378. regex = Kwiki-AuthorOnlyPageEditing-(__VER__)\.tar\.gz
  379. }
  380. prog kwiki:Kwiki-BreadCrumbs = {
  381. version = %{V_kwiki_breadcrumbs}
  382. url = http://www.cpan.org/modules/by-module/Kwiki/
  383. regex = Kwiki-BreadCrumbs-(__VER__)\.tar\.gz
  384. }
  385. prog kwiki:Kwiki-Comments = {
  386. version = %{V_kwiki_comments}
  387. url = http://www.cpan.org/modules/by-module/Kwiki/
  388. regex = Kwiki-Comments-(__VER__)\.tar\.gz
  389. }
  390. prog kwiki:Kwiki-Edit-RequireUserName = {
  391. version = %{V_kwiki_edit_requireusername}
  392. url = http://www.cpan.org/modules/by-module/Kwiki/
  393. regex = Kwiki-Edit-RequireUserName-(__VER__)\.tar\.gz
  394. }
  395. prog kwiki:Kwiki-Favorites = {
  396. version = %{V_kwiki_favorites}
  397. url = http://www.cpan.org/modules/by-module/Kwiki/
  398. regex = Kwiki-Favorites-(__VER__)\.tar\.gz
  399. }
  400. prog kwiki:Kwiki-GuestBook = {
  401. version = %{V_kwiki_guestbook}
  402. url = http://www.cpan.org/modules/by-module/Kwiki/
  403. regex = Kwiki-GuestBook-(__VER__)\.tar\.gz
  404. }
  405. prog kwiki:Kwiki-HtmlBlocks = {
  406. version = %{V_kwiki_htmlblocks}
  407. url = http://www.cpan.org/modules/by-module/Kwiki/
  408. regex = Kwiki-HtmlBlocks-(__VER__)\.tar\.gz
  409. }
  410. prog kwiki:Kwiki-LiveSearch = {
  411. version = %{V_kwiki_livesearch}
  412. url = http://www.cpan.org/modules/by-module/Kwiki/
  413. regex = Kwiki-LiveSearch-(__VER__)\.tar\.gz
  414. }
  415. prog kwiki:Kwiki-PageTemplate = {
  416. version = %{V_kwiki_pagetemplate}
  417. url = http://www.cpan.org/modules/by-module/Kwiki/
  418. regex = Kwiki-PageTemplate-(__VER__)\.tar\.gz
  419. }
  420. prog kwiki:Kwiki-Email = {
  421. version = %{V_kwiki_email}
  422. url = http://www.cpan.org/modules/by-module/Kwiki/
  423. regex = Kwiki-Email-(__VER__)\.tar\.gz
  424. }
  425. prog kwiki:Kwiki-Formatted-Pod = {
  426. version = %{V_kwiki_formatter_pod}
  427. url = http://www.cpan.org/modules/by-module/Kwiki/
  428. regex = Kwiki-Formatter-Pod-(__VER__)\.tar\.gz
  429. }
  430. prog kwiki:Kwiki-PodBlocks = {
  431. version = %{V_kwiki_podblocks}
  432. url = http://www.cpan.org/modules/by-module/Kwiki/
  433. regex = Kwiki-PodBlocks-(__VER__)\.tar\.gz
  434. }
  435. prog kwiki:Kwiki-Scode = {
  436. version = %{V_kwiki_scode}
  437. url = http://www.cpan.org/modules/by-module/Kwiki/
  438. regex = Kwiki-Scode-(__VER__)\.tar\.gz
  439. }
  440. prog kwiki:Kwiki-Theme-Klassik = {
  441. version = %{V_kwiki_theme_klassik}
  442. url = http://www.cpan.org/modules/by-module/Kwiki/
  443. regex = Kwiki-Theme-Klassik-(__VER__)\.tar\.gz
  444. }
  445. prog kwiki:Kwiki-TimeZone = {
  446. version = %{V_kwiki_timezone}
  447. url = http://www.cpan.org/modules/by-module/Kwiki/
  448. regex = Kwiki-TimeZone-(__VER__)\.tar\.gz
  449. }
  450. prog kwiki:Kwiki-Users-Remote = {
  451. version = %{V_kwiki_users_remote}
  452. url = http://www.cpan.org/modules/by-module/Kwiki/
  453. regex = Kwiki-Users-Remote-(__VER__)\.tar\.gz
  454. }
  455. prog kwiki:Kwiki-Users-Cookie = {
  456. version = %{V_kwiki_users_cookie}
  457. url = http://www.cpan.org/modules/by-module/Kwiki/
  458. regex = Kwiki-Users-Cookie-(__VER__)\.tar\.gz
  459. }
  460. prog kwiki:Kwiki-PagePrivacy = {
  461. version = %{V_kwiki_pageprivacy}
  462. url = http://www.cpan.org/modules/by-module/Kwiki/
  463. regex = Kwiki-PagePrivacy-(__VER__)\.tar\.gz
  464. }
  465. prog kwiki:Kwiki-NavigationToolbar = {
  466. version = %{V_kwiki_navigationtoolbar}
  467. url = http://www.cpan.org/modules/by-module/Kwiki/
  468. regex = Kwiki-NavigationToolbar-(__VER__)\.tar\.gz
  469. }
  470. prog kwiki:Kwiki-Theme-ColumnLayout = {
  471. version = %{V_kwiki_theme_columnlayout}
  472. url = http://www.cpan.org/modules/by-module/Kwiki/
  473. regex = Kwiki-Theme-ColumnLayout-(__VER__)\.tar\.gz
  474. }
  475. prog kwiki:Kwiki-Theme-HLB = {
  476. version = %{V_kwiki_theme_hlb}
  477. url = http://www.cpan.org/modules/by-module/Kwiki/
  478. regex = Kwiki-Theme-HLB-(__VER__)\.tar\.gz
  479. }
  480. prog kwiki:Kwiki-Theme-TabNav = {
  481. version = %{V_kwiki_theme_tabnav}
  482. url = http://www.cpan.org/modules/by-module/Kwiki/
  483. regex = Kwiki-Theme-TabNav-(__VER__)\.tar\.gz
  484. }
  485. prog kwiki:Kwiki-Theme-CPB = {
  486. version = %{V_kwiki_theme_cpb}
  487. url = http://www.cpan.org/modules/by-module/Kwiki/
  488. regex = Kwiki-Theme-CPB-(__VER__)\.tar\.gz
  489. }
  490. prog kwiki:Kwiki-Theme-JustContent = {
  491. version = %{V_kwiki_theme_justcontent}
  492. url = http://www.cpan.org/modules/by-module/Kwiki/
  493. regex = Kwiki-Theme-JustContent-(__VER__)\.tar\.gz
  494. }
  495. prog kwiki:Kwiki-Theme-Selectable = {
  496. version = %{V_kwiki_theme_selectable}
  497. url = http://www.cpan.org/modules/by-module/Kwiki/
  498. regex = Kwiki-Theme-Selectable-(__VER__)\.tar\.gz
  499. }
  500. prog kwiki:Kwiki-ConfigBlocks = {
  501. version = %{V_kwiki_configblocks}
  502. url = http://www.cpan.org/authors/id/G/GU/GUGOD/
  503. regex = Kwiki-ConfigBlocks-(__VER__)\.tar\.gz
  504. }
  505. prog kwiki:Kwiki-Infobox = {
  506. version = %{V_kwiki_infobox}
  507. url = http://www.cpan.org/authors/id/G/GU/GUGOD/
  508. regex = Kwiki-Infobox-(__VER__)\.tar\.gz
  509. }
  510. prog kwiki:Kwiki-ForeignLinkGlyphs = {
  511. version = %{V_kwiki_foreignlinkglyphs}
  512. url = http://www.cpan.org/modules/by-module/Kwiki/
  513. regex = Kwiki-ForeignLinkGlyphs-(__VER__)\.tar\.gz
  514. }
  515. prog kwiki:Kwiki-Backlinks = {
  516. version = %{V_kwiki_backlinks}
  517. url = http://www.cpan.org/modules/by-module/Kwiki/
  518. regex = Kwiki-Backlinks-(__VER__)\.tar\.gz
  519. }
  520. prog kwiki:Kwiki-FetchRSS = {
  521. version = %{V_kwiki_fetchrss}
  522. url = http://www.cpan.org/modules/by-module/Kwiki/
  523. regex = Kwiki-FetchRSS-(__VER__)\.tar\.gz
  524. }
  525. prog kwiki:Kwiki-Theme-Bluepole = {
  526. version = %{V_kwiki_theme_bluepole}
  527. url = http://www.cpan.org/modules/by-module/Kwiki/
  528. regex = Kwiki-Theme-Bluepole-(__VER__)\.tar\.gz
  529. }
  530. prog kwiki:Kwiki-Theme-GreenHouse = {
  531. version = %{V_kwiki_theme_greenhouse}
  532. url = http://www.cpan.org/modules/by-module/Kwiki/
  533. regex = Kwiki-Theme-GreenHouse-(__VER__)\.tar\.gz
  534. }
  535. prog kwiki:Kwiki-CoolURI = {
  536. version = %{V_kwiki_cooluri}
  537. url = http://www.cpan.org/modules/by-module/Kwiki/
  538. regex = Kwiki-CoolURI-(__VER__)\.tar\.gz
  539. }
  540. prog kwiki:Kwiki-DatedAnnounce = {
  541. version = %{V_kwiki_datedannounce}
  542. url = http://www.cpan.org/modules/by-module/Kwiki/
  543. regex = Kwiki-DatedAnnounce-(__VER__)\.tar\.gz
  544. }
  545. prog kwiki:Kwiki-HomePagePreference = {
  546. version = %{V_kwiki_homepagepreference}
  547. url = http://www.cpan.org/modules/by-module/Kwiki/
  548. regex = Kwiki-HomePagePreference-(__VER__)\.tar\.gz
  549. }
  550. prog kwiki:Kwiki-PageStats = {
  551. version = %{V_kwiki_pagestats}
  552. url = http://www.cpan.org/modules/by-module/Kwiki/
  553. regex = Kwiki-PageStats-(__VER__)\.tar\.gz
  554. }
  555. prog kwiki:Kwiki-Purple = {
  556. version = %{V_kwiki_purple}
  557. url = http://www.cpan.org/modules/by-module/Kwiki/
  558. regex = Kwiki-Purple-(__VER__)\.tar\.gz
  559. }
  560. prog kwiki:Kwiki-Test = {
  561. version = %{V_kwiki_test}
  562. url = http://www.cpan.org/modules/by-module/Kwiki/
  563. regex = Kwiki-Test-(__VER__)\.tar\.gz
  564. }
  565. prog kwiki:Kwiki-Attachments = {
  566. version = %{V_kwiki_attachments}
  567. url = http://www.cpan.org/modules/by-module/Kwiki/
  568. regex = Kwiki-Attachments-(__VER__)\.tar\.gz
  569. }
  570. prog kwiki:Kwiki-OpenSearch = {
  571. version = %{V_kwiki_opensearch}
  572. url = http://www.cpan.org/modules/by-module/Kwiki/
  573. regex = Kwiki-OpenSearch-(__VER__)\.tar\.gz
  574. }
  575. prog kwiki:Kwiki-URLBlock = {
  576. version = %{V_kwiki_urlblock}
  577. url = http://www.cpan.org/modules/by-module/Kwiki/
  578. regex = Kwiki-URLBlock-(__VER__)\.tar\.gz
  579. }
  580. prog kwiki:Kwiki-CachedDisplay = {
  581. version = %{V_kwiki_cacheddisplay}
  582. url = http://www.cpan.org/modules/by-module/Kwiki/
  583. regex = Kwiki-CachedDisplay-(__VER__)\.tar\.gz
  584. }
  585. prog kwiki:Kwiki-Footnote = {
  586. version = %{V_kwiki_footnote}
  587. url = http://www.cpan.org/modules/by-module/Kwiki/
  588. regex = Kwiki-Footnote-(__VER__)\.tar\.gz
  589. }
  590. prog kwiki:Kwiki-Raw = {
  591. version = %{V_kwiki_raw}
  592. url = http://www.cpan.org/modules/by-module/Kwiki/
  593. regex = Kwiki-Raw-(__VER__)\.tar\.gz
  594. }
  595. prog kwiki:Kwiki-Trackback = {
  596. version = %{V_kwiki_trackback}
  597. url = http://www.cpan.org/modules/by-module/Kwiki/
  598. regex = Kwiki-Trackback-(__VER__)\.tar\.gz
  599. }
  600. prog kwiki:Kwiki-TypeKey = {
  601. version = %{V_kwiki_typekey}
  602. url = http://www.cpan.org/modules/by-module/Kwiki/
  603. regex = Kwiki-TypeKey-(__VER__)\.tar\.gz
  604. }
  605. prog kwiki:Kwiki-Keywords = {
  606. version = %{V_kwiki_keywords}
  607. url = http://www.cpan.org/modules/by-module/Kwiki/
  608. regex = Kwiki-Keywords-(__VER__)\.tar\.gz
  609. }
  610. prog kwiki:Kwiki-Blog = {
  611. version = %{V_kwiki_blog}
  612. url = http://www.cpan.org/modules/by-module/Kwiki/
  613. regex = Kwiki-Blog-(__VER__)\.tar\.gz
  614. }
  615. prog kwiki:Kwiki-ListPages = {
  616. version = %{V_kwiki_listpages}
  617. url = http://www.cpan.org/modules/by-module/Kwiki/
  618. regex = Kwiki-ListPages-(__VER__)\.tar\.gz
  619. }
  620. prog kwiki:Kwiki-PrinterFriendly = {
  621. version = %{V_kwiki_printerfriendly}
  622. url = http://www.cpan.org/modules/by-module/Kwiki/
  623. regex = Kwiki-PrinterFriendly-(__VER__)\.tar\.gz
  624. }
  625. prog kwiki:Kwiki-UserName-Cookie = {
  626. version = %{V_kwiki_username_cookie}
  627. url = http://www.cpan.org/modules/by-module/Kwiki/
  628. regex = Kwiki-UserName-Cookie-(__VER__)\.tar\.gz
  629. }
  630. %prep
  631. %setup -q -c
  632. %setup -q -T -D -a 1
  633. %setup -q -T -D -a 2
  634. %setup -q -T -D -a 3
  635. %setup -q -T -D -a 4
  636. %setup -q -T -D -a 5
  637. %setup -q -T -D -a 6
  638. %setup -q -T -D -a 7
  639. %setup -q -T -D -a 8
  640. %setup -q -T -D -a 9
  641. %setup -q -T -D -a 10
  642. %setup -q -T -D -a 11
  643. %setup -q -T -D -a 12
  644. %setup -q -T -D -a 13
  645. %setup -q -T -D -a 14
  646. %setup -q -T -D -a 15
  647. %setup -q -T -D -a 16
  648. %setup -q -T -D -a 17
  649. %setup -q -T -D -a 18
  650. %setup -q -T -D -a 19
  651. %setup -q -T -D -a 20
  652. %setup -q -T -D -a 21
  653. %setup -q -T -D -a 22
  654. %setup -q -T -D -a 23
  655. %setup -q -T -D -a 24
  656. %setup -q -T -D -a 25
  657. %setup -q -T -D -a 26
  658. %setup -q -T -D -a 27
  659. %setup -q -T -D -a 28
  660. %setup -q -T -D -a 29
  661. %setup -q -T -D -a 30
  662. %setup -q -T -D -a 31
  663. %setup -q -T -D -a 32
  664. %setup -q -T -D -a 33
  665. %setup -q -T -D -a 34
  666. %setup -q -T -D -a 35
  667. %setup -q -T -D -a 36
  668. %setup -q -T -D -a 37
  669. %setup -q -T -D -a 38
  670. %setup -q -T -D -a 39
  671. %setup -q -T -D -a 40
  672. %setup -q -T -D -a 41
  673. %setup -q -T -D -a 42
  674. %setup -q -T -D -a 43
  675. %setup -q -T -D -a 44
  676. %setup -q -T -D -a 45
  677. %setup -q -T -D -a 46
  678. %setup -q -T -D -a 47
  679. %setup -q -T -D -a 48
  680. %setup -q -T -D -a 49
  681. %setup -q -T -D -a 50
  682. %setup -q -T -D -a 51
  683. %setup -q -T -D -a 52
  684. %setup -q -T -D -a 53
  685. %setup -q -T -D -a 54
  686. %setup -q -T -D -a 55
  687. %setup -q -T -D -a 56
  688. %setup -q -T -D -a 57
  689. %setup -q -T -D -a 58
  690. %setup -q -T -D -a 59
  691. %setup -q -T -D -a 60
  692. %setup -q -T -D -a 61
  693. %setup -q -T -D -a 62
  694. %setup -q -T -D -a 63
  695. %setup -q -T -D -a 64
  696. %setup -q -T -D -a 65
  697. %setup -q -T -D -a 66
  698. %setup -q -T -D -a 67
  699. %setup -q -T -D -a 68
  700. %setup -q -T -D -a 69
  701. %setup -q -T -D -a 70
  702. %setup -q -T -D -a 71
  703. %setup -q -T -D -a 72
  704. %setup -q -T -D -a 73
  705. %setup -q -T -D -a 74
  706. %setup -q -T -D -a 75
  707. %setup -q -T -D -a 76
  708. %setup -q -T -D -a 77
  709. %setup -q -T -D -a 78
  710. %setup -q -T -D -a 79
  711. %setup -q -T -D -a 80
  712. sed <%{PATCH0} -e 's;@l_prefix@;%{l_prefix};g' | %{l_patch} -p0 -b
  713. %build
  714. %install
  715. # prepare installation
  716. rm -rf $RPM_BUILD_ROOT
  717. %{l_prefix}/bin/perl-openpkg prepare
  718. # install Kwiki components
  719. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  720. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  721. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  722. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  723. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  724. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  725. %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
  726. %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
  727. %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
  728. %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
  729. %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
  730. %{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install
  731. %{l_prefix}/bin/perl-openpkg -d %{SOURCE12} configure build install
  732. %{l_prefix}/bin/perl-openpkg -d %{SOURCE13} configure build install
  733. %{l_prefix}/bin/perl-openpkg -d %{SOURCE14} configure build install
  734. %{l_prefix}/bin/perl-openpkg -d %{SOURCE15} configure build install
  735. %{l_prefix}/bin/perl-openpkg -d %{SOURCE16} configure build install
  736. %{l_prefix}/bin/perl-openpkg -d %{SOURCE17} configure build install
  737. %{l_prefix}/bin/perl-openpkg -d %{SOURCE18} configure build install
  738. %{l_prefix}/bin/perl-openpkg -d %{SOURCE19} configure build install
  739. %{l_prefix}/bin/perl-openpkg -d %{SOURCE20} configure build install
  740. %{l_prefix}/bin/perl-openpkg -d %{SOURCE21} configure build install
  741. %{l_prefix}/bin/perl-openpkg -d %{SOURCE22} configure build install
  742. %{l_prefix}/bin/perl-openpkg -d %{SOURCE23} configure build install
  743. %{l_prefix}/bin/perl-openpkg -d %{SOURCE24} configure build install
  744. %{l_prefix}/bin/perl-openpkg -d %{SOURCE25} configure build install
  745. %{l_prefix}/bin/perl-openpkg -d %{SOURCE26} configure build install
  746. %{l_prefix}/bin/perl-openpkg -d %{SOURCE27} configure build install
  747. %{l_prefix}/bin/perl-openpkg -d %{SOURCE28} configure build install
  748. %{l_prefix}/bin/perl-openpkg -d %{SOURCE29} configure build install
  749. %{l_prefix}/bin/perl-openpkg -d %{SOURCE30} configure build install
  750. %{l_prefix}/bin/perl-openpkg -d %{SOURCE31} configure build install
  751. %{l_prefix}/bin/perl-openpkg -d %{SOURCE32} configure build install
  752. %{l_prefix}/bin/perl-openpkg -d %{SOURCE33} configure build install
  753. %{l_prefix}/bin/perl-openpkg -d %{SOURCE34} configure build install
  754. %{l_prefix}/bin/perl-openpkg -d %{SOURCE35} configure build install
  755. %{l_prefix}/bin/perl-openpkg -d %{SOURCE36} configure build install
  756. %{l_prefix}/bin/perl-openpkg -d %{SOURCE37} configure build install
  757. %{l_prefix}/bin/perl-openpkg -d %{SOURCE38} configure build install
  758. %{l_prefix}/bin/perl-openpkg -d %{SOURCE39} configure build install
  759. %{l_prefix}/bin/perl-openpkg -d %{SOURCE40} configure build install
  760. %{l_prefix}/bin/perl-openpkg -d %{SOURCE41} configure build install
  761. %{l_prefix}/bin/perl-openpkg -d %{SOURCE42} configure build install
  762. %{l_prefix}/bin/perl-openpkg -d %{SOURCE43} configure build install
  763. %{l_prefix}/bin/perl-openpkg -d %{SOURCE44} configure build install
  764. %{l_prefix}/bin/perl-openpkg -d %{SOURCE45} configure build install
  765. %{l_prefix}/bin/perl-openpkg -d %{SOURCE46} configure build install
  766. %{l_prefix}/bin/perl-openpkg -d %{SOURCE47} configure build install
  767. %{l_prefix}/bin/perl-openpkg -d %{SOURCE48} configure build install
  768. %{l_prefix}/bin/perl-openpkg -d %{SOURCE49} configure build install
  769. %{l_prefix}/bin/perl-openpkg -d %{SOURCE50} configure build install
  770. %{l_prefix}/bin/perl-openpkg -d %{SOURCE51} configure build install
  771. %{l_prefix}/bin/perl-openpkg -d %{SOURCE52} configure build install
  772. %{l_prefix}/bin/perl-openpkg -d %{SOURCE53} configure build install
  773. %{l_prefix}/bin/perl-openpkg -d %{SOURCE54} configure build install
  774. %{l_prefix}/bin/perl-openpkg -d %{SOURCE55} configure build install
  775. %{l_prefix}/bin/perl-openpkg -d %{SOURCE56} configure build install
  776. %{l_prefix}/bin/perl-openpkg -d %{SOURCE57} configure build install
  777. %{l_prefix}/bin/perl-openpkg -d %{SOURCE58} configure build install
  778. %{l_prefix}/bin/perl-openpkg -d %{SOURCE59} configure build install
  779. %{l_prefix}/bin/perl-openpkg -d %{SOURCE60} configure build install
  780. %{l_prefix}/bin/perl-openpkg -d %{SOURCE61} configure build install
  781. %{l_prefix}/bin/perl-openpkg -d %{SOURCE62} configure build install
  782. %{l_prefix}/bin/perl-openpkg -d %{SOURCE63} configure build install
  783. %{l_prefix}/bin/perl-openpkg -d %{SOURCE64} configure build install
  784. %{l_prefix}/bin/perl-openpkg -d %{SOURCE65} configure build install
  785. %{l_prefix}/bin/perl-openpkg -d %{SOURCE66} configure build install
  786. %{l_prefix}/bin/perl-openpkg -d %{SOURCE67} configure build install
  787. %{l_prefix}/bin/perl-openpkg -d %{SOURCE68} configure build install
  788. %{l_prefix}/bin/perl-openpkg -d %{SOURCE69} configure build install
  789. %{l_prefix}/bin/perl-openpkg -d %{SOURCE70} configure build install
  790. %{l_prefix}/bin/perl-openpkg -d %{SOURCE71} configure build install
  791. %{l_prefix}/bin/perl-openpkg -d %{SOURCE72} configure build install
  792. %{l_prefix}/bin/perl-openpkg -d %{SOURCE73} configure build install
  793. %{l_prefix}/bin/perl-openpkg -d %{SOURCE74} configure build install
  794. %{l_prefix}/bin/perl-openpkg -d %{SOURCE75} configure build install
  795. %{l_prefix}/bin/perl-openpkg -d %{SOURCE76} configure build install
  796. %{l_prefix}/bin/perl-openpkg -d %{SOURCE77} configure build install
  797. %{l_prefix}/bin/perl-openpkg -d %{SOURCE78} configure build install
  798. %{l_prefix}/bin/perl-openpkg -d %{SOURCE79} configure build install
  799. %{l_prefix}/bin/perl-openpkg -d %{SOURCE80} configure build install
  800. # manually install OpenPKG Kwiki theme
  801. mkdir Kwiki-Theme-OpenPKG
  802. ( echo "use ExtUtils::MakeMaker;"
  803. echo "WriteMakefile("
  804. echo " NAME => 'Kwiki::Theme::OpenPKG',"
  805. echo " VERSION_FROM => 'OpenPKG.pm',"
  806. echo " NO_META => 1,"
  807. echo ");"
  808. ) >Kwiki-Theme-OpenPKG/Makefile.PL
  809. cp %{SOURCE kwiki-openpkg.pm} Kwiki-Theme-OpenPKG/OpenPKG.pm
  810. %{l_prefix}/bin/perl-openpkg -d Kwiki-Theme-OpenPKG configure build install
  811. # manually install Anti-Spam extensions
  812. mkdir Kwiki-SpamWhitelist
  813. ( echo "use ExtUtils::MakeMaker;"
  814. echo "WriteMakefile("
  815. echo " NAME => 'Kwiki::SpamWhitelist',"
  816. echo " VERSION_FROM => 'SpamWhitelist.pm',"
  817. echo " NO_META => 1,"
  818. echo ");"
  819. ) >Kwiki-SpamWhitelist/Makefile.PL
  820. cp %{SOURCE kwiki-spamwhitelist.pm} Kwiki-SpamWhitelist/SpamWhitelist.pm
  821. %{l_prefix}/bin/perl-openpkg -d Kwiki-SpamWhitelist configure build install
  822. # finalize Perl module installation
  823. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  824. # install Apache configuration
  825. %{l_shtool} mkdir -f -p -m 755 \
  826. $RPM_BUILD_ROOT%{l_prefix}/etc/kwiki
  827. %{l_shtool} install -c -m 644 %{l_value -s -a} \
  828. %{SOURCE kwiki-apache.conf} \
  829. $RPM_BUILD_ROOT%{l_prefix}/etc/kwiki/
  830. # install administration helper script
  831. ( echo "#!/bin/sh"
  832. echo "cd %{l_prefix}/var/kwiki && \\ "
  833. echo "%{l_prefix}/bin/kwiki -update_all && \\ "
  834. echo "chown -R %{l_nusr}:%{l_ngrp} %{l_prefix}/var/kwiki/*"
  835. ) >kwiki-update
  836. %{l_shtool} install -c -m 755 \
  837. -e 's; $;;' \
  838. kwiki-update $RPM_BUILD_ROOT%{l_prefix}/bin/
  839. # install template files
  840. %{l_shtool} mkdir -f -p -m 755 \
  841. $RPM_BUILD_ROOT%{l_prefix}/share/kwiki
  842. %{l_shtool} install -c -m 644 %{l_value -s -a} \
  843. %{SOURCE kwiki-plugins.txt} %{SOURCE kwiki-rules.wiki} %{SOURCE kwiki-sandbox.wiki} \
  844. $RPM_BUILD_ROOT%{l_prefix}/share/kwiki/
  845. # install Kwiki state directory
  846. %{l_shtool} mkdir -f -p -m 755 \
  847. $RPM_BUILD_ROOT%{l_prefix}/var/kwiki
  848. # determine installation files
  849. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  850. %{l_files_std} `cat perl-openpkg-files` \
  851. '%config %{l_prefix}/etc/kwiki/*' \
  852. '%attr(-,%{l_nusr},%{l_ngrp}) %{l_prefix}/var/kwiki'
  853. %files -f files
  854. %clean
  855. rm -rf $RPM_BUILD_ROOT
  856. %post
  857. if [ ".$1" = .1 ]; then
  858. # add hook to Apache configuration
  859. apacheconf="$RPM_INSTALL_PREFIX/etc/apache/apache.conf"
  860. if [ -f $apacheconf ]; then
  861. ( echo "Include $RPM_INSTALL_PREFIX/etc/kwiki/kwiki-apache.conf"
  862. ) | $RPM_INSTALL_PREFIX/lib/openpkg/rpmtool config \
  863. -a -i "$RPM_INSTALL_PREFIX:kwiki" $apacheconf
  864. fi
  865. # create initial Kwiki
  866. ( cd $RPM_INSTALL_PREFIX/var/kwiki || exit $?
  867. echo "++ Generating new standard Kwiki in $RPM_INSTALL_PREFIX/var/kwiki/"
  868. $RPM_INSTALL_PREFIX/bin/kwiki -quiet -new
  869. echo "++ Pre-configuring Kwiki in $RPM_INSTALL_PREFIX/var/kwiki/"
  870. cp $RPM_INSTALL_PREFIX/share/kwiki/kwiki-plugins.txt \
  871. $RPM_INSTALL_PREFIX/var/kwiki/plugins
  872. cp $RPM_INSTALL_PREFIX/share/kwiki/kwiki-rules.wiki \
  873. $RPM_INSTALL_PREFIX/var/kwiki/database/KwikiFormattingRules
  874. cp $RPM_INSTALL_PREFIX/share/kwiki/kwiki-sandbox.wiki \
  875. $RPM_INSTALL_PREFIX/var/kwiki/database/KwikiSandbox
  876. echo "++ Generating administrator view of Kwiki in $RPM_INSTALL_PREFIX/var/kwiki/admin/"
  877. $RPM_INSTALL_PREFIX/bin/kwiki -quiet -new_view admin
  878. ( echo "+Kwiki::PagePrivacy"
  879. ) >>admin/plugins
  880. ( echo "privacy_group: admin"
  881. ) >admin/config2.yaml
  882. $RPM_INSTALL_PREFIX/bin/htpasswd -b -c admin/passwd admin admin
  883. echo "++ Finalizing Kwiki in $RPM_INSTALL_PREFIX/var/kwiki/"
  884. $RPM_INSTALL_PREFIX/bin/kwiki-update
  885. ) || exit $?
  886. # display information about steps the admin should perform next
  887. ( echo "Kwiki was successfully installed. You should now start Apache with:"
  888. echo " \$ $RPM_INSTALL_PREFIX/etc/rc apache start"
  889. echo "Further Kwiki configuration can be done in the files:"
  890. echo " $RPM_INSTALL_PREFIX/var/kwiki/plugins"
  891. echo " $RPM_INSTALL_PREFIX/var/kwiki/config.yaml"
  892. echo "To activate your changes run:"
  893. echo " \$ $RPM_INSTALL_PREFIX/bin/kwiki-update"
  894. echo " \$ $RPM_INSTALL_PREFIX/etc/rc apache stop start"
  895. echo "The Kwiki Homepage URLs are:"
  896. echo " http://localhost/kwiki/ (user view)"
  897. echo " http://localhost/kwiki/admin/ (administrator view)"
  898. echo "Use the username \"admin\" with password \"admin\" to"
  899. echo "login to the administrator view."
  900. ) | %{l_rpmtool} msg -b -t notice
  901. fi
  902. %preun
  903. if [ ".$1" = .0 ]; then
  904. # remove hook from Apache configuration
  905. apacheconf="$RPM_INSTALL_PREFIX/etc/apache/apache.conf"
  906. if [ -f $apacheconf ]; then
  907. $RPM_INSTALL_PREFIX/lib/openpkg/rpmtool config \
  908. -r -i "$RPM_INSTALL_PREFIX:kwiki" $apacheconf
  909. fi
  910. # remove Kwiki files
  911. rm -rf $RPM_INSTALL_PREFIX/var/kwiki/.[a-z]* 2>/dev/null || true
  912. rm -rf $RPM_INSTALL_PREFIX/var/kwiki/* 2>/dev/null || true
  913. fi