summaryrefslogtreecommitdiff
path: root/ikiwiki.spec
blob: 044c7c033fbbe3e2e6de3cb475e3cf6abf181f1f (plain)
  1. Name:           ikiwiki
  2. Version: 3.20100122
  3. Release: 1%{?dist}
  4. Summary: A wiki compiler
  5. Group: Applications/Internet
  6. License: GPLv2+
  7. URL: http://ikiwiki.info/
  8. Source0: http://ftp.debian.org/debian/pool/main/i/%{name}/%{name}_%{version}.tar.gz
  9. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  10. BuildArch: noarch
  11. BuildRequires: perl(Text::Markdown)
  12. BuildRequires: perl(Mail::Sendmail)
  13. BuildRequires: perl(HTML::Scrubber)
  14. BuildRequires: perl(XML::Simple)
  15. BuildRequires: perl(Date::Parse)
  16. BuildRequires: perl(Date::Format)
  17. BuildRequires: perl(HTML::Template)
  18. BuildRequires: perl(CGI::FormBuilder)
  19. BuildRequires: perl(CGI::Session)
  20. BuildRequires: perl(File::MimeInfo)
  21. BuildRequires: gettext
  22. BuildRequires: po4a
  23. Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
  24. Requires: perl(Text::Markdown)
  25. Requires: perl(Mail::Sendmail)
  26. Requires: perl(HTML::Scrubber)
  27. Requires: perl(XML::Simple)
  28. Requires: perl(CGI::FormBuilder)
  29. Requires: perl(CGI::Session)
  30. Requires: perl(Digest::SHA1)
  31. Requires: python-docutils
  32. %define cgi_bin %{_libexecdir}/w3m/cgi-bin
  33. %description
  34. Ikiwiki is a wiki compiler. It converts wiki pages into HTML pages
  35. suitable for publishing on a website. Ikiwiki stores pages and history
  36. in a revision control system such as Subversion or Git. There are many
  37. other features, including support for blogging, as well as a large
  38. array of plugins.
  39. %prep
  40. %setup0 -q -n %{name}
  41. # Filter unwanted Provides:
  42. %{__cat} << \EOF > %{name}-prov
  43. #!/bin/sh
  44. %{__perl_provides} $* |\
  45. %{__sed} -e '/perl(IkiWiki.*)/d'
  46. EOF
  47. %define __perl_provides %{_builddir}/%{name}/%{name}-prov
  48. %{__chmod} +x %{__perl_provides}
  49. # Filter Requires, all used by plugins
  50. # - Monotone: see bz 450267
  51. %{__cat} << \EOF > %{name}-req
  52. #!/bin/sh
  53. %{__perl_requires} $* |\
  54. %{__sed} -e '/perl(IkiWiki.*)/d' \
  55. -e '/perl(Monotone)/d'
  56. EOF
  57. %define __perl_requires %{_builddir}/%{name}/%{name}-req
  58. %{__chmod} +x %{__perl_requires}
  59. # goes into the -w3m subpackage
  60. %{__cat} << \EOF > README.fedora
  61. See http://ikiwiki.info/w3mmode/ for more information.
  62. EOF
  63. %build
  64. %{__perl} Makefile.PL INSTALLDIRS=vendor PREFIX=%{_prefix}
  65. # parallel builds currently don't work
  66. %{__make}
  67. %install
  68. %{__rm} -rf %{buildroot}
  69. %{__make} pure_install DESTDIR=%{buildroot} W3M_CGI_BIN=%{cgi_bin}
  70. %find_lang %{name}
  71. %clean
  72. %{__rm} -rf %{buildroot}
  73. %files -f %{name}.lang
  74. %defattr(-,root,root,-)
  75. %{_bindir}/ikiwiki*
  76. %{_sbindir}/ikiwiki*
  77. %{_mandir}/man1/ikiwiki*
  78. %{_mandir}/man8/ikiwiki*
  79. %{_datadir}/ikiwiki
  80. %dir %{_sysconfdir}/ikiwiki
  81. %config(noreplace) %{_sysconfdir}/ikiwiki/*
  82. # contains a packlist only
  83. %exclude %{perl_vendorarch}
  84. %{perl_vendorlib}/IkiWiki*
  85. %exclude %{perl_vendorlib}/IkiWiki*/Plugin/skeleton.pm.example
  86. %{_libdir}/ikiwiki
  87. %doc README debian/changelog debian/NEWS html
  88. %doc IkiWiki/Plugin/skeleton.pm.example
  89. %package w3m
  90. Summary: Ikiwiki w3m cgi meta-wrapper
  91. Group: Applications/Internet
  92. Requires: w3m
  93. Requires: %{name} = %{version}-%{release}
  94. %description w3m
  95. Enable usage of all of ikiwiki's web features (page editing, etc) in
  96. the w3m web browser without a web server. w3m supports local CGI
  97. scripts, and ikiwiki can be set up to run that way using the
  98. meta-wrapper in this package.
  99. %files w3m
  100. %defattr(-,root,root,-)
  101. %doc README.fedora
  102. %{cgi_bin}/ikiwiki-w3m.cgi