2 %define php_min_version 5.0.0
3 %include /usr/lib/rpm/macros.php
4 Summary: A plugin for embedding results of the Yahoo! YQL query API in a page
5 Name: dokuwiki-plugin-%{plugin}
9 Group: Applications/WWW
10 Source0: http://github.com/Michitux/dokuwiki-plugin-yql/tarball/master#/%{plugin}.tgz
11 # Source0-md5: b409b0a93659d7b0c36efd6e8cd0a312
12 URL: http://www.dokuwiki.org/plugin:yql
13 BuildRequires: rpm-php-pearprov >= 4.4.2-11
14 BuildRequires: rpmbuild(macros) >= 1.520
15 Requires: dokuwiki >= 20090214
16 Requires: php-common >= 4:%{php_min_version}
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 %define dokuconf /etc/webapps/dokuwiki
22 %define dokudir /usr/share/dokuwiki
23 %define plugindir %{dokudir}/lib/plugins/%{plugin}
26 This plugin allows to embed results from the YQL (Yahoo! Query
27 Language) API of Yahoo! in a wiki page. The plugin only works for
28 certain queries and certain query fields and has mainly been created
29 because I needed to embed a certain query result. The plugin does not
30 support queries that need authorization or return one single result
31 (and not a list of results). It is recommended that you try out your
32 query in the YQL Console in order to find the necessary parameters for
39 version=$(awk '/^date/{print $2}' plugin.info.txt)
40 if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
41 : %%{version} mismatch
46 rm -rf $RPM_BUILD_ROOT
47 install -d $RPM_BUILD_ROOT%{plugindir}
48 cp -a . $RPM_BUILD_ROOT%{plugindir}
49 %{__rm} $RPM_BUILD_ROOT%{plugindir}/example_usage.png
52 rm -rf $RPM_BUILD_ROOT
55 %defattr(644,root,root,755)