- BR: unzip
[packages/dokuwiki-plugin-eventum.git] / dokuwiki-plugin-eventum.spec
1 %define         subver  2010-11-05
2 %define         ver             %(echo %{subver} | tr -d -)
3 %define         plugin          eventum
4 Summary:        DokuWiki Eventum Plugin
5 Summary(pl.UTF-8):      Wtyczka Include (dołączania) dla Eventum
6 Name:           dokuwiki-plugin-%{plugin}
7 Version:        %{ver}
8 Release:        3
9 License:        GPL v2
10 Source0:        http://github.com/glensc/dokuwiki-plugin-eventum/zipball/%{subver}#/%{plugin}-%{version}.zip
11 # Source0-md5:  ff1da92b0781e273eeb8541920c5a08e
12 Group:          Applications/WWW
13 URL:            http://www.dokuwiki.org/plugin:eventum
14 BuildRequires:  rpmbuild(macros) >= 1.520
15 BuildRequires:  unzip
16 Requires:       dokuwiki >= 20080505
17 Requires:       php-pear-XML_RPC
18 BuildArch:      noarch
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %define         dokuconf        /etc/webapps/dokuwiki
22 %define         dokudir         /usr/share/dokuwiki
23 %define         plugindir       %{dokudir}/lib/plugins/%{plugin}
24 %define         find_lang       %{_usrlibrpm}/dokuwiki-find-lang.sh %{buildroot}
25
26 %description
27 Adds Eventum link button to edit toolbar.
28
29 Also adds extra info to Eventum interwiki links fetched from Eventum
30 via XML_RPC.
31
32 %prep
33 %setup -qc
34 mv *-%{plugin}-*/* .
35 rm *-%{plugin}-*/.gitignore
36
37 version=$(awk '/date/{print $2}' plugin.info.txt)
38 if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
39         : %%{version} mismatch
40         exit 1
41 fi
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT%{plugindir}
46 cp -a . $RPM_BUILD_ROOT%{plugindir}
47
48 # find locales
49 %find_lang %{name}.lang
50
51 %clean
52 rm -rf $RPM_BUILD_ROOT
53
54 %post
55 # force js/css cache refresh
56 if [ -f %{dokuconf}/local.php ]; then
57         touch %{dokuconf}/local.php
58 fi
59
60 %files -f %{name}.lang
61 %defattr(644,root,root,755)
62 %dir %{plugindir}
63 %{plugindir}/*.php
64 %{plugindir}/*.txt
65 %{plugindir}/*.css
66 %{plugindir}/conf
67 %{plugindir}/images
This page took 0.078628 seconds and 3 git commands to generate.