summaryrefslogtreecommitdiff
path: root/ikiwiki.spec
blob: 534c3a00187182fef6eab3e1409633ed5170da4f (plain)
  1. Name:           ikiwiki
  2. Version: 3.20100915
  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: python-docutils
  31. %define cgi_bin %{_libexecdir}/w3m/cgi-bin
  32. %description
  33. Ikiwiki is a wiki compiler. It converts wiki pages into HTML pages
  34. suitable for publishing on a website. Ikiwiki stores pages and history
  35. in a revision control system such as Subversion or Git. There are many
  36. other features, including support for blogging, as well as a large
  37. array of plugins.
  38. %prep
  39. %setup0 -q -n %{name}
  40. # Filter unwanted Provides:
  41. %{__cat} << \EOF > %{name}-prov
  42. #!/bin/sh
  43. %{__perl_provides} $* |\
  44. %{__sed} -e '/perl(IkiWiki.*)/d'
  45. EOF
  46. %define __perl_provides %{_builddir}/%{name}/%{name}-prov
  47. %{__chmod} +x %{__perl_provides}
  48. # Filter Requires, all used by plugins
  49. # - Monotone: see bz 450267
  50. %{__cat} << \EOF > %{name}-req
  51. #!/bin/sh
  52. %{__perl_requires} $* |\
  53. %{__sed} -e '/perl(IkiWiki.*)/d' \
  54. -e '/perl(Monotone)/d'
  55. EOF
  56. %define __perl_requires %{_builddir}/%{name}/%{name}-req
  57. %{__chmod} +x %{__perl_requires}
  58. # goes into the -w3m subpackage
  59. %{__cat} << \EOF > README.fedora
  60. See http://ikiwiki.info/w3mmode/ for more information.
  61. EOF
  62. %build
  63. %{__perl} Makefile.PL INSTALLDIRS=vendor PREFIX=%{_prefix}
  64. # parallel builds currently don't work
  65. %{__make}
  66. %install
  67. %{__rm} -rf %{buildroot}
  68. %{__make} pure_install DESTDIR=%{buildroot} W3M_CGI_BIN=%{cgi_bin}
  69. %find_lang %{name}
  70. %clean
  71. %{__rm} -rf %{buildroot}
  72. %files -f %{name}.lang
  73. %defattr(-,root,root,-)
  74. %{_bindir}/ikiwiki*
  75. %{_sbindir}/ikiwiki*
  76. %{_mandir}/man1/ikiwiki*
  77. %{_mandir}/man8/ikiwiki*
  78. %{_datadir}/ikiwiki
  79. %dir %{_sysconfdir}/ikiwiki
  80. %config(noreplace) %{_sysconfdir}/ikiwiki/*
  81. # contains a packlist only
  82. %exclude %{perl_vendorarch}
  83. %{perl_vendorlib}/IkiWiki*
  84. %exclude %{perl_vendorlib}/IkiWiki*/Plugin/skeleton.pm.example
  85. %{_libdir}/ikiwiki
  86. %doc README debian/changelog debian/NEWS html
  87. %doc IkiWiki/Plugin/skeleton.pm.example
  88. %package w3m
  89. Summary: Ikiwiki w3m cgi meta-wrapper
  90. Group: Applications/Internet
  91. Requires: w3m
  92. Requires: %{name} = %{version}-%{release}
  93. %description w3m
  94. Enable usage of all of ikiwiki's web features (page editing, etc) in
  95. the w3m web browser without a web server. w3m supports local CGI
  96. scripts, and ikiwiki can be set up to run that way using the
  97. meta-wrapper in this package.
  98. %files w3m
  99. %defattr(-,root,root,-)
  100. %doc README.fedora
  101. %{cgi_bin}/ikiwiki-w3m.cgi