- package mysterically lost from th, rebuild
[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 Requires:       dokuwiki >= 20080505
16 Requires:       php-pear-XML_RPC
17 BuildArch:      noarch
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %define         dokuconf        /etc/webapps/dokuwiki
21 %define         dokudir         /usr/share/dokuwiki
22 %define         plugindir       %{dokudir}/lib/plugins/%{plugin}
23 %define         find_lang       %{_usrlibrpm}/dokuwiki-find-lang.sh %{buildroot}
24
25 %description
26 Adds Eventum link button to edit toolbar.
27
28 Also adds extra info to Eventum interwiki links fetched from Eventum
29 via XML_RPC.
30
31 %prep
32 %setup -qc
33 mv *-%{plugin}-*/* .
34 rm *-%{plugin}-*/.gitignore
35
36 version=$(awk '/date/{print $2}' plugin.info.txt)
37 if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
38         : %%{version} mismatch
39         exit 1
40 fi
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT%{plugindir}
45 cp -a . $RPM_BUILD_ROOT%{plugindir}
46
47 # find locales
48 %find_lang %{name}.lang
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %post
54 # force js/css cache refresh
55 if [ -f %{dokuconf}/local.php ]; then
56         touch %{dokuconf}/local.php
57 fi
58
59 %files -f %{name}.lang
60 %defattr(644,root,root,755)
61 %dir %{plugindir}
62 %{plugindir}/*.php
63 %{plugindir}/*.txt
64 %{plugindir}/*.css
65 %{plugindir}/conf
66 %{plugindir}/images
This page took 0.145207 seconds and 3 git commands to generate.