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