]>
Commit | Line | Data |
---|---|---|
149aff42 ER |
1 | %define plugin pageredirect |
2 | %define php_min_version 5.0.0 | |
3 | %include /usr/lib/rpm/macros.php | |
9e992c14 | 4 | Summary: DokuWiki Page Redirect Plugin |
114ffba6 | 5 | Summary(pl.UTF-8): Wtyczka Page Redirect (przekierowywania stron) dla DokuWiki |
9e992c14 | 6 | Name: dokuwiki-plugin-%{plugin} |
a3fdabd4 ER |
7 | Version: 20140414 |
8 | Release: 1 | |
9e992c14 ER |
9 | License: GPL v2 |
10 | Group: Applications/WWW | |
91d9e132 | 11 | Source0: https://github.com/glensc/dokuwiki-plugin-pageredirect/tarball/%{version}/%{name}-%{version}.tgz |
a3fdabd4 | 12 | # Source0-md5: ca7026838d5dc84eeabddb958f479d45 |
91d9e132 | 13 | URL: https://www.dokuwiki.org/plugin:pageredirect |
149aff42 | 14 | BuildRequires: rpm-php-pearprov >= 4.4.2-11 |
421b7f59 | 15 | BuildRequires: rpmbuild(macros) >= 1.553 |
9e992c14 | 16 | Requires: dokuwiki >= 20061106 |
421b7f59 | 17 | Requires: php(core) >= %{php_min_version} |
9e992c14 ER |
18 | BuildArch: noarch |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
ad1e2249 | 21 | %define dokuconf /etc/webapps/dokuwiki |
83cb83b9 ER |
22 | %define dokudir /usr/share/dokuwiki |
23 | %define plugindir %{dokudir}/lib/plugins/%{plugin} | |
149aff42 | 24 | %define find_lang %{_usrlibrpm}/dokuwiki-find-lang.sh %{buildroot} |
9e992c14 ER |
25 | |
26 | %description | |
27 | This plugin allows you to redirect users between pages and namespaces | |
28 | by adding a particular pattern to a page. | |
29 | ||
114ffba6 JB |
30 | %description -l pl.UTF-8 |
31 | Ta wtyczka pozwala przekierowywać użytkowników między stronami i | |
32 | przestrzeniami nazw poprzez dodawanie określonych oznaczeń na stronie. | |
33 | ||
9e992c14 | 34 | %prep |
149aff42 | 35 | %setup -qc |
a3fdabd4 | 36 | mv *-%{plugin}-*/{.??*,*} . |
9e992c14 ER |
37 | |
38 | %install | |
39 | rm -rf $RPM_BUILD_ROOT | |
83cb83b9 ER |
40 | install -d $RPM_BUILD_ROOT%{plugindir} |
41 | cp -a . $RPM_BUILD_ROOT%{plugindir} | |
a3fdabd4 | 42 | rm -rf $RPM_BUILD_ROOT%{plugindir}/{.travis.yml,_test} |
9e992c14 ER |
43 | |
44 | # find locales | |
149aff42 | 45 | %find_lang %{name}.lang |
9e992c14 ER |
46 | |
47 | %clean | |
48 | rm -rf $RPM_BUILD_ROOT | |
49 | ||
ad1e2249 ER |
50 | %post |
51 | # force css cache refresh | |
52 | if [ -f %{dokuconf}/local.php ]; then | |
53 | touch %{dokuconf}/local.php | |
54 | fi | |
55 | ||
9e992c14 ER |
56 | %files -f %{name}.lang |
57 | %defattr(644,root,root,755) | |
83cb83b9 | 58 | %dir %{plugindir} |
149aff42 | 59 | %{plugindir}/*.txt |
83cb83b9 ER |
60 | %{plugindir}/*.php |
61 | %{plugindir}/*.css | |
62 | %{plugindir}/conf | |
63 | %{plugindir}/images |