- new auto/th/dokuwiki-plugin-note-20090615-1
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 1 Nov 2010 17:01:33 +0000 (17:01 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dokuwiki-plugin-note.spec -> 1.1

dokuwiki-plugin-note.spec [new file with mode: 0644]

diff --git a/dokuwiki-plugin-note.spec b/dokuwiki-plugin-note.spec
new file mode 100644 (file)
index 0000000..ee7e9ed
--- /dev/null
@@ -0,0 +1,55 @@
+%define                plugin          note
+Summary:       DokuWiki note plugin
+Name:          dokuwiki-plugin-%{plugin}
+Version:       20090615
+Release:       1
+License:       GPL v2
+Group:         Applications/WWW
+Source0:       http://gauret.free.fr/fichiers/dokuwiki/dokuwiki-%{plugin}-%{version}.tgz
+# Source0-md5: 9121176dcb0c83ebd1d9008e949191ec
+URL:           http://www.dokuwiki.org/plugin:note
+BuildRequires: rpmbuild(macros) >= 1.520
+Requires:      dokuwiki >= 20090214
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                dokuconf        /etc/webapps/dokuwiki
+%define                dokudir         /usr/share/dokuwiki
+%define                plugindir       %{dokudir}/lib/plugins/%{plugin}
+
+%description
+This plugin allows you to create nice notes in your DokuWiki pages.
+
+%prep
+%setup -qc
+mv %{plugin}/* .
+rm %{plugin}/.gitignore
+
+version=$(awk '/date/{print $2}' info.txt)
+if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
+       : %%{version} mismatch
+       exit 1
+fi
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{plugindir}
+cp -a . $RPM_BUILD_ROOT%{plugindir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+# force js/css cache refresh
+if [ -f %{dokuconf}/local.php ]; then
+       touch %{dokuconf}/local.php
+fi
+
+%files
+%defattr(644,root,root,755)
+%dir %{plugindir}
+%{plugindir}/*.txt
+%{plugindir}/*.php
+%{plugindir}/*.css
+%{plugindir}/*.js
+%{plugindir}/images
This page took 0.144114 seconds and 4 git commands to generate.