kwiki.spec 40 KB

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