]> git.pld-linux.org Git - packages/dokuwiki-plugin-yql.git/blame - dokuwiki-plugin-yql.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/dokuwiki-plugin-yql.git] / dokuwiki-plugin-yql.spec
CommitLineData
e336b0ce
ER
1%define plugin yql
2%define php_min_version 5.0.0
e336b0ce
ER
3Summary: A plugin for embedding results of the Yahoo! YQL query API in a page
4Name: dokuwiki-plugin-%{plugin}
5Version: 20110703
6Release: 0.1
7License: GPL v2
8Group: Applications/WWW
9Source0: http://github.com/Michitux/dokuwiki-plugin-yql/tarball/master#/%{plugin}.tgz
10# Source0-md5: b409b0a93659d7b0c36efd6e8cd0a312
11URL: http://www.dokuwiki.org/plugin:yql
12BuildRequires: rpm-php-pearprov >= 4.4.2-11
13BuildRequires: rpmbuild(macros) >= 1.520
14Requires: dokuwiki >= 20090214
15Requires: php-common >= 4:%{php_min_version}
16Requires: php-pcre
17BuildArch: noarch
18BuildRoot: %{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
24%description
25This plugin allows to embed results from the YQL (Yahoo! Query
26Language) API of Yahoo! in a wiki page. The plugin only works for
27certain queries and certain query fields and has mainly been created
28because I needed to embed a certain query result. The plugin does not
29support queries that need authorization or return one single result
30(and not a list of results). It is recommended that you try out your
31query in the YQL Console in order to find the necessary parameters for
32the plugin.
33
34%prep
35%setup -qc
36mv *-%{plugin}-*/* .
37
38version=$(awk '/^date/{print $2}' plugin.info.txt)
39if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
40 : %%{version} mismatch
41 exit 1
42fi
43
44%install
45rm -rf $RPM_BUILD_ROOT
46install -d $RPM_BUILD_ROOT%{plugindir}
47cp -a . $RPM_BUILD_ROOT%{plugindir}
48%{__rm} $RPM_BUILD_ROOT%{plugindir}/example_usage.png
49
50%clean
51rm -rf $RPM_BUILD_ROOT
52
53%files
54%defattr(644,root,root,755)
55%dir %{plugindir}
56%{plugindir}/*.php
57%{plugindir}/*.txt
This page took 0.254871 seconds and 4 git commands to generate.