]> git.pld-linux.org Git - packages/dokuwiki-plugin-database.git/blame - dokuwiki-plugin-database.spec
- add datadir.patch, simplify
[packages/dokuwiki-plugin-database.git] / dokuwiki-plugin-database.spec
CommitLineData
5172b49a
ER
1%define plugin database
2Summary: Design your own database and manage the data within the wiki
3Summary(pl.UTF-8): Wtyczka database dla DokuWiki
4Name: dokuwiki-plugin-%{plugin}
5Version: 1.0.4
0f96f812 6Release: 0.3
5172b49a
ER
7License: GPL v2
8Group: Applications/WWW
9Source0: http://www.langhamassociates.com/media/database.tgz
10# Source0-md5: 14ae5bb2f6c40a525220a815611892ee
0f96f812 11Patch0: datadir.patch
5172b49a
ER
12URL: http://wiki.splitbrain.org/plugin:database
13BuildRequires: rpmbuild(macros) >= 1.520
14BuildRequires: sed >= 4.0
0f96f812 15Requires: dokuwiki >= 20090214b-2
5172b49a
ER
16BuildArch: noarch
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19%define dokuconf /etc/webapps/dokuwiki
20%define dokudir /usr/share/dokuwiki
21%define plugindir %{dokudir}/lib/plugins/%{plugin}
a298b48e 22%define find_lang %{_usrlibrpm}/dokuwiki-find-lang.sh %{buildroot}
5172b49a
ER
23
24%description
25The database Plugin lets you create tables and columns and to populate
26them with content.
27
28The content can then be sorted and filtered by any of the columns.
29
30There are a number of built-in lookups such as Gender, i.e. Male and
31Female, Title, i.e. Mr., Ms, etc.
32
33You can also use the contents of one table as a reference table, for
34example a table of countries can be used so that the name of the
35country is only held once in one table and other tables refer to it...
36
37%prep
38%setup -q -cn %{plugin}
0f96f812
ER
39mv lib/plugins/%{plugin}/* .
40%{__sed} -i -e 's,\r$,,' *.php
41%patch0 -p1
5172b49a 42
0f96f812 43version=$(awk -Fv '$0 == " * v%{version}"{print $2}' action.php)
5172b49a
ER
44if [ "$version" != %{version} ]; then
45 : %%{version} mismatch
46 exit 1
47fi
48
49%install
50rm -rf $RPM_BUILD_ROOT
51install -d $RPM_BUILD_ROOT%{plugindir}
0f96f812 52cp -a . $RPM_BUILD_ROOT%{plugindir}
5172b49a
ER
53rm -f $RPM_BUILD_ROOT%{plugindir}/{CREDITS,changelog}
54rm -f $RPM_BUILD_ROOT%{plugindir}/{COPYING,README,VERSION}
55
56# find locales
57%find_lang %{name}.lang
58
59%clean
60rm -rf $RPM_BUILD_ROOT
61
62%post
63# force css cache refresh
64if [ -f %{dokuconf}/local.php ]; then
65 touch %{dokuconf}/local.php
66fi
67
68%files -f %{name}.lang
69%defattr(644,root,root,755)
70%dir %{plugindir}
71%{plugindir}/*.php
72%{plugindir}/images
This page took 0.113713 seconds and 4 git commands to generate.