]>
Commit | Line | Data |
---|---|---|
77628f0b ER |
1 | %define subver 2010-11-05 |
2 | %define ver %(echo %{subver} | tr -d -) | |
ef792ce5 ER |
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} | |
77628f0b | 7 | Version: %{ver} |
d9566ee0 | 8 | Release: 3 |
ef792ce5 | 9 | License: GPL v2 |
77628f0b ER |
10 | Source0: http://github.com/glensc/dokuwiki-plugin-eventum/zipball/%{subver}#/%{plugin}-%{version}.zip |
11 | # Source0-md5: ff1da92b0781e273eeb8541920c5a08e | |
ef792ce5 | 12 | Group: Applications/WWW |
4e634456 ER |
13 | URL: http://www.dokuwiki.org/plugin:eventum |
14 | BuildRequires: rpmbuild(macros) >= 1.520 | |
48c899e3 | 15 | BuildRequires: unzip |
242a2a01 | 16 | Requires: dokuwiki >= 20080505 |
28ff99ea | 17 | Requires: php-pear-XML_RPC |
ef792ce5 ER |
18 | BuildArch: noarch |
19 | BuildRoot: %{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 | 27 | Adds Eventum link button to edit toolbar. |
ef792ce5 | 28 | |
1cbc2090 ER |
29 | Also adds extra info to Eventum interwiki links fetched from Eventum |
30 | via XML_RPC. | |
28ff99ea | 31 | |
ef792ce5 | 32 | %prep |
4e634456 ER |
33 | %setup -qc |
34 | mv *-%{plugin}-*/* . | |
642c4c93 | 35 | rm *-%{plugin}-*/.gitignore |
ef792ce5 | 36 | |
de06070b | 37 | version=$(awk '/date/{print $2}' plugin.info.txt) |
1cbc2090 ER |
38 | if [ "$(echo "$version" | tr -d -)" != %{version} ]; then |
39 | : %%{version} mismatch | |
40 | exit 1 | |
41 | fi | |
42 | ||
ef792ce5 ER |
43 | %install |
44 | rm -rf $RPM_BUILD_ROOT | |
45 | install -d $RPM_BUILD_ROOT%{plugindir} | |
46 | cp -a . $RPM_BUILD_ROOT%{plugindir} | |
4e634456 ER |
47 | |
48 | # find locales | |
49 | %find_lang %{name}.lang | |
ef792ce5 ER |
50 | |
51 | %clean | |
52 | rm -rf $RPM_BUILD_ROOT | |
53 | ||
642c4c93 ER |
54 | %post |
55 | # force js/css cache refresh | |
56 | if [ -f %{dokuconf}/local.php ]; then | |
57 | touch %{dokuconf}/local.php | |
58 | fi | |
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 |