]> git.pld-linux.org Git - packages/dokuwiki-plugin-poldek.git/blob - dokuwiki-plugin-poldek.spec
- up to 20120827
[packages/dokuwiki-plugin-poldek.git] / dokuwiki-plugin-poldek.spec
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:        20120827
6 Release:        1
7 License:        GPL v2
8 Group:          Applications/WWW
9 Source0:        https://github.com/glensc/dokuwiki-plugin-poldek/tarball/%{version}/%{plugin}-%{version}.tgz
10 # Source0-md5:  397a143d79fe6e0dac29c94e12e1f93e
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         find_lang       %{_usrlibrpm}/dokuwiki-find-lang.sh %{buildroot}
20
21 %description
22 Plugin to display package NVR from repository.
23
24 {{poldek>PKGNAME}} is the syntax.
25
26 %prep
27 %setup -qc
28 mv *-%{plugin}-*/* .
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}
39 cp -a . $RPM_BUILD_ROOT%{plugindir}
40
41 %find_lang %{name}.lang
42
43 %clean
44 rm -rf $RPM_BUILD_ROOT
45
46 %files -f %{name}.lang
47 %defattr(644,root,root,755)
48 %dir %{plugindir}
49 %{plugindir}/*.php
50 %{plugindir}/*.txt
51 %{plugindir}/conf
This page took 0.051119 seconds and 3 git commands to generate.