]> git.pld-linux.org Git - packages/dokuwiki-plugin-poldek.git/commitdiff
up to 20130610 auto/th/dokuwiki-plugin-poldek-20130610-1
authorElan Ruusamäe <glen@delfi.ee>
Mon, 8 Jun 2015 17:45:11 +0000 (20:45 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Mon, 8 Jun 2015 17:45:11 +0000 (20:45 +0300)
dokuwiki-plugin-poldek.spec

index 5891dd539a458f91734a0eec3d09c325e39cd277..49013f40c548357774e703a01626b148f1eaabb5 100644 (file)
@@ -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
This page took 0.194865 seconds and 4 git commands to generate.