]> git.pld-linux.org Git - packages/dokuwiki-plugin-tag.git/blob - dokuwiki-plugin-tag.spec
up to 20120328
[packages/dokuwiki-plugin-tag.git] / dokuwiki-plugin-tag.spec
1 %define         plugin          tag
2 Summary:        DokuWiki Tag Plugin
3 Name:           dokuwiki-plugin-%{plugin}
4 Version:        20120328
5 Release:        1
6 License:        GPL v2
7 Group:          Applications/WWW
8 Source0:        http://github.com/dokufreaks/plugin-tag/tarball/master/%{name}-%{version}.tgz
9 # Source0-md5:  ddfb8d16b315e61ca68e5b6daa7d305d
10 URL:            http://www.dokuwiki.org/plugin:tag
11 Requires:       dokuwiki >= 20070626
12 BuildArch:      noarch
13 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15 %define         dokuconf        /etc/webapps/dokuwiki
16 %define         dokudir         /usr/share/dokuwiki
17 %define         plugindir       %{dokudir}/lib/plugins/%{plugin}
18 %define         find_lang       %{_usrlibrpm}/dokuwiki-find-lang.sh %{buildroot}
19
20 %description
21 The Tag Plugin lets you assign category tags to wiki pages. It will
22 display a list of links to the tag pages in the tag namespace
23 specified in the configuration.
24
25 %prep
26 %setup -qc
27 mv *-%{plugin}-*/* .
28
29 version=$(awk '/^date/{print $2}' plugin.info.txt)
30 if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
31         : %%{version} mismatch
32 #       exit 1
33 fi
34
35 %install
36 rm -rf $RPM_BUILD_ROOT
37 install -d $RPM_BUILD_ROOT%{plugindir}
38 cp -a . $RPM_BUILD_ROOT%{plugindir}
39 rm -f $RPM_BUILD_ROOT%{plugindir}/{COPYING,README}
40
41 %find_lang %{name}.lang
42
43 %clean
44 rm -rf $RPM_BUILD_ROOT
45
46 %post
47 # force css cache refresh
48 if [ -f %{dokuconf}/local.php ]; then
49         touch %{dokuconf}/local.php
50 fi
51
52 %files -f %{name}.lang
53 %defattr(644,root,root,755)
54 %doc README
55 %dir %{plugindir}
56 %{plugindir}/*.css
57 %{plugindir}/*.js
58 %{plugindir}/*.php
59 %{plugindir}/*.txt
60 %{plugindir}/conf
61 %{plugindir}/images
62 %{plugindir}/syntax
This page took 0.086279 seconds and 4 git commands to generate.