32e23bdfaf3d60077a9ed864349c58f22e0073c2
[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:        20090312
6 Release:        2
7 License:        GPL v2
8 Group:          Applications/WWW
9 Source0:        http://glen.alkohol.ee/pld/lightbox-%{version}.tar.bz2
10 # Source0-md5:  7c9c54566b14175b9626e7a6f8ba5ee5
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 version=$(cat VERSION)
26 if [ $(echo "$version" | tr -d -) != %{version} ]; then
27         : %%{version} mismatch, should be: $(echo "$version" | tr -d -)
28         exit 1
29 fi
30
31 %install
32 rm -rf $RPM_BUILD_ROOT
33 install -d $RPM_BUILD_ROOT%{plugindir}
34 cp -a . $RPM_BUILD_ROOT%{plugindir}
35 rm -f $RPM_BUILD_ROOT%{plugindir}/{AUTHORS,VERSION}
36
37 %clean
38 rm -rf $RPM_BUILD_ROOT
39
40 %post
41 # force css cache refresh
42 if [ -f %{dokuconf}/local.php ]; then
43         touch %{dokuconf}/local.php
44 fi
45
46 %files
47 %defattr(644,root,root,755)
48 %doc AUTHORS
49 %dir %{plugindir}
50 %{plugindir}/*.css
51 %{plugindir}/*.js
52 %{plugindir}/images
This page took 0.056821 seconds and 2 git commands to generate.