- add ca-va -> ca_VA
[packages/dokuwiki-plugin-tag.git] / dokuwiki-plugin-tag.spec
CommitLineData
9db878fe
ER
1%define plugin tag
2Summary: DokuWiki Tag Plugin
3Name: dokuwiki-plugin-%{plugin}
4Version: 20080707
5Release: 1
6License: GPL v2
7Group: Applications/WWW
8Source0: http://www.chimeric.de/_src/plugin-tag.tgz
9# Source0-md5: 6f9bc7915fc273a161c093ce525f0abc
10Source1: dokuwiki-find-lang.sh
11URL: http://www.dokuwiki.org/plugin:tag
12Requires: dokuwiki >= 20070626
13BuildArch: noarch
14BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
bc9c3712 16%define dokuconf /etc/webapps/dokuwiki
9db878fe
ER
17%define dokudir /usr/share/dokuwiki
18%define plugindir %{dokudir}/lib/plugins/%{plugin}
19
20%description
21The Tag Plugin lets you assign category tags to wiki pages. It will
22display a list of links to the tag pages in the tag namespace
23specified in the configuration.
24
25%prep
26%setup -q -n %{plugin}
db893b2f
ER
27if [ $(cat VERSION | tr -d -) != %{version} ]; then
28 : %%{version} mismatch, should be: $(cat VERSION | tr -d -)
29 exit 1
30fi
9db878fe
ER
31
32%install
33rm -rf $RPM_BUILD_ROOT
34install -d $RPM_BUILD_ROOT%{plugindir}
35cp -a . $RPM_BUILD_ROOT%{plugindir}
36rm -f $RPM_BUILD_ROOT%{plugindir}/{COPYING,README,VERSION}
37
38# find locales
39sh %{SOURCE1} %{name}.lang
40
41%clean
42rm -rf $RPM_BUILD_ROOT
43
bc9c3712
ER
44%post
45# force css cache refresh
46if [ -f %{dokuconf}/local.php ]; then
47 touch %{dokuconf}/local.php
48fi
49
9db878fe
ER
50%files -f %{name}.lang
51%defattr(644,root,root,755)
52%doc README VERSION
53%dir %{plugindir}
54%{plugindir}/*.php
55%{plugindir}/*.css
56%{plugindir}/*.js
57%{plugindir}/conf
58%{plugindir}/images
59%{plugindir}/syntax
This page took 0.09653 seconds and 4 git commands to generate.