655b8a64d8c000f0b25b4a8675c47c16b63754b2
[packages/dokuwiki-plugin-lightbox.git] / dokuwiki-plugin-lightbox.spec
1 %define         plugin          lightbox
2 Summary:        DokuWiki Light Box v2 plugin
3 Summary(pl.UTF-8):      Wtyczka lightboxv2 dla DokuWiki
4 Name:           dokuwiki-plugin-%{plugin}
5 Version:        20080808
6 Release:        1
7 License:        GPL v2
8 Group:          Applications/WWW
9 Source0:        http://laurent.beneytout.free.fr/lib/exe/fetch.php?media=projects:lightbox.zip
10 # Source0-md5:  1f28817f046b94c730f4a25a7c7b676e
11 URL:            http://wiki.splitbrain.org/plugin:lightboxv2
12 Requires:       dokuwiki >= 20061106
13 BuildArch:      noarch
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %define         dokuconf        /etc/webapps/dokuwiki
17 %define         dokudir /usr/share/dokuwiki
18 %define         plugindir       %{dokudir}/lib/plugins/%{plugin}
19
20 %description
21 Plugin to integrate LightBox v2 javascript animation in DokuWiki.
22
23 %prep
24 %setup -q -n %{plugin}
25 rm -f images/Thumbs.db
26
27 %install
28 rm -rf $RPM_BUILD_ROOT
29 install -d $RPM_BUILD_ROOT%{plugindir}
30 cp -a . $RPM_BUILD_ROOT%{plugindir}
31
32 %clean
33 rm -rf $RPM_BUILD_ROOT
34
35 %post
36 # force css cache refresh
37 if [ -f %{dokuconf}/local.php ]; then
38         touch %{dokuconf}/local.php
39 fi
40
41 %files
42 %defattr(644,root,root,755)
43 %dir %{plugindir}
44 %{plugindir}/*.css
45 %{plugindir}/*.js
46 %{plugindir}/images
This page took 0.019602 seconds and 2 git commands to generate.