File dokuwiki.spec of Package dokuwiki

Name: dokuwiki
Version: 20180422b
Release: 0
Summary: Simple to use, highly versatile wiki
Group: Applications/Internet
License: GPLv2
URL: http://www.dokuwiki.org/
Source: dokuwiki-2018-04-22b.tar.gz
BuildArch: noarch
#Requires: php # Disabled due to PHP 5.6 requirement

%description
DokuWiki is a simple to use and highly versatile Open Source wiki software that doesn't require a database.

It is loved by users for its clean and readable syntax. The ease of maintenance, backup and integration makes it an administrator's favorite. Built in access controls and authentication connectors make DokuWiki especially useful in the enterprise context and the large number of plugins contributed by its vibrant community allow for a broad range of use cases beyond a traditional wiki.

%install
mkdir -p %{buildroot}%{_localstatedir}/www/html/%{name}

tar fpx %{SOURCE0} -C %{buildroot}%{_localstatedir}/www/html/

mv %{buildroot}%{_localstatedir}/www/html/%{name}/.htaccess.dist %{buildroot}%{_localstatedir}/www/html/%{name}/.htaccess

%files
%defattr(-,apache,apache,-)
%{_localstatedir}/www/html/%{name}
%config %{_localstatedir}/www/html/dokuwiki/conf/dokuwiki.php
%config %{_localstatedir}/www/html/dokuwiki/lib/tpl/dokuwiki/style.ini