kwiki.spec 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521
  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.20
  27. %define V_kwiki 0.36
  28. %define V_kwiki_modperl 0.03
  29. %define V_kwiki_anchorlink 0.02
  30. %define V_kwiki_archive_rcs 0.13
  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.13
  35. %define V_kwiki_diff 0.01
  36. %define V_kwiki_recentchanges 0.12
  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.02
  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.13
  54. %define V_kwiki_userpreferences 0.12
  55. %define V_kwiki_vimmode 0.04
  56. %define V_kwiki_authoronlypageediting 0.01
  57. %define V_kwiki_breadcrumbs 0.11
  58. %define V_kwiki_comments 0.06
  59. %define V_kwiki_edit_requireusername 0.01
  60. %define V_kwiki_favorites 0.12
  61. %define V_kwiki_guestbook 0.12
  62. %define V_kwiki_htmlblocks 0.11
  63. %define V_kwiki_livesearch 0.05
  64. %define V_kwiki_pagetemplate 0.03
  65. # package information
  66. Name: kwiki
  67. Summary: Kwiki Wiki Engine
  68. URL: http://www.kwiki.org/
  69. Vendor: Brian Ingerson et al.
  70. Packager: The OpenPKG Project
  71. Distribution: OpenPKG
  72. Class: EVAL
  73. Group: Web
  74. License: GPL/Artistic
  75. Version: %{V_kwiki}
  76. Release: 20050111
  77. # list of sources
  78. Source0: http://www.cpan.org/authors/id/I/IN/INGY/Spoon-%{V_spoon}.tar.gz
  79. Source1: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-%{V_kwiki}.tar.gz
  80. Source2: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-AnchorLink-%{V_kwiki_anchorlink}.tar.gz
  81. Source3: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Archive-Rcs-%{V_kwiki_archive_rcs}.tar.gz
  82. Source4: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Autoformat-%{V_kwiki_autoformat}.tar.gz
  83. Source5: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Cache-%{V_kwiki_cache}.tar.gz
  84. Source6: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Revisions-%{V_kwiki_revisions}.tar.gz
  85. Source7: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Diff-%{V_kwiki_diff}.tar.gz
  86. Source8: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-RecentChanges-%{V_kwiki_recentchanges}.tar.gz
  87. Source9: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-RecentChangesRSS-%{V_kwiki_recentchangesrss}.tar.gz
  88. Source10: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Search-%{V_kwiki_search}.tar.gz
  89. Source11: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-GDGraphGenerator-%{V_kwiki_gdgraphgenerator}.tar.gz
  90. Source12: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-GoogleLink-%{V_kwiki_googlelink}.tar.gz
  91. Source13: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Icons-Crystal-%{V_kwiki_icons_crystal}.tar.gz
  92. Source14: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Icons-Gnome-%{V_kwiki_icons_gnome}.tar.gz
  93. Source15: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Image-%{V_kwiki_image}.tar.gz
  94. Source16: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-MindMap-%{V_kwiki_mindmap}.tar.gz
  95. Source17: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-ModPerl-%{V_kwiki_modperl}.tar.gz
  96. Source18: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-NewPage-%{V_kwiki_newpage}.tar.gz
  97. Source19: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Notify-Mail-%{V_kwiki_notify_mail}.tar.gz
  98. Source20: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-PageInclude-%{V_kwiki_pageinclude}.tar.gz
  99. Source21: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-ParagraphBlocks-%{V_kwiki_paragraphblocks}.tar.gz
  100. Source22: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-PreformattedBlocks-%{V_kwiki_preformattedblocks}.tar.gz
  101. Source23: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-ShellBlocks-%{V_kwiki_shellblocks}.tar.gz
  102. Source24: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-ShortcutLinks-%{V_kwiki_shortcutlinks}.tar.gz
  103. Source25: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Toolbar-List-%{V_kwiki_toolbar_list}.tar.gz
  104. Source26: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-UserName-%{V_kwiki_username}.tar.gz
  105. Source27: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-UserPreferences-%{V_kwiki_userpreferences}.tar.gz
  106. Source28: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-VimMode-%{V_kwiki_vimmode}.tar.gz
  107. Source29: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Archive-Cvs-%{V_kwiki_archive_cvs}.tar.gz
  108. Source30: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-AuthorOnlyPageEditing-%{V_kwiki_authoronlypageediting}.tar.gz
  109. Source31: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-BreadCrumbs-%{V_kwiki_breadcrumbs}.tar.gz
  110. Source32: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Comments-%{V_kwiki_comments}.tar.gz
  111. Source33: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Edit-RequireUserName-%{V_kwiki_edit_requireusername}.tar.gz
  112. Source34: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Favorites-%{V_kwiki_favorites}.tar.gz
  113. Source35: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-GuestBook-%{V_kwiki_guestbook}.tar.gz
  114. Source36: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-HtmlBlocks-%{V_kwiki_htmlblocks}.tar.gz
  115. Source37: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-LiveSearch-%{V_kwiki_livesearch}.tar.gz
  116. Source38: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-PageTemplate-%{V_kwiki_pagetemplate}.tar.gz
  117. Source100: kwiki-apache.conf
  118. # build information
  119. Prefix: %{l_prefix}
  120. BuildRoot: %{l_buildroot}
  121. BuildPreReq: OpenPKG, openpkg >= 20040130, perl, perl-openpkg
  122. PreReq: OpenPKG, openpkg >= 20040130, perl, apache
  123. BuildPreReq: perl-sys, perl-parse, perl-text, perl-mail, perl-vcs, perl-gd
  124. PreReq: perl-sys, perl-parse, perl-text, perl-mail, perl-vcs, perl-gd
  125. AutoReq: no
  126. AutoReqProv: no
  127. %description
  128. Kwiki is perhaps the simplest to install, most modular, and easiest
  129. to extend Wiki engine. It is implemented in Perl and uses a flexible
  130. plugin architecture.
  131. %track
  132. prog kwiki:Spoon = {
  133. version = %{V_spoon}
  134. url = http://www.cpan.org/authors/id/I/IN/INGY/
  135. regex = Spoon-(__VER__)\.tar\.gz
  136. }
  137. prog kwiki:Kwiki = {
  138. version = %{V_kwiki}
  139. url = http://www.cpan.org/modules/by-module/Kwiki/
  140. regex = Kwiki-(__VER__)\.tar\.gz
  141. }
  142. prog kwiki:Kwiki-AnchorLink = {
  143. version = %{V_kwiki_anchorlink}
  144. url = http://www.cpan.org/modules/by-module/Kwiki/
  145. regex = Kwiki-AnchorLink-(__VER__)\.tar\.gz
  146. }
  147. prog kwiki:Kwiki-Archive-Rcs = {
  148. version = %{V_kwiki_archive_rcs}
  149. url = http://www.cpan.org/modules/by-module/Kwiki/
  150. regex = Kwiki-Archive-Rcs-(__VER__)\.tar\.gz
  151. }
  152. prog kwiki:Kwiki-Archive-Cvs = {
  153. version = %{V_kwiki_archive_cvs}
  154. url = http://www.cpan.org/modules/by-module/Kwiki/
  155. regex = Kwiki-Archive-Cvs-(__VER__)\.tar\.gz
  156. }
  157. prog kwiki:Kwiki-Autoformat = {
  158. version = %{V_kwiki_autoformat}
  159. url = http://www.cpan.org/modules/by-module/Kwiki/
  160. regex = Kwiki-Autoformat-(__VER__)\.tar\.gz
  161. }
  162. prog kwiki:Kwiki-Cache = {
  163. version = %{V_kwiki_cache}
  164. url = http://www.cpan.org/modules/by-module/Kwiki/
  165. regex = Kwiki-Cache-(__VER__)\.tar\.gz
  166. }
  167. prog kwiki:Kwiki-Revisions = {
  168. version = %{V_kwiki_revisions}
  169. url = http://www.cpan.org/modules/by-module/Kwiki/
  170. regex = Kwiki-Revisions-(__VER__)\.tar\.gz
  171. }
  172. prog kwiki:Kwiki-Diff = {
  173. version = %{V_kwiki_diff}
  174. url = http://www.cpan.org/modules/by-module/Kwiki/
  175. regex = Kwiki-Diff-(__VER__)\.tar\.gz
  176. }
  177. prog kwiki:Kwiki-RecentChanges = {
  178. version = %{V_kwiki_recentchanges}
  179. url = http://www.cpan.org/modules/by-module/Kwiki/
  180. regex = Kwiki-RecentChanges-(__VER__)\.tar\.gz
  181. }
  182. prog kwiki:Kwiki-RecentChangesRSS = {
  183. version = %{V_kwiki_recentchangesrss}
  184. url = http://www.cpan.org/modules/by-module/Kwiki/
  185. regex = Kwiki-RecentChangesRSS-(__VER__)\.tar\.gz
  186. }
  187. prog kwiki:Kwiki-Search = {
  188. version = %{V_kwiki_search}
  189. url = http://www.cpan.org/modules/by-module/Kwiki/
  190. regex = Kwiki-Search-(__VER__)\.tar\.gz
  191. }
  192. prog kwiki:Kwiki-GDGraphGenerator = {
  193. version = %{V_kwiki_gdgraphgenerator}
  194. url = http://www.cpan.org/modules/by-module/Kwiki/
  195. regex = Kwiki-GDGraphGenerator-(__VER__)\.tar\.gz
  196. }
  197. prog kwiki:Kwiki-GoogleLink = {
  198. version = %{V_kwiki_googlelink}
  199. url = http://www.cpan.org/modules/by-module/Kwiki/
  200. regex = Kwiki-GoogleLink-(__VER__)\.tar\.gz
  201. }
  202. prog kwiki:Kwiki-Icons-Crystal = {
  203. version = %{V_kwiki_icons_crystal}
  204. url = http://www.cpan.org/modules/by-module/Kwiki/
  205. regex = Kwiki-Icons-Crystal-(__VER__)\.tar\.gz
  206. }
  207. prog kwiki:Kwiki-Icons-Gnome = {
  208. version = %{V_kwiki_icons_gnome}
  209. url = http://www.cpan.org/modules/by-module/Kwiki/
  210. regex = Kwiki-Icons-Gnome-(__VER__)\.tar\.gz
  211. }
  212. prog kwiki:Kwiki-Image = {
  213. version = %{V_kwiki_image}
  214. url = http://www.cpan.org/modules/by-module/Kwiki/
  215. regex = Kwiki-Image-(__VER__)\.tar\.gz
  216. }
  217. prog kwiki:Kwiki-MindMap = {
  218. version = %{V_kwiki_mindmap}
  219. url = http://www.cpan.org/modules/by-module/Kwiki/
  220. regex = Kwiki-MindMap-(__VER__)\.tar\.gz
  221. }
  222. prog kwiki:Kwiki-ModPerl = {
  223. version = %{V_kwiki_modperl}
  224. url = http://www.cpan.org/modules/by-module/Kwiki/
  225. regex = Kwiki-ModPerl-(__VER__)\.tar\.gz
  226. }
  227. prog kwiki:Kwiki-NewPage = {
  228. version = %{V_kwiki_newpage}
  229. url = http://www.cpan.org/modules/by-module/Kwiki/
  230. regex = Kwiki-NewPage-(__VER__)\.tar\.gz
  231. }
  232. prog kwiki:Kwiki-Notify-Mail = {
  233. version = %{V_kwiki_notify_mail}
  234. url = http://www.cpan.org/modules/by-module/Kwiki/
  235. regex = Kwiki-Notify-Mail-(__VER__)\.tar\.gz
  236. }
  237. prog kwiki:Kwiki-PageInclude = {
  238. version = %{V_kwiki_pageinclude}
  239. url = http://www.cpan.org/modules/by-module/Kwiki/
  240. regex = Kwiki-PageInclude-(__VER__)\.tar\.gz
  241. }
  242. prog kwiki:Kwiki-ParagraphBlocks = {
  243. version = %{V_kwiki_paragraphblocks}
  244. url = http://www.cpan.org/modules/by-module/Kwiki/
  245. regex = Kwiki-ParagraphBlocks-(__VER__)\.tar\.gz
  246. }
  247. prog kwiki:Kwiki-PreformattedBlocks = {
  248. version = %{V_kwiki_preformattedblocks}
  249. url = http://www.cpan.org/modules/by-module/Kwiki/
  250. regex = Kwiki-PreformattedBlocks-(__VER__)\.tar\.gz
  251. }
  252. prog kwiki:Kwiki-ShellBlocks = {
  253. version = %{V_kwiki_shellblocks}
  254. url = http://www.cpan.org/modules/by-module/Kwiki/
  255. regex = Kwiki-ShellBlocks-(__VER__)\.tar\.gz
  256. }
  257. prog kwiki:Kwiki-ShortcutLinks = {
  258. version = %{V_kwiki_shortcutlinks}
  259. url = http://www.cpan.org/modules/by-module/Kwiki/
  260. regex = Kwiki-ShortcutLinks-(__VER__)\.tar\.gz
  261. }
  262. prog kwiki:Kwiki-Toolbar-List = {
  263. version = %{V_kwiki_toolbar_list}
  264. url = http://www.cpan.org/modules/by-module/Kwiki/
  265. regex = Kwiki-Toolbar-List-(__VER__)\.tar\.gz
  266. }
  267. prog kwiki:Kwiki-UserName = {
  268. version = %{V_kwiki_username}
  269. url = http://www.cpan.org/modules/by-module/Kwiki/
  270. regex = Kwiki-UserName-(__VER__)\.tar\.gz
  271. }
  272. prog kwiki:Kwiki-UserPreferences = {
  273. version = %{V_kwiki_userpreferences}
  274. url = http://www.cpan.org/modules/by-module/Kwiki/
  275. regex = Kwiki-UserPreferences-(__VER__)\.tar\.gz
  276. }
  277. prog kwiki:Kwiki-VimMode = {
  278. version = %{V_kwiki_vimmode}
  279. url = http://www.cpan.org/modules/by-module/Kwiki/
  280. regex = Kwiki-VimMode-(__VER__)\.tar\.gz
  281. }
  282. prog kwiki:Kwiki-AuthorOnlyPageEditing = {
  283. version = %{V_kwiki_authoronlypageediting}
  284. url = http://www.cpan.org/modules/by-module/Kwiki/
  285. regex = Kwiki-AuthorOnlyPageEditing-(__VER__)\.tar\.gz
  286. }
  287. prog kwiki:Kwiki-BreadCrumbs = {
  288. version = %{V_kwiki_breadcrumbs}
  289. url = http://www.cpan.org/modules/by-module/Kwiki/
  290. regex = Kwiki-BreadCrumbs-(__VER__)\.tar\.gz
  291. }
  292. prog kwiki:Kwiki-Comments = {
  293. version = %{V_kwiki_comments}
  294. url = http://www.cpan.org/modules/by-module/Kwiki/
  295. regex = Kwiki-Comments-(__VER__)\.tar\.gz
  296. }
  297. prog kwiki:Kwiki-Edit-RequireUserName = {
  298. version = %{V_kwiki_edit_requireusername}
  299. url = http://www.cpan.org/modules/by-module/Kwiki/
  300. regex = Kwiki-Edit-RequireUserName-(__VER__)\.tar\.gz
  301. }
  302. prog kwiki:Kwiki-Favorites = {
  303. version = %{V_kwiki_favorites}
  304. url = http://www.cpan.org/modules/by-module/Kwiki/
  305. regex = Kwiki-Favorites-(__VER__)\.tar\.gz
  306. }
  307. prog kwiki:Kwiki-GuestBook = {
  308. version = %{V_kwiki_guestbook}
  309. url = http://www.cpan.org/modules/by-module/Kwiki/
  310. regex = Kwiki-GuestBook-(__VER__)\.tar\.gz
  311. }
  312. prog kwiki:Kwiki-HtmlBlocks = {
  313. version = %{V_kwiki_htmlblocks}
  314. url = http://www.cpan.org/modules/by-module/Kwiki/
  315. regex = Kwiki-HtmlBlocks-(__VER__)\.tar\.gz
  316. }
  317. prog kwiki:Kwiki-LiveSearch = {
  318. version = %{V_kwiki_livesearch}
  319. url = http://www.cpan.org/modules/by-module/Kwiki/
  320. regex = Kwiki-LiveSearch-(__VER__)\.tar\.gz
  321. }
  322. prog kwiki:Kwiki-PageTemplate = {
  323. version = %{V_kwiki_pagetemplate}
  324. url = http://www.cpan.org/modules/by-module/Kwiki/
  325. regex = Kwiki-PageTemplate-(__VER__)\.tar\.gz
  326. }
  327. %prep
  328. %setup -q -c
  329. %setup -q -T -D -a 1
  330. %setup -q -T -D -a 2
  331. %setup -q -T -D -a 3
  332. %setup -q -T -D -a 4
  333. %setup -q -T -D -a 5
  334. %setup -q -T -D -a 6
  335. %setup -q -T -D -a 7
  336. %setup -q -T -D -a 8
  337. %setup -q -T -D -a 9
  338. %setup -q -T -D -a 10
  339. %setup -q -T -D -a 11
  340. %setup -q -T -D -a 12
  341. %setup -q -T -D -a 13
  342. %setup -q -T -D -a 14
  343. %setup -q -T -D -a 15
  344. %setup -q -T -D -a 16
  345. %setup -q -T -D -a 17
  346. %setup -q -T -D -a 18
  347. %setup -q -T -D -a 19
  348. %setup -q -T -D -a 20
  349. %setup -q -T -D -a 21
  350. %setup -q -T -D -a 22
  351. %setup -q -T -D -a 23
  352. %setup -q -T -D -a 24
  353. %setup -q -T -D -a 25
  354. %setup -q -T -D -a 26
  355. %setup -q -T -D -a 27
  356. %setup -q -T -D -a 28
  357. %setup -q -T -D -a 29
  358. %setup -q -T -D -a 30
  359. %setup -q -T -D -a 31
  360. %setup -q -T -D -a 32
  361. %setup -q -T -D -a 33
  362. %setup -q -T -D -a 34
  363. %setup -q -T -D -a 35
  364. %setup -q -T -D -a 36
  365. %setup -q -T -D -a 37
  366. %setup -q -T -D -a 38
  367. %build
  368. %install
  369. rm -rf $RPM_BUILD_ROOT
  370. # install program components
  371. %{l_prefix}/bin/perl-openpkg prepare
  372. %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
  373. %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
  374. %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
  375. %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
  376. %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
  377. %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
  378. %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
  379. %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
  380. %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
  381. %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
  382. %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
  383. %{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install
  384. %{l_prefix}/bin/perl-openpkg -d %{SOURCE12} configure build install
  385. %{l_prefix}/bin/perl-openpkg -d %{SOURCE13} configure build install
  386. %{l_prefix}/bin/perl-openpkg -d %{SOURCE14} configure build install
  387. %{l_prefix}/bin/perl-openpkg -d %{SOURCE15} configure build install
  388. %{l_prefix}/bin/perl-openpkg -d %{SOURCE16} configure build install
  389. %{l_prefix}/bin/perl-openpkg -d %{SOURCE17} configure build install
  390. %{l_prefix}/bin/perl-openpkg -d %{SOURCE18} configure build install
  391. %{l_prefix}/bin/perl-openpkg -d %{SOURCE19} configure build install
  392. %{l_prefix}/bin/perl-openpkg -d %{SOURCE20} configure build install
  393. %{l_prefix}/bin/perl-openpkg -d %{SOURCE21} configure build install
  394. %{l_prefix}/bin/perl-openpkg -d %{SOURCE22} configure build install
  395. %{l_prefix}/bin/perl-openpkg -d %{SOURCE23} configure build install
  396. %{l_prefix}/bin/perl-openpkg -d %{SOURCE24} configure build install
  397. %{l_prefix}/bin/perl-openpkg -d %{SOURCE25} configure build install
  398. %{l_prefix}/bin/perl-openpkg -d %{SOURCE26} configure build install
  399. %{l_prefix}/bin/perl-openpkg -d %{SOURCE27} configure build install
  400. %{l_prefix}/bin/perl-openpkg -d %{SOURCE28} configure build install
  401. %{l_prefix}/bin/perl-openpkg -d %{SOURCE29} configure build install
  402. %{l_prefix}/bin/perl-openpkg -d %{SOURCE30} configure build install
  403. %{l_prefix}/bin/perl-openpkg -d %{SOURCE31} configure build install
  404. %{l_prefix}/bin/perl-openpkg -d %{SOURCE32} configure build install
  405. %{l_prefix}/bin/perl-openpkg -d %{SOURCE33} configure build install
  406. %{l_prefix}/bin/perl-openpkg -d %{SOURCE34} configure build install
  407. %{l_prefix}/bin/perl-openpkg -d %{SOURCE35} configure build install
  408. %{l_prefix}/bin/perl-openpkg -d %{SOURCE36} configure build install
  409. %{l_prefix}/bin/perl-openpkg -d %{SOURCE37} configure build install
  410. %{l_prefix}/bin/perl-openpkg -d %{SOURCE38} configure build install
  411. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  412. # install Apache configuration
  413. %{l_shtool} mkdir -f -p -m 755 \
  414. $RPM_BUILD_ROOT%{l_prefix}/etc/kwiki
  415. %{l_shtool} install -c -m 644 %{l_value -s -a} \
  416. %{SOURCE kwiki-apache.conf} \
  417. $RPM_BUILD_ROOT%{l_prefix}/etc/kwiki/
  418. # install Kwiki state directory
  419. %{l_shtool} mkdir -f -p -m 755 \
  420. $RPM_BUILD_ROOT%{l_prefix}/var/kwiki
  421. # determine installation files
  422. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  423. %{l_files_std} `cat perl-openpkg-files` \
  424. '%config %{l_prefix}/etc/kwiki/*' \
  425. '%attr(-,%{l_nusr},%{l_ngrp}) %{l_prefix}/var/kwiki'
  426. %files -f files
  427. %clean
  428. rm -rf $RPM_BUILD_ROOT
  429. %post
  430. if [ ".$1" = .1 ]; then
  431. # add hook to Apache configuration
  432. apacheconf="$RPM_INSTALL_PREFIX/etc/apache/apache.conf"
  433. if [ -f $apacheconf ]; then
  434. ( echo "Include $RPM_INSTALL_PREFIX/etc/kwiki/kwiki-apache.conf"
  435. ) | $RPM_INSTALL_PREFIX/lib/openpkg/rpmtool config \
  436. -a -i "$RPM_INSTALL_PREFIX:kwiki" $apacheconf
  437. fi
  438. # create initial Kwiki
  439. ( cd $RPM_INSTALL_PREFIX/var/kwiki || exit $?
  440. echo "++ Generating new Kwiki in $RPM_INSTALL_PREFIX/var/kwiki"
  441. $RPM_INSTALL_PREFIX/bin/kwiki -new
  442. echo "++ Installing plugins into Kwiki in $RPM_INSTALL_PREFIX/var/kwiki"
  443. $RPM_INSTALL_PREFIX/bin/kwiki -add \
  444. Kwiki::AnchorLink \
  445. Kwiki::Archive::Rcs \
  446. Kwiki::Autoformat \
  447. Kwiki::Cache \
  448. Kwiki::Revisions \
  449. Kwiki::Diff \
  450. Kwiki::RecentChanges \
  451. Kwiki::RecentChangesRSS \
  452. Kwiki::Search \
  453. Kwiki::GDGraphGenerator \
  454. Kwiki::GoogleLink \
  455. Kwiki::Icons::Crystal \
  456. Kwiki::Image \
  457. Kwiki::NewPage \
  458. Kwiki::Notify::Mail \
  459. Kwiki::PageInclude \
  460. Kwiki::ParagraphBlocks \
  461. Kwiki::PreformattedBlocks \
  462. Kwiki::ShellBlocks \
  463. Kwiki::ShortcutLinks \
  464. Kwiki::UserName \
  465. Kwiki::UserPreferences \
  466. Kwiki::AuthorOnlyPageEditing \
  467. Kwiki::BreadCrumbs \
  468. Kwiki::Comments \
  469. Kwiki::GuestBook \
  470. Kwiki::Favorites \
  471. Kwiki::HtmlBlocks
  472. # Kwiki::PageTemplate
  473. # Kwiki::MindMap
  474. # Kwiki::VimMode
  475. # Kwiki::Icons::Gnome
  476. # Kwiki::Toolbar::List
  477. # Kwiki::Archive::Cvs
  478. # Kwiki::Edit::RequireUsername
  479. # Kwiki::LifeSearch
  480. echo "++ Creating initial Apache password file $RPM_INSTALL_PREFIX/var/kwiki/passwd"
  481. $RPM_INSTALL_PREFIX/bin/htpasswd -b -c passwd admin admin
  482. ) || exit $?
  483. # display information about steps the admin should perform next
  484. ( echo "Kwiki was successfully installed. You should now start Apache with"
  485. echo " \$ $RPM_INSTALL_PREFIX/etc/rc apache start"
  486. ) | %{l_rpmtool} msg -b -t notice
  487. fi
  488. %preun
  489. if [ ".$1" = .0 ]; then
  490. # remove hook from Apache configuration
  491. apacheconf="$RPM_INSTALL_PREFIX/etc/apache/apache.conf"
  492. if [ -f $apacheconf ]; then
  493. $RPM_INSTALL_PREFIX/lib/openpkg/rpmtool config \
  494. -r -i "$RPM_INSTALL_PREFIX:kwiki" $apacheconf
  495. fi
  496. # remove Kwiki files
  497. rm -rf $RPM_INSTALL_PREFIX/var/kwiki/.[a-z]* 2>/dev/null || true
  498. rm -rf $RPM_INSTALL_PREFIX/var/kwiki/* 2>/dev/null || true
  499. fi