- build using tarball, releng version on DEVEL branch
[packages/dokuwiki-plugin-lightbox.git] / dokuwiki-plugin-lightbox.spec
CommitLineData
ac30c106
ER
1%define plugin lightbox
2Summary: DokuWiki Light Box v2 plugin
3Summary(pl.UTF-8): Wtyczka lightboxv2 dla DokuWiki
4Name: dokuwiki-plugin-%{plugin}
7b6f32f6 5Version: 20090312
372f2a5c 6Release: 2
ac30c106
ER
7License: GPL v2
8Group: Applications/WWW
372f2a5c
ER
9Source0: http://glen.alkohol.ee/pld/lightbox-%{version}.tar.bz2
10# Source0-md5: 7c9c54566b14175b9626e7a6f8ba5ee5
ac30c106
ER
11URL: http://wiki.splitbrain.org/plugin:lightboxv2
12Requires: dokuwiki >= 20061106
13BuildArch: noarch
14BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16%define dokuconf /etc/webapps/dokuwiki
7b6f32f6 17%define dokudir /usr/share/dokuwiki
ac30c106
ER
18%define plugindir %{dokudir}/lib/plugins/%{plugin}
19
20%description
21Plugin to integrate LightBox v2 javascript animation in DokuWiki.
22
23%prep
372f2a5c
ER
24%setup -q -n %{plugin}
25version=$(cat VERSION)
26if [ $(echo "$version" | tr -d -) != %{version} ]; then
27 : %%{version} mismatch, should be: $(echo "$version" | tr -d -)
28 exit 1
29fi
e45b1eac 30
ac30c106
ER
31%install
32rm -rf $RPM_BUILD_ROOT
33install -d $RPM_BUILD_ROOT%{plugindir}
372f2a5c
ER
34cp -a . $RPM_BUILD_ROOT%{plugindir}
35rm -f $RPM_BUILD_ROOT%{plugindir}/{AUTHORS,VERSION}
ac30c106
ER
36
37%clean
38rm -rf $RPM_BUILD_ROOT
39
40%post
41# force css cache refresh
42if [ -f %{dokuconf}/local.php ]; then
43 touch %{dokuconf}/local.php
44fi
45
46%files
47%defattr(644,root,root,755)
e81ac42e 48%doc AUTHORS
ac30c106
ER
49%dir %{plugindir}
50%{plugindir}/*.css
51%{plugindir}/*.js
52%{plugindir}/images
This page took 0.083709 seconds and 4 git commands to generate.