]> git.pld-linux.org Git - SPECS.git/blob - dokuwiki-plugin-pagemoveng.spec
SPECS updated Sun 1 Aug 20:28:02 CEST 2021
[SPECS.git] / dokuwiki-plugin-pagemoveng.spec
1 %define         plugin          pagemoveng
2 Summary:        DokuWiki PageMove plugin
3 Summary(pl.UTF-8):      Wtyczka PageMove dla DokuWiki
4 Name:           dokuwiki-plugin-%{plugin}
5 Version:        20110322
6 Release:        0.1
7 License:        GPL v2
8 Group:          Applications/WWW
9 Source0:        https://github.com/dokufreaks/plugin-%{plugin}/tarball/master#/%{plugin}.tgz
10 # Source0-md5:  9355168bf7f2526dbdce0a33fc3ff2a2
11 URL:            https://github.com/dokufreaks/plugin-pagemoveng
12 BuildRequires:  sed >= 4.0
13 Requires:       dokuwiki >= 20060309
14 BuildArch:      noarch
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %define         dokuconf        /etc/webapps/dokuwiki
18 %define         dokudir         /usr/share/dokuwiki
19 %define         plugindir       %{dokudir}/lib/plugins/%{plugin}
20 %define         find_lang       %{_usrlibrpm}/dokuwiki-find-lang.sh %{buildroot}
21
22 %description
23 This plugin is designed for moving and renaming pages within your Wiki
24 whilst maintaining the integrity of links to and from the page.
25
26 In full you can:
27 - Rename a page.
28 - Move a page to an existing namspace.
29 - Move a page to a new namespace.
30 - A combination of the above.
31
32 %description -l pl.UTF-8
33 Ta wtyczka służy do przesuwania i zmiany nazw stron wewnątrz Wiki z
34 zachowaniem integralności odnośników z i do strony.
35
36 W zupełności można:
37 - usunąć stronę,
38 - przenieść stronę do istniejącej przestrzeni nazw,
39 - przenieść stronę do nowej przestrzeni nazw,
40 - wykonać połączenie powyższych.
41
42 %prep
43 %setup -qc
44 # for github urls:
45 mv *-%{plugin}-*/* .
46 %{__rm} *-%{plugin}-*/.gitignore
47
48 version=$(awk '/^date/{print $2}' plugin.info.txt)
49 if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
50         : %%{version} mismatch
51 #       exit 1
52 fi
53
54 %install
55 rm -rf $RPM_BUILD_ROOT
56 install -d $RPM_BUILD_ROOT%{plugindir}
57 cp -a . $RPM_BUILD_ROOT%{plugindir}
58
59 %find_lang %{name}.lang
60
61 %clean
62 rm -rf $RPM_BUILD_ROOT
63
64 %post
65 # force css cache refresh
66 if [ -f %{dokuconf}/local.php ]; then
67         touch %{dokuconf}/local.php
68 fi
69
70 %files -f %{name}.lang
71 %defattr(644,root,root,755)
72 %dir %{plugindir}
73 %{plugindir}/*.css
74 %{plugindir}/*.js
75 %{plugindir}/*.php
76 %{plugindir}/*.txt
This page took 0.660376 seconds and 3 git commands to generate.