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