up to 20160818
[packages/dokuwiki-plugin-poldek.git] / dokuwiki-plugin-poldek.spec
CommitLineData
de11571e 1%define plugin poldek
46f3da1b 2%define php_min_version 5.3.0
de11571e
ER
3Summary: DokuWiki poldek Plugin
4Summary(pl.UTF-8): Wtyczka Include (dołączania) dla poldek
5Name: dokuwiki-plugin-%{plugin}
46f3da1b 6Version: 20160818
de11571e
ER
7Release: 1
8License: GPL v2
9Group: Applications/WWW
e6c04f1e 10Source0: https://github.com/glensc/dokuwiki-plugin-poldek/archive/%{version}/%{plugin}-%{version}.tar.gz
46f3da1b 11# Source0-md5: 592cba069fc705121cced99b55d81548
910e28de 12URL: https://github.com/glensc/dokuwiki-plugin-poldek
de11571e 13Requires: dokuwiki >= 20080505
46f3da1b 14Requires: php(core) >= %{php_min_version}
de11571e
ER
15Requires: poldek
16BuildArch: noarch
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19%define dokudir /usr/share/dokuwiki
20%define plugindir %{dokudir}/lib/plugins/%{plugin}
e6c04f1e 21%define _sysconfdir /etc/webapps/dokuwiki
15de5387 22%define find_lang %{_usrlibrpm}/dokuwiki-find-lang.sh %{buildroot}
de11571e 23
de11571e
ER
24%description
25Plugin to display package NVR from repository.
26
27{{poldek>PKGNAME}} is the syntax.
28
29%prep
e6c04f1e 30%setup -q
de11571e 31
46f3da1b 32%build
910e28de
ER
33version=$(awk '/date/{print $2}' plugin.info.txt)
34if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
35 : %%{version} mismatch
de11571e
ER
36 exit 1
37fi
de11571e
ER
38
39%install
40rm -rf $RPM_BUILD_ROOT
e6c04f1e 41install -d $RPM_BUILD_ROOT{%{plugindir},%{_sysconfdir}}
de11571e 42cp -a . $RPM_BUILD_ROOT%{plugindir}
e6c04f1e 43mv $RPM_BUILD_ROOT{%{plugindir},%{_sysconfdir}}/poldek.conf
de11571e 44
15de5387
ER
45%find_lang %{name}.lang
46
de11571e
ER
47%clean
48rm -rf $RPM_BUILD_ROOT
49
15de5387 50%files -f %{name}.lang
de11571e 51%defattr(644,root,root,755)
e6c04f1e 52%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/poldek.conf
de11571e
ER
53%dir %{plugindir}
54%{plugindir}/*.php
910e28de 55%{plugindir}/*.txt
15de5387 56%{plugindir}/conf
This page took 0.164064 seconds and 4 git commands to generate.