- just collect diffs against original lightboxy 2.04 and resulting this tarball:
[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.1
7 License:        GPL v2
8 Group:          Applications/WWW
9 Source0:        http://www.lokeshdhakar.com/projects/lightbox2/releases/lightbox2.04.zip
10 # Source0-md5:  c930f97a5791f202d7c48303de36f282
11 Patch0:         %{name}.patch
12 URL:            http://wiki.splitbrain.org/plugin:lightboxv2
13 Requires:       dokuwiki >= 20061106
14 BuildArch:      noarch
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %define         dokuconf        /etc/webapps/dokuwiki
18 %define         dokudir /usr/share/dokuwiki
19 %define         plugindir       %{dokudir}/lib/plugins/%{plugin}
20
21 %description
22 Plugin to integrate LightBox v2 javascript animation in DokuWiki.
23
24 %prep
25 %setup -qc -n %{plugin}
26 (
27         cat js/prototype.js
28         cat js/scriptaculous.js
29         cat js/builder.js
30         cat js/effects.js
31         cat js/lightbox.js
32 ) > script.js
33 %patch0 -p1
34
35 rm -f images/bullet.gif
36 rm -f images/donate-button.gif
37 rm -f images/download-icon.gif
38 rm -f images/image-1.jpg
39 rm -f images/thumb-1.jpg
40
41 %install
42 rm -rf $RPM_BUILD_ROOT
43 install -d $RPM_BUILD_ROOT%{plugindir}
44 cp -a images script.js $RPM_BUILD_ROOT%{plugindir}
45 cp -a css/lightbox.css $RPM_BUILD_ROOT%{plugindir}/screen.css
46
47 %clean
48 rm -rf $RPM_BUILD_ROOT
49
50 %post
51 # force css cache refresh
52 if [ -f %{dokuconf}/local.php ]; then
53         touch %{dokuconf}/local.php
54 fi
55
56 %files
57 %defattr(644,root,root,755)
58 %dir %{plugindir}
59 %{plugindir}/*.css
60 %{plugindir}/*.js
61 %{plugindir}/images
This page took 0.031563 seconds and 3 git commands to generate.