]> git.pld-linux.org Git - packages/dokuwiki-plugin-tag.git/blame - dokuwiki-plugin-tag.spec
- barf if lang files not found
[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
16%define dokudir /usr/share/dokuwiki
17%define plugindir %{dokudir}/lib/plugins/%{plugin}
18
19%description
20The Tag Plugin lets you assign category tags to wiki pages. It will
21display a list of links to the tag pages in the tag namespace
22specified in the configuration.
23
24%prep
25%setup -q -n %{plugin}
db893b2f
ER
26if [ $(cat VERSION | tr -d -) != %{version} ]; then
27 : %%{version} mismatch, should be: $(cat VERSION | tr -d -)
28 exit 1
29fi
9db878fe
ER
30
31%install
32rm -rf $RPM_BUILD_ROOT
33install -d $RPM_BUILD_ROOT%{plugindir}
34cp -a . $RPM_BUILD_ROOT%{plugindir}
35rm -f $RPM_BUILD_ROOT%{plugindir}/{COPYING,README,VERSION}
36
37# find locales
38sh %{SOURCE1} %{name}.lang
39
40%clean
41rm -rf $RPM_BUILD_ROOT
42
43%files -f %{name}.lang
44%defattr(644,root,root,755)
45%doc README VERSION
46%dir %{plugindir}
47%{plugindir}/*.php
48%{plugindir}/*.css
49%{plugindir}/*.js
50%{plugindir}/conf
51%{plugindir}/images
52%{plugindir}/syntax
This page took 0.113615 seconds and 4 git commands to generate.