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