]> git.pld-linux.org Git - packages/dokuwiki-plugin-nbsp.git/commitdiff
- new auto/th/dokuwiki-plugin-nbsp-20081122-1
authorElan Ruusamäe <glen@pld-linux.org>
Thu, 3 Jun 2010 09:37:05 +0000 (09:37 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    dokuwiki-plugin-nbsp.spec -> 1.1

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

diff --git a/dokuwiki-plugin-nbsp.spec b/dokuwiki-plugin-nbsp.spec
new file mode 100644 (file)
index 0000000..b129172
--- /dev/null
@@ -0,0 +1,50 @@
+%define                plugin          nbsp
+Summary:       DokuWiki Syntax plugin for Non-breaking Space
+Name:          dokuwiki-plugin-%{plugin}
+Version:       20081122
+Release:       1
+License:       GPL v2
+Group:         Applications/WWW
+Source0:       http://dev.mwat.de/dw/syntax_plugin_nbsp.zip
+# Source0-md5: 10c5b0f226652cd70af15246cae75401
+URL:           http://www.dokuwiki.org/plugin:nbsp
+BuildRequires: rpmbuild(macros) >= 1.520
+Requires:      dokuwiki >= 20050713
+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
+A Syntax plugin to insert Non-breaking Space in documents.
+
+%prep
+%setup -qc
+mv %{plugin}/* .
+
+version=$(awk -F"'" '/date.*=>/{print $4}' syntax.php)
+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 css cache refresh
+if [ -f %{dokuconf}/local.php ]; then
+       touch %{dokuconf}/local.php
+fi
+
+%files
+%defattr(644,root,root,755)
+%dir %{plugindir}
+%{plugindir}/*.php
This page took 0.059801 seconds and 4 git commands to generate.