[packages/dokuwiki-plugin-poldek] up to 20130610
glen
glen at pld-linux.org
Mon Jun 8 19:45:25 CEST 2015
commit e6c04f1ea26cfb48c0a5b37d7c1daad7a2e19059
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Mon Jun 8 20:45:11 2015 +0300
up to 20130610
dokuwiki-plugin-poldek.spec | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/dokuwiki-plugin-poldek.spec b/dokuwiki-plugin-poldek.spec
index 5891dd5..49013f4 100644
--- a/dokuwiki-plugin-poldek.spec
+++ b/dokuwiki-plugin-poldek.spec
@@ -2,12 +2,12 @@
Summary: DokuWiki poldek Plugin
Summary(pl.UTF-8): Wtyczka Include (dołączania) dla poldek
Name: dokuwiki-plugin-%{plugin}
-Version: 20120827
+Version: 20130610
Release: 1
License: GPL v2
Group: Applications/WWW
-Source0: https://github.com/glensc/dokuwiki-plugin-poldek/tarball/%{version}/%{plugin}-%{version}.tgz
-# Source0-md5: 397a143d79fe6e0dac29c94e12e1f93e
+Source0: https://github.com/glensc/dokuwiki-plugin-poldek/archive/%{version}/%{plugin}-%{version}.tar.gz
+# Source0-md5: 82625a9f8fdcc6c2baaa8391847e0b04
URL: https://github.com/glensc/dokuwiki-plugin-poldek
Requires: dokuwiki >= 20080505
Requires: poldek
@@ -16,6 +16,7 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define dokudir /usr/share/dokuwiki
%define plugindir %{dokudir}/lib/plugins/%{plugin}
+%define _sysconfdir /etc/webapps/dokuwiki
%define find_lang %{_usrlibrpm}/dokuwiki-find-lang.sh %{buildroot}
%description
@@ -24,8 +25,7 @@ Plugin to display package NVR from repository.
{{poldek>PKGNAME}} is the syntax.
%prep
-%setup -qc
-mv *-%{plugin}-*/* .
+%setup -q
version=$(awk '/date/{print $2}' plugin.info.txt)
if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
@@ -35,8 +35,9 @@ fi
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{plugindir}
+install -d $RPM_BUILD_ROOT{%{plugindir},%{_sysconfdir}}
cp -a . $RPM_BUILD_ROOT%{plugindir}
+mv $RPM_BUILD_ROOT{%{plugindir},%{_sysconfdir}}/poldek.conf
%find_lang %{name}.lang
@@ -45,6 +46,7 @@ rm -rf $RPM_BUILD_ROOT
%files -f %{name}.lang
%defattr(644,root,root,755)
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/poldek.conf
%dir %{plugindir}
%{plugindir}/*.php
%{plugindir}/*.txt
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/dokuwiki-plugin-poldek.git/commitdiff/e6c04f1ea26cfb48c0a5b37d7c1daad7a2e19059
More information about the pld-cvs-commit
mailing list