[packages/dokuwiki-plugin-poldek] package source in github

glen glen at pld-linux.org
Fri Jul 13 22:21:12 CEST 2012


commit 910e28dedc8b20ea1f1950cff7b9c401fed44119
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Fri Jul 13 23:20:56 2012 +0300

    package source in github

 dokuwiki-plugin-poldek.spec | 42 +++++++++---------------------------------
 1 file changed, 9 insertions(+), 33 deletions(-)
---
diff --git a/dokuwiki-plugin-poldek.spec b/dokuwiki-plugin-poldek.spec
index 65b0d88..e9fe3f3 100644
--- a/dokuwiki-plugin-poldek.spec
+++ b/dokuwiki-plugin-poldek.spec
@@ -6,7 +6,9 @@ Version:	20090129
 Release:	1
 License:	GPL v2
 Group:		Applications/WWW
-URL:		https://cvs.delfi.ee/dokuwiki/plugin/poldek/
+Source0:	https://github.com/glensc/dokuwiki-plugin-poldek/tarball/master/%{plugin}.tgz
+# Source0-md5:	2defb6b14ffa7d3d09f75de3db6f1d54
+URL:		https://github.com/glensc/dokuwiki-plugin-poldek
 Requires:	dokuwiki >= 20080505
 Requires:	poldek
 BuildArch:	noarch
@@ -15,52 +17,25 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %define		dokudir		/usr/share/dokuwiki
 %define		plugindir	%{dokudir}/lib/plugins/%{plugin}
 
-%define		_cvsroot	:ext:cvs.delfi.ee:/usr/local/cvs
-%define		_cvsmodule	dokuwiki/plugin/poldek
-
 %description
 Plugin to display package NVR from repository.
 
 {{poldek>PKGNAME}} is the syntax.
 
 %prep
-# check early if build is ok to be performed
-%if %{!?debug:1}%{?debug:0} && %{!?_cvstag:1}%{?_cvstag:0} && %([[ %{release} = *.* ]] && echo 0 || echo 1)
-# break if spec is not commited
-cd %{_specdir}
-if [ "$(cvs status %{name}.spec | awk '/Status:/{print $NF}')" != "Up-to-date" ]; then
-	: "Integer build not allowed: %{name}.spec is not up-to-date with CVS"
-	exit 1
-fi
-cd -
-%endif
-%setup -qTc
-cd ..
-cvs -d %{_cvsroot} co %{?_cvstag:-r %{_cvstag}} -d %{name}-%{version} -P %{_cvsmodule}
-cd -
-
-%build
-# skip tagging if we checkouted from tag or have debug enabled
-# also make make tag only if we have integer release
-%if %{!?debug:1}%{?debug:0} && %{!?_cvstag:1}%{?_cvstag:0} && %([[ %{release} = *.* ]] && echo 0 || echo 1)
-# do tagging by version
-tag=%{name}-%(echo %{version} | tr . _)-%(echo %{release} | tr . _)
+%setup -qc
+mv *-%{plugin}-*/* .
 
-cd %{_specdir}
-if [ $(cvs status -v %{name}.spec | grep -Ec "$tag[[:space:]]") != 0 ]; then
-	: "Tag $tag already exists"
+version=$(awk '/date/{print $2}' plugin.info.txt)
+if [ "$(echo "$version" | tr -d -)" != %{version} ]; then
+	: %%{version} mismatch
 	exit 1
 fi
-cvs tag $tag %{name}.spec
-cd -
-cvs tag $tag
-%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{plugindir}
 cp -a . $RPM_BUILD_ROOT%{plugindir}
-find $RPM_BUILD_ROOT%{plugindir} -name CVS | xargs -r rm -rf
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -69,3 +44,4 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %dir %{plugindir}
 %{plugindir}/*.php
+%{plugindir}/*.txt


More information about the pld-cvs-commit mailing list