| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862 |
- ##
- ## kwiki.spec -- OpenPKG RPM Package Specification
- ## Copyright (c) 2000-2005 OpenPKG Foundation e.V. <http://openpkg.net/>
- ## Copyright (c) 2000-2005 Ralf S. Engelschall <http://engelschall.com/>
- ##
- ## Permission to use, copy, modify, and distribute this software for
- ## any purpose with or without fee is hereby granted, provided that
- ## the above copyright notice and this permission notice appear in all
- ## copies.
- ##
- ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
- ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- ## SUCH DAMAGE.
- ##
- # FIXME: rse: still some plugins are broken because they need porting to Kwiki 0.38!!
- # package versions
- %define V_perl 5.8.6
- %define V_spoon 0.23
- %define V_kwiki 0.38
- %define V_kwiki_modperl 0.08
- %define V_kwiki_anchorlink 0.03
- %define V_kwiki_archive_rcs 0.15
- %define V_kwiki_archive_cvs 0.102
- %define V_kwiki_autoformat 0.02
- %define V_kwiki_cache 0.11
- %define V_kwiki_revisions 0.15
- %define V_kwiki_diff 0.02
- %define V_kwiki_recentchanges 0.13
- %define V_kwiki_recentchangesrss 0.06
- %define V_kwiki_search 0.12
- %define V_kwiki_gdgraphgenerator 0.03
- %define V_kwiki_googlelink 0.01
- %define V_kwiki_icons_crystal 0.12
- %define V_kwiki_icons_gnome 0.14
- %define V_kwiki_image 0.01
- %define V_kwiki_mindmap 0.09
- %define V_kwiki_newpage 0.12
- %define V_kwiki_notify_mail 0.03
- %define V_kwiki_pageinclude 0.02
- %define V_kwiki_paragraphblocks 0.12
- %define V_kwiki_preformattedblocks 0.11
- %define V_kwiki_shellblocks 0.02
- %define V_kwiki_shortcutlinks 0.02
- %define V_kwiki_toolbar_list 0.01
- %define V_kwiki_username 0.14
- %define V_kwiki_userpreferences 0.13
- %define V_kwiki_vimmode 0.04
- %define V_kwiki_authoronlypageediting 0.01
- %define V_kwiki_breadcrumbs 0.12
- %define V_kwiki_comments 0.06
- %define V_kwiki_edit_requireusername 0.02
- %define V_kwiki_favorites 0.13
- %define V_kwiki_guestbook 0.13
- %define V_kwiki_htmlblocks 0.11
- %define V_kwiki_livesearch 0.07
- %define V_kwiki_pagetemplate 0.04
- %define V_kwiki_email 0.02
- %define V_kwiki_formatter_pod 0.11
- %define V_kwiki_podblocks 0.11
- %define V_kwiki_scode 0.03
- %define V_kwiki_theme_klassik 0.12
- %define V_kwiki_timezone 0.11
- %define V_kwiki_users_remote 0.02
- %define V_kwiki_pageprivacy 0.10
- %define V_kwiki_navigationtoolbar 0.02
- %define V_kwiki_configblocks 0.01
- %define V_kwiki_infobox 0.03
- %define V_kwiki_theme_columnlayout 0.08
- %define V_kwiki_theme_hlb 0.01
- %define V_kwiki_theme_tabnav 0.01
- %define V_kwiki_theme_bluepole 1.00
- %define V_kwiki_theme_greenhouse 0.03
- %define V_kwiki_foreignlinkglyphs 0.01
- %define V_kwiki_backlinks 0.09
- %define V_kwiki_fetchrss 0.08
- %define V_kwiki_cooluri 0.04
- %define V_kwiki_datedannounce 0.01
- %define V_kwiki_homepagepreference 0.10
- %define V_kwiki_pagestats 0.05
- %define V_kwiki_purple 0.04
- %define V_kwiki_test 0.03
- %define V_kwiki_attachments 0.15
- %define V_kwiki_opensearch 0.02
- %define V_kwiki_urlblock 0.05
- %define V_kwiki_cacheddisplay 0.04
- %define V_kwiki_footnote 0.01
- %define V_kwiki_raw 0.02
- %define V_kwiki_trackback 0.01
- %define V_kwiki_typekey 0.05
- # package information
- Name: kwiki
- Summary: Kwiki Wiki Engine
- URL: http://www.kwiki.org/
- Vendor: Brian Ingerson et al.
- Packager: OpenPKG
- Distribution: OpenPKG
- Class: PLUS
- Group: Web
- License: GPL/Artistic
- Version: %{V_kwiki}
- Release: 20050703
- # list of sources
- Source0: http://www.cpan.org/authors/id/I/IN/INGY/Spoon-%{V_spoon}.tar.gz
- Source1: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-%{V_kwiki}.tar.gz
- Source2: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-AnchorLink-%{V_kwiki_anchorlink}.tar.gz
- Source3: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Archive-Rcs-%{V_kwiki_archive_rcs}.tar.gz
- Source4: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Autoformat-%{V_kwiki_autoformat}.tar.gz
- Source5: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Cache-%{V_kwiki_cache}.tar.gz
- Source6: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Revisions-%{V_kwiki_revisions}.tar.gz
- Source7: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Diff-%{V_kwiki_diff}.tar.gz
- Source8: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-RecentChanges-%{V_kwiki_recentchanges}.tar.gz
- Source9: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-RecentChangesRSS-%{V_kwiki_recentchangesrss}.tar.gz
- Source10: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Search-%{V_kwiki_search}.tar.gz
- Source11: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-GDGraphGenerator-%{V_kwiki_gdgraphgenerator}.tar.gz
- Source12: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-GoogleLink-%{V_kwiki_googlelink}.tar.gz
- Source13: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Icons-Crystal-%{V_kwiki_icons_crystal}.tar.gz
- Source14: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Icons-Gnome-%{V_kwiki_icons_gnome}.tar.gz
- Source15: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Image-%{V_kwiki_image}.tar.gz
- Source16: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-MindMap-%{V_kwiki_mindmap}.tar.gz
- Source17: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-ModPerl-%{V_kwiki_modperl}.tar.gz
- Source18: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-NewPage-%{V_kwiki_newpage}.tar.gz
- Source19: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Notify-Mail-%{V_kwiki_notify_mail}.tar.gz
- Source20: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-PageInclude-%{V_kwiki_pageinclude}.tar.gz
- Source21: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-ParagraphBlocks-%{V_kwiki_paragraphblocks}.tar.gz
- Source22: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-PreformattedBlocks-%{V_kwiki_preformattedblocks}.tar.gz
- Source23: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-ShellBlocks-%{V_kwiki_shellblocks}.tar.gz
- Source24: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-ShortcutLinks-%{V_kwiki_shortcutlinks}.tar.gz
- Source25: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Toolbar-List-%{V_kwiki_toolbar_list}.tar.gz
- Source26: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-UserName-%{V_kwiki_username}.tar.gz
- Source27: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-UserPreferences-%{V_kwiki_userpreferences}.tar.gz
- Source28: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-VimMode-%{V_kwiki_vimmode}.tar.gz
- Source29: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Archive-Cvs-%{V_kwiki_archive_cvs}.tar.gz
- Source30: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-AuthorOnlyPageEditing-%{V_kwiki_authoronlypageediting}.tar.gz
- Source31: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-BreadCrumbs-%{V_kwiki_breadcrumbs}.tar.gz
- Source32: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Comments-%{V_kwiki_comments}.tar.gz
- Source33: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Edit-RequireUserName-%{V_kwiki_edit_requireusername}.tar.gz
- Source34: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Favorites-%{V_kwiki_favorites}.tar.gz
- Source35: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-GuestBook-%{V_kwiki_guestbook}.tar.gz
- Source36: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-HtmlBlocks-%{V_kwiki_htmlblocks}.tar.gz
- Source37: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-LiveSearch-%{V_kwiki_livesearch}.tar.gz
- Source38: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-PageTemplate-%{V_kwiki_pagetemplate}.tar.gz
- Source39: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Email-%{V_kwiki_email}.tar.gz
- Source40: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Formatter-Pod-%{V_kwiki_formatter_pod}.tar.gz
- Source41: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-PodBlocks-%{V_kwiki_podblocks}.tar.gz
- Source42: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Scode-%{V_kwiki_scode}.tar.gz
- Source43: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Theme-Klassik-%{V_kwiki_theme_klassik}.tar.gz
- Source44: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-TimeZone-%{V_kwiki_timezone}.tar.gz
- Source45: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Users-Remote-%{V_kwiki_users_remote}.tar.gz
- Source46: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-PagePrivacy-%{V_kwiki_pageprivacy}.tar.gz
- Source47: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-NavigationToolbar-%{V_kwiki_navigationtoolbar}.tar.gz
- Source48: http://www.cpan.org/authors/id/G/GU/GUGOD/Kwiki-ConfigBlocks-%{V_kwiki_configblocks}.tar.gz
- Source49: http://www.cpan.org/authors/id/G/GU/GUGOD/Kwiki-Infobox-%{V_kwiki_infobox}.tar.gz
- Source50: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Theme-ColumnLayout-%{V_kwiki_theme_columnlayout}.tar.gz
- Source51: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Theme-HLB-%{V_kwiki_theme_hlb}.tar.gz
- Source52: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Theme-TabNav-%{V_kwiki_theme_tabnav}.tar.gz
- Source53: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-ForeignLinkGlyphs-%{V_kwiki_foreignlinkglyphs}.tar.gz
- Source54: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Backlinks-%{V_kwiki_backlinks}.tar.gz
- Source55: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-FetchRSS-%{V_kwiki_fetchrss}.tar.gz
- Source56: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Theme-Bluepole-%{V_kwiki_theme_bluepole}.tar.gz
- Source57: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-CoolURI-%{V_kwiki_cooluri}.tar.gz
- Source58: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-DatedAnnounce-%{V_kwiki_datedannounce}.tar.gz
- Source59: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-HomePagePreference-%{V_kwiki_homepagepreference}.tar.gz
- Source60: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-PageStats-%{V_kwiki_pagestats}.tar.gz
- Source61: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Purple-%{V_kwiki_purple}.tar.gz
- Source62: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Test-%{V_kwiki_test}.tar.gz
- Source63: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Attachments-%{V_kwiki_attachments}.tar.gz
- Source64: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-OpenSearch-%{V_kwiki_opensearch}.tar.gz
- Source65: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-URLBlock-%{V_kwiki_urlblock}.tar.gz
- Source66: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-CachedDisplay-%{V_kwiki_cacheddisplay}.tar.gz
- Source67: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Footnote-%{V_kwiki_footnote}.tar.gz
- Source68: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Raw-%{V_kwiki_raw}.tar.gz
- Source69: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Trackback-%{V_kwiki_trackback}.tar.gz
- Source70: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-TypeKey-%{V_kwiki_typekey}.tar.gz
- Source71: http://www.cpan.org/modules/by-module/Kwiki/Kwiki-Theme-GreenHouse-%{V_kwiki_theme_greenhouse}.tar.gz
- Source100: kwiki-apache.conf
- Source101: kwiki-plugins.txt
- Source102: kwiki-rules.wiki
- Source103: kwiki-sandbox.wiki
- Source104: kwiki-openpkg.pm
- Source105: kwiki-spamwhitelist.pm
- Patch0: kwiki.patch
- # build information
- Prefix: %{l_prefix}
- BuildRoot: %{l_buildroot}
- BuildPreReq: OpenPKG, openpkg >= 20040130, perl, perl-openpkg
- PreReq: OpenPKG, openpkg >= 20040130, perl, apache, rcs
- BuildPreReq: perl-sys >= %{V_perl}-20050121, perl-parse >= %{V_perl}-20050131
- PreReq: perl-sys >= %{V_perl}-20050121, perl-parse >= %{V_perl}-20050131
- BuildPreReq: perl-text, perl-mail, perl-vcs, perl-gd, perl-xml
- PreReq: perl-text, perl-mail, perl-vcs, perl-gd, perl-xml
- AutoReq: no
- AutoReqProv: no
- %description
- Kwiki is perhaps the simplest to install, most modular, and easiest
- to extend Wiki engine. It is implemented in Perl and uses a flexible
- plugin architecture.
- %track
- prog kwiki:Spoon = {
- comment = "rse: 0.22 corresponds already to kwiki 0.38 AFAIK"
- version = %{V_spoon}
- url = http://www.cpan.org/authors/id/I/IN/INGY/
- regex = Spoon-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki = {
- comment = "rse: 0.38 seems to be still incompatible to most add-on module AFAIK"
- version = %{V_kwiki}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-AnchorLink = {
- version = %{V_kwiki_anchorlink}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-AnchorLink-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-Archive-Rcs = {
- version = %{V_kwiki_archive_rcs}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-Archive-Rcs-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-Archive-Cvs = {
- version = %{V_kwiki_archive_cvs}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-Archive-Cvs-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-Autoformat = {
- version = %{V_kwiki_autoformat}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-Autoformat-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-Cache = {
- version = %{V_kwiki_cache}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-Cache-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-Revisions = {
- version = %{V_kwiki_revisions}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-Revisions-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-Diff = {
- version = %{V_kwiki_diff}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-Diff-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-RecentChanges = {
- version = %{V_kwiki_recentchanges}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-RecentChanges-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-RecentChangesRSS = {
- version = %{V_kwiki_recentchangesrss}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-RecentChangesRSS-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-Search = {
- version = %{V_kwiki_search}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-Search-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-GDGraphGenerator = {
- version = %{V_kwiki_gdgraphgenerator}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-GDGraphGenerator-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-GoogleLink = {
- version = %{V_kwiki_googlelink}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-GoogleLink-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-Icons-Crystal = {
- version = %{V_kwiki_icons_crystal}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-Icons-Crystal-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-Icons-Gnome = {
- version = %{V_kwiki_icons_gnome}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-Icons-Gnome-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-Image = {
- version = %{V_kwiki_image}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-Image-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-MindMap = {
- version = %{V_kwiki_mindmap}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-MindMap-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-ModPerl = {
- version = %{V_kwiki_modperl}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-ModPerl-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-NewPage = {
- version = %{V_kwiki_newpage}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-NewPage-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-Notify-Mail = {
- version = %{V_kwiki_notify_mail}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-Notify-Mail-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-PageInclude = {
- version = %{V_kwiki_pageinclude}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-PageInclude-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-ParagraphBlocks = {
- version = %{V_kwiki_paragraphblocks}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-ParagraphBlocks-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-PreformattedBlocks = {
- version = %{V_kwiki_preformattedblocks}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-PreformattedBlocks-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-ShellBlocks = {
- version = %{V_kwiki_shellblocks}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-ShellBlocks-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-ShortcutLinks = {
- version = %{V_kwiki_shortcutlinks}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-ShortcutLinks-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-Toolbar-List = {
- version = %{V_kwiki_toolbar_list}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-Toolbar-List-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-UserName = {
- version = %{V_kwiki_username}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-UserName-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-UserPreferences = {
- version = %{V_kwiki_userpreferences}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-UserPreferences-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-VimMode = {
- version = %{V_kwiki_vimmode}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-VimMode-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-AuthorOnlyPageEditing = {
- version = %{V_kwiki_authoronlypageediting}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-AuthorOnlyPageEditing-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-BreadCrumbs = {
- version = %{V_kwiki_breadcrumbs}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-BreadCrumbs-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-Comments = {
- version = %{V_kwiki_comments}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-Comments-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-Edit-RequireUserName = {
- version = %{V_kwiki_edit_requireusername}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-Edit-RequireUserName-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-Favorites = {
- version = %{V_kwiki_favorites}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-Favorites-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-GuestBook = {
- version = %{V_kwiki_guestbook}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-GuestBook-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-HtmlBlocks = {
- version = %{V_kwiki_htmlblocks}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-HtmlBlocks-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-LiveSearch = {
- version = %{V_kwiki_livesearch}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-LiveSearch-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-PageTemplate = {
- version = %{V_kwiki_pagetemplate}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-PageTemplate-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-Email = {
- version = %{V_kwiki_email}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-Email-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-Formatted-Pod = {
- version = %{V_kwiki_formatter_pod}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-Formatter-Pod-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-PodBlocks = {
- version = %{V_kwiki_podblocks}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-PodBlocks-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-Scode = {
- version = %{V_kwiki_scode}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-Scode-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-Theme-Klassik = {
- version = %{V_kwiki_theme_klassik}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-Theme-Klassik-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-TimeZone = {
- version = %{V_kwiki_timezone}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-TimeZone-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-Users-Remote = {
- version = %{V_kwiki_users_remote}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-Users-Remote-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-PagePrivacy = {
- version = %{V_kwiki_pageprivacy}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-PagePrivacy-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-NavigationToolbar = {
- version = %{V_kwiki_navigationtoolbar}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-NavigationToolbar-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-Theme-ColumnLayout = {
- version = %{V_kwiki_theme_columnlayout}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-Theme-ColumnLayout-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-Theme-HLB = {
- version = %{V_kwiki_theme_hlb}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-Theme-HLB-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-Theme-TabNav = {
- version = %{V_kwiki_theme_tabnav}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-Theme-TabNav-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-ConfigBlocks = {
- version = %{V_kwiki_configblocks}
- url = http://www.cpan.org/authors/id/G/GU/GUGOD/
- regex = Kwiki-ConfigBlocks-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-Infobox = {
- version = %{V_kwiki_infobox}
- url = http://www.cpan.org/authors/id/G/GU/GUGOD/
- regex = Kwiki-Infobox-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-ForeignLinkGlyphs = {
- version = %{V_kwiki_foreignlinkglyphs}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-ForeignLinkGlyphs-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-Backlinks = {
- version = %{V_kwiki_backlinks}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-Backlinks-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-FetchRSS = {
- version = %{V_kwiki_fetchrss}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-FetchRSS-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-Theme-Bluepole = {
- version = %{V_kwiki_theme_bluepole}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-Theme-Bluepole-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-Theme-GreenHouse = {
- version = %{V_kwiki_theme_greenhouse}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-Theme-GreenHouse-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-CoolURI = {
- version = %{V_kwiki_cooluri}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-CoolURI-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-DatedAnnounce = {
- version = %{V_kwiki_datedannounce}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-DatedAnnounce-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-HomePagePreference = {
- version = %{V_kwiki_homepagepreference}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-HomePagePreference-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-PageStats = {
- version = %{V_kwiki_pagestats}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-PageStats-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-Purple = {
- version = %{V_kwiki_purple}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-Purple-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-Test = {
- version = %{V_kwiki_test}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-Test-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-Attachments = {
- version = %{V_kwiki_attachments}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-Attachments-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-OpenSearch = {
- version = %{V_kwiki_opensearch}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-OpenSearch-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-URLBlock = {
- version = %{V_kwiki_urlblock}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-URLBlock-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-CachedDisplay = {
- version = %{V_kwiki_cacheddisplay}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-CachedDisplay-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-Footnote = {
- version = %{V_kwiki_footnote}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-Footnote-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-Raw = {
- version = %{V_kwiki_raw}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-Raw-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-Trackback = {
- version = %{V_kwiki_trackback}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-Trackback-(__VER__)\.tar\.gz
- }
- prog kwiki:Kwiki-TypeKey = {
- version = %{V_kwiki_typekey}
- url = http://www.cpan.org/modules/by-module/Kwiki/
- regex = Kwiki-TypeKey-(__VER__)\.tar\.gz
- }
- %prep
- %setup -q -c
- %setup -q -T -D -a 1
- %setup -q -T -D -a 2
- %setup -q -T -D -a 3
- %setup -q -T -D -a 4
- %setup -q -T -D -a 5
- %setup -q -T -D -a 6
- %setup -q -T -D -a 7
- %setup -q -T -D -a 8
- %setup -q -T -D -a 9
- %setup -q -T -D -a 10
- %setup -q -T -D -a 11
- %setup -q -T -D -a 12
- %setup -q -T -D -a 13
- %setup -q -T -D -a 14
- %setup -q -T -D -a 15
- %setup -q -T -D -a 16
- %setup -q -T -D -a 17
- %setup -q -T -D -a 18
- %setup -q -T -D -a 19
- %setup -q -T -D -a 20
- %setup -q -T -D -a 21
- %setup -q -T -D -a 22
- %setup -q -T -D -a 23
- %setup -q -T -D -a 24
- %setup -q -T -D -a 25
- %setup -q -T -D -a 26
- %setup -q -T -D -a 27
- %setup -q -T -D -a 28
- %setup -q -T -D -a 29
- %setup -q -T -D -a 30
- %setup -q -T -D -a 31
- %setup -q -T -D -a 32
- %setup -q -T -D -a 33
- %setup -q -T -D -a 34
- %setup -q -T -D -a 35
- %setup -q -T -D -a 36
- %setup -q -T -D -a 37
- %setup -q -T -D -a 38
- %setup -q -T -D -a 39
- %setup -q -T -D -a 40
- %setup -q -T -D -a 41
- %setup -q -T -D -a 42
- %setup -q -T -D -a 43
- %setup -q -T -D -a 44
- %setup -q -T -D -a 45
- %setup -q -T -D -a 46
- %setup -q -T -D -a 47
- %setup -q -T -D -a 48
- %setup -q -T -D -a 49
- %setup -q -T -D -a 50
- %setup -q -T -D -a 51
- %setup -q -T -D -a 52
- %setup -q -T -D -a 53
- %setup -q -T -D -a 54
- %setup -q -T -D -a 55
- %setup -q -T -D -a 56
- %setup -q -T -D -a 57
- %setup -q -T -D -a 58
- %setup -q -T -D -a 59
- %setup -q -T -D -a 60
- %setup -q -T -D -a 61
- %setup -q -T -D -a 62
- %setup -q -T -D -a 63
- %setup -q -T -D -a 64
- %setup -q -T -D -a 65
- %setup -q -T -D -a 66
- %setup -q -T -D -a 67
- %setup -q -T -D -a 68
- %setup -q -T -D -a 69
- %setup -q -T -D -a 70
- %setup -q -T -D -a 71
- sed <%{PATCH0} -e 's;@l_prefix@;%{l_prefix};g' | %{l_patch} -p0 -b
- %build
- %install
- # prepare installation
- rm -rf $RPM_BUILD_ROOT
- %{l_prefix}/bin/perl-openpkg prepare
- # install Kwiki components
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE0} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE1} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE2} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE3} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE4} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE5} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE6} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE7} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE8} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE9} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE10} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE11} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE12} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE13} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE14} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE15} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE16} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE17} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE18} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE19} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE20} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE21} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE22} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE23} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE24} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE25} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE26} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE27} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE28} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE29} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE30} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE31} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE32} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE33} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE34} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE35} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE36} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE37} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE38} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE39} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE40} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE41} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE42} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE43} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE44} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE45} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE46} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE47} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE48} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE49} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE50} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE51} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE52} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE53} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE54} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE55} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE56} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE57} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE58} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE59} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE60} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE61} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE62} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE63} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE64} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE65} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE66} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE67} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE68} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE69} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE70} configure build install
- %{l_prefix}/bin/perl-openpkg -d %{SOURCE71} configure build install
- # manually install OpenPKG Kwiki theme
- mkdir Kwiki-Theme-OpenPKG
- ( echo "use ExtUtils::MakeMaker;"
- echo "WriteMakefile("
- echo " NAME => 'Kwiki::Theme::OpenPKG',"
- echo " VERSION_FROM => 'OpenPKG.pm',"
- echo " NO_META => 1,"
- echo ");"
- ) >Kwiki-Theme-OpenPKG/Makefile.PL
- cp %{SOURCE kwiki-openpkg.pm} Kwiki-Theme-OpenPKG/OpenPKG.pm
- %{l_prefix}/bin/perl-openpkg -d Kwiki-Theme-OpenPKG configure build install
- # manually install Anti-Spam extensions
- mkdir Kwiki-SpamWhitelist
- ( echo "use ExtUtils::MakeMaker;"
- echo "WriteMakefile("
- echo " NAME => 'Kwiki::SpamWhitelist',"
- echo " VERSION_FROM => 'SpamWhitelist.pm',"
- echo " NO_META => 1,"
- echo ");"
- ) >Kwiki-SpamWhitelist/Makefile.PL
- cp %{SOURCE kwiki-spamwhitelist.pm} Kwiki-SpamWhitelist/SpamWhitelist.pm
- %{l_prefix}/bin/perl-openpkg -d Kwiki-SpamWhitelist configure build install
- # finalize Perl module installation
- %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
- # install Apache configuration
- %{l_shtool} mkdir -f -p -m 755 \
- $RPM_BUILD_ROOT%{l_prefix}/etc/kwiki
- %{l_shtool} install -c -m 644 %{l_value -s -a} \
- %{SOURCE kwiki-apache.conf} \
- $RPM_BUILD_ROOT%{l_prefix}/etc/kwiki/
- # install administration helper script
- ( echo "#!/bin/sh"
- echo "cd %{l_prefix}/var/kwiki && \\ "
- echo "%{l_prefix}/bin/kwiki -update_all && \\ "
- echo "chown -R %{l_nusr}:%{l_ngrp} %{l_prefix}/var/kwiki/*"
- ) >kwiki-update
- %{l_shtool} install -c -m 755 \
- -e 's; $;;' \
- kwiki-update $RPM_BUILD_ROOT%{l_prefix}/bin/
- # install template files
- %{l_shtool} mkdir -f -p -m 755 \
- $RPM_BUILD_ROOT%{l_prefix}/share/kwiki
- %{l_shtool} install -c -m 644 %{l_value -s -a} \
- %{SOURCE kwiki-plugins.txt} %{SOURCE kwiki-rules.wiki} %{SOURCE kwiki-sandbox.wiki} \
- $RPM_BUILD_ROOT%{l_prefix}/share/kwiki/
- # install Kwiki state directory
- %{l_shtool} mkdir -f -p -m 755 \
- $RPM_BUILD_ROOT%{l_prefix}/var/kwiki
- # determine installation files
- %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
- %{l_files_std} `cat perl-openpkg-files` \
- '%config %{l_prefix}/etc/kwiki/*' \
- '%attr(-,%{l_nusr},%{l_ngrp}) %{l_prefix}/var/kwiki'
- %files -f files
- %clean
- rm -rf $RPM_BUILD_ROOT
- %post
- if [ ".$1" = .1 ]; then
- # add hook to Apache configuration
- apacheconf="$RPM_INSTALL_PREFIX/etc/apache/apache.conf"
- if [ -f $apacheconf ]; then
- ( echo "Include $RPM_INSTALL_PREFIX/etc/kwiki/kwiki-apache.conf"
- ) | $RPM_INSTALL_PREFIX/lib/openpkg/rpmtool config \
- -a -i "$RPM_INSTALL_PREFIX:kwiki" $apacheconf
- fi
- # create initial Kwiki
- ( cd $RPM_INSTALL_PREFIX/var/kwiki || exit $?
- echo "++ Generating new standard Kwiki in $RPM_INSTALL_PREFIX/var/kwiki/"
- $RPM_INSTALL_PREFIX/bin/kwiki -quiet -new
- echo "++ Pre-configuring Kwiki in $RPM_INSTALL_PREFIX/var/kwiki/"
- cp $RPM_INSTALL_PREFIX/share/kwiki/kwiki-plugins.txt \
- $RPM_INSTALL_PREFIX/var/kwiki/plugins
- cp $RPM_INSTALL_PREFIX/share/kwiki/kwiki-rules.wiki \
- $RPM_INSTALL_PREFIX/var/kwiki/database/KwikiFormattingRules
- cp $RPM_INSTALL_PREFIX/share/kwiki/kwiki-sandbox.wiki \
- $RPM_INSTALL_PREFIX/var/kwiki/database/KwikiSandbox
- echo "++ Generating administrator view of Kwiki in $RPM_INSTALL_PREFIX/var/kwiki/admin/"
- $RPM_INSTALL_PREFIX/bin/kwiki -quiet -new_view admin
- ( echo "+Kwiki::PagePrivacy"
- ) >>admin/plugins
- ( echo "privacy_group: admin"
- ) >admin/config2.yaml
- $RPM_INSTALL_PREFIX/bin/htpasswd -b -c admin/passwd admin admin
- echo "++ Finalizing Kwiki in $RPM_INSTALL_PREFIX/var/kwiki/"
- $RPM_INSTALL_PREFIX/bin/kwiki-update
- ) || exit $?
- # display information about steps the admin should perform next
- ( echo "Kwiki was successfully installed. You should now start Apache with:"
- echo " \$ $RPM_INSTALL_PREFIX/etc/rc apache start"
- echo "Further Kwiki configuration can be done in the files:"
- echo " $RPM_INSTALL_PREFIX/var/kwiki/plugins"
- echo " $RPM_INSTALL_PREFIX/var/kwiki/config.yaml"
- echo "To activate your changes run:"
- echo " \$ $RPM_INSTALL_PREFIX/bin/kwiki-update"
- echo " \$ $RPM_INSTALL_PREFIX/etc/rc apache stop start"
- echo "The Kwiki Homepage URLs are:"
- echo " http://localhost/kwiki/ (user view)"
- echo " http://localhost/kwiki/admin/ (administrator view)"
- echo "Use the username \"admin\" with password \"admin\" to"
- echo "login to the administrator view."
- ) | %{l_rpmtool} msg -b -t notice
- fi
- %preun
- if [ ".$1" = .0 ]; then
- # remove hook from Apache configuration
- apacheconf="$RPM_INSTALL_PREFIX/etc/apache/apache.conf"
- if [ -f $apacheconf ]; then
- $RPM_INSTALL_PREFIX/lib/openpkg/rpmtool config \
- -r -i "$RPM_INSTALL_PREFIX:kwiki" $apacheconf
- fi
- # remove Kwiki files
- rm -rf $RPM_INSTALL_PREFIX/var/kwiki/.[a-z]* 2>/dev/null || true
- rm -rf $RPM_INSTALL_PREFIX/var/kwiki/* 2>/dev/null || true
- fi
|