%define _snap 01022007
%define _ver %(echo %{_snap} | sed -e 's,\\(..\\)\\(..\\)\\(....\\),\\3\\1\\2,')
-%define _tpl multitemplate
+%define tpl multitemplate
Summary: Multitemplate for DokuWiki
Summary(pl.UTF-8): Wielokrotne szablony dla DokuWiki
Name: dokuwiki-tpl-multitemplate
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _dokudir /usr/share/dokuwiki
-%define _tpldir %{_dokudir}/lib/tpl/%{_tpl}
+%define dokudir /usr/share/dokuwiki
+%define tpldir %{dokudir}/lib/tpl/%{tpl}
%description
This template allows you to use any templates you wish for any
dowolnej przestrzeni nazw (lub strony).
%prep
-%setup -q -n %{_tpl}
+%setup -q -n %{tpl}
cat > INSTALL <<'EOF'
To activate this template add something like this to your conf/local.php file:
-$conf['template'] = '%{_tpl}';
+$conf['template'] = '%{tpl}';
and configure defaults:
$multitemplate['playground'] = 'default';
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_tpldir}
-cp -a . $RPM_BUILD_ROOT%{_tpldir}
-rm -f $RPM_BUILD_ROOT%{_tpldir}/INSTALL
+install -d $RPM_BUILD_ROOT%{tpldir}
+cp -a . $RPM_BUILD_ROOT%{tpldir}
+rm -f $RPM_BUILD_ROOT%{tpldir}/INSTALL
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc INSTALL
-%{_tpldir}
+%{tpldir}