]> git.pld-linux.org Git - packages/dokuwiki-tpl-monobook.git/blob - dokuwiki-tpl-monobook.spec
- new
[packages/dokuwiki-tpl-monobook.git] / dokuwiki-tpl-monobook.spec
1 %define         _snap   07202007
2 %define         _ver    %(echo %{_snap} | sed -e 's,\\(..\\)\\(..\\)\\(....\\),\\3\\1\\2,')
3 %define         _tpl    monobook
4 Summary:        Monobook template for DokuWiki
5 Name:           dokuwiki-tpl-%{_tpl}
6 Version:        %{_ver}
7 Release:        0.1
8 License:        GPL v2
9 Group:          Applications/WWW
10 Source0:        http://tatewake.com/wiki/_media/projects:monobook-%{_snap}.zip
11 # Source0-md5:  69f0dfd21dc921f86be4fd9f8ec9ea4f
12 URL:            http://tatewake.com/wiki/projects:monobook_for_dokuwiki
13 BuildRequires:  rpmbuild(macros) >= 1.268
14 Requires:       dokuwiki >= 20070626
15 BuildArch:      noarch
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %define         _dokudir        /usr/share/dokuwiki
19 %define         _tpldir         %{_dokudir}/lib/tpl/%{_tpl}
20
21 %description
22 Gives DokuWiki the Wikipedia/Mediawiki look and feel, as well as more
23 functionality. Includes discussions without using a plugin and the
24 navigation can be edited like a wiki page.
25
26 %prep
27 %setup -q -n %{_tpl}
28
29 rm -f LICENSE # GPL v2
30
31 cat > INSTALL <<'EOF'
32 To activate this template add the following to your conf/local.php file:
33 $conf['template'] = '%{_tpl}';
34 EOF
35
36 %install
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT%{_tpldir}
39 cp -a . $RPM_BUILD_ROOT%{_tpldir}
40 rm -f $RPM_BUILD_ROOT%{_tpldir}/{INSTALL,README}
41
42 %clean
43 rm -rf $RPM_BUILD_ROOT
44
45 %files
46 %defattr(644,root,root,755)
47 %doc INSTALL README
48 %{_tpldir}
This page took 0.108605 seconds and 4 git commands to generate.