d49d9a458c11e9d78115c488b5f0198b969f990b
[packages/dokuwiki-plugin-lightbox.git] / dokuwiki-plugin-lightbox.spec
1 %define         plugin          lightbox
2 Summary:        DokuWiki Lightbox plugin
3 Summary(pl.UTF-8):      Wtyczka lightbox dla DokuWiki
4 Name:           dokuwiki-plugin-%{plugin}
5 Version:        20120103
6 Release:        1
7 License:        GPL v2
8 Group:          Applications/WWW
9 Source0:        https://github.com/downloads/glensc/dokuwiki-plugin-lightboxv2/lightbox-%{version}.tar.bz2
10 # Source0-md5:  5e2d78e8eaeb03288ff838be23214c7d
11 URL:            http://www.dokuwiki.org/plugin:lightboxv2
12 Requires:       dokuwiki >= 20111110
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 JavaScript animation in DokuWiki.
22
23 %prep
24 %setup -qc
25 mv %{plugin}/* .
26
27 version=$(cat VERSION)
28 if [ $(echo "$version" | tr -d -) != %{version} ]; then
29         : %%{version} mismatch, should be: $(echo "$version" | tr -d -)
30         exit 1
31 fi
32
33 %install
34 rm -rf $RPM_BUILD_ROOT
35 install -d $RPM_BUILD_ROOT%{plugindir}
36 cp -a . $RPM_BUILD_ROOT%{plugindir}
37 rm -f $RPM_BUILD_ROOT%{plugindir}/{AUTHORS,VERSION}
38
39 %clean
40 rm -rf $RPM_BUILD_ROOT
41
42 %post
43 # force css cache refresh
44 if [ -f %{dokuconf}/local.php ]; then
45         touch %{dokuconf}/local.php
46 fi
47
48 %files
49 %defattr(644,root,root,755)
50 %doc AUTHORS
51 %dir %{plugindir}
52 %{plugindir}/*.css
53 %{plugindir}/*.js
54 %{plugindir}/images
This page took 0.052799 seconds and 2 git commands to generate.