[packages/dokuwiki-plugin-orphanswanted] up to 20170625

glen glen at pld-linux.org
Thu Aug 17 22:16:55 CEST 2017


commit bac658638defd5d29d660986712c6b8f81f65c7a
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Aug 17 23:16:21 2017 +0300

    up to 20170625

 dokuwiki-plugin-orphanswanted.spec | 34 ++++++++++++++++++++++------------
 1 file changed, 22 insertions(+), 12 deletions(-)
---
diff --git a/dokuwiki-plugin-orphanswanted.spec b/dokuwiki-plugin-orphanswanted.spec
index 0c1e617..6087b14 100644
--- a/dokuwiki-plugin-orphanswanted.spec
+++ b/dokuwiki-plugin-orphanswanted.spec
@@ -1,16 +1,21 @@
+%define		subver	2017-06-25
+%define		ver		%(echo %{subver} | tr -d -)
 %define		plugin		orphanswanted
+%define		php_min_version 5.3.0
+%include	/usr/lib/rpm/macros.php
 Summary:	DokuWiki plugin to find orphan pages, Wanted pages with reference counts
 Name:		dokuwiki-plugin-%{plugin}
-Version:	20100411
-Release:	0.1
+Version:	%{ver}
+Release:	1
 License:	GPL v2
 Group:		Applications/WWW
-Source0:	http://github.com/downloads/andywebber/dokuwiki-plugin-orphanswanted/orphanswanted.zip
-# Source0-md5:	50e45168d9ac8d3bf7e663f4f274f57a
-URL:		http://www.dokuwiki.org/plugin:orphanswanted
-BuildRequires:	rpmbuild(macros) >= 1.520
-BuildRequires:	unzip
-Requires:	dokuwiki >= 20091225
+Source0:	https://github.com/lupo49/dokuwiki-plugin-orphanswanted/archive/163625f/%{plugin}-%{subver}.tar.gz
+# Source0-md5:	b14fbb365e9b9e0dfcde770e7b50a0d3
+URL:		https://www.dokuwiki.org/plugin:orphanswanted
+BuildRequires:	rpm-php-pearprov >= 4.4.2-11
+BuildRequires:	rpmbuild(macros) >= 1.553
+Requires:	dokuwiki >= 20131208
+Requires:	php(core) >= %{php_min_version}
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -32,9 +37,10 @@ Each table shows the reference count and a link to backlinks.
 
 %prep
 %setup -qc
-mv %{plugin}/* .
+mv *-%{plugin}-*/* .
 
-version=$(cat VERSION)
+%build
+version=$(awk '/^date/{print $2}' plugin.info.txt)
 if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
 	: %%{version} mismatch
 	exit 1
@@ -44,13 +50,17 @@ fi
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{plugindir}
 cp -a . $RPM_BUILD_ROOT%{plugindir}
-rm $RPM_BUILD_ROOT%{plugindir}/{COPYING,README,VERSION}
+rm $RPM_BUILD_ROOT%{plugindir}/{COPYING,README}
+
+%find_lang %{name}.lang
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%files
+%files -f %{name}.lang
 %defattr(644,root,root,755)
 %doc README
 %dir %{plugindir}
 %{plugindir}/*.php
+%{plugindir}/*.txt
+%{plugindir}/conf
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/dokuwiki-plugin-orphanswanted.git/commitdiff/bac658638defd5d29d660986712c6b8f81f65c7a



More information about the pld-cvs-commit mailing list