From 09ad94c66b576442f30f5881021a0d8e35fb9211 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 26 May 2014 10:17:09 +0200 Subject: php-pear-text-wiki: rename... --- Makefile | 4 ++ Text_Wiki-upstream.patch | 86 ++++++++++++++++++++++++++++++++ php-pear-text-wiki.spec | 124 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 214 insertions(+) create mode 100644 Makefile create mode 100644 Text_Wiki-upstream.patch create mode 100644 php-pear-text-wiki.spec diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..13af741 --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +SRCDIR := $(shell pwd) +NAME := $(shell basename $(SRCDIR)) +include ../../../common/Makefile + diff --git a/Text_Wiki-upstream.patch b/Text_Wiki-upstream.patch new file mode 100644 index 0000000..e9cb470 --- /dev/null +++ b/Text_Wiki-upstream.patch @@ -0,0 +1,86 @@ +Patch adapted for PEAR current files. + +Original patch: + +From 0c4079ffab0ff669772ee39ce599e4699ddde32f Mon Sep 17 00:00:00 2001 +From: Remi Collet +Date: Sun, 18 May 2014 09:22:39 +0200 +Subject: [PATCH] Cleanup some license headers Fix pear bug #20274 Also see + 21ce607014ae3445147be2e52ceacdca0ca7b503 + +--- + Text/Wiki/Render/Cowiki/Prefilter.php | 45 ++++++++++++----------------------- + Text/Wiki/Render/Doku/Prefilter.php | 45 ++++++++++++----------------------- + Text/Wiki/Render/Latex/Prefilter.php | 34 +------------------------- + Text/Wiki/Render/Plain/Prefilter.php | 2 +- + Text/Wiki/Render/Tiki/Prefilter.php | 45 ++++++++++++----------------------- + 5 files changed, 47 insertions(+), 124 deletions(-) + +diff --git a/Text/Wiki/Render/Latex/Prefilter.php b/Text/Wiki/Render/Latex/Prefilter.php +index 974697a..97fa666 100644 +--- a/Text/Wiki/Render/Latex/Prefilter.php ++++ b/Text/Wiki/Render/Latex/Prefilter.php +@@ -1,7 +1,7 @@ + +-* +-* @package Text_Wiki +-* +-*/ +- + class Text_Wiki_Render_Latex_Prefilter extends Text_Wiki_Render { + function token() + { +diff --git a/Text/Wiki/Render/Plain/Prefilter.php b/Text/Wiki/Render/Plain/Prefilter.php +index 17d48eb..1879fd1 100755 +--- a/Text/Wiki/Render/Plain/Prefilter.php ++++ b/Text/Wiki/Render/Plain/Prefilter.php +@@ -1,7 +1,7 @@ + %{name}.xml +touch -r ../package.xml %{name}.xml + + +%build +# Empty build section, most likely nothing required. + + +%install +rm -rf %{buildroot} +cd %{pear_name}-%{version} +%{__pear} install --nodeps --packagingroot %{buildroot} %{name}.xml + +# Clean up unnecessary files +rm -rf %{buildroot}%{pear_metadir}/.??* + +# Install XML package description +mkdir -p %{buildroot}%{pear_xmldir} +install -pm 644 %{name}.xml %{buildroot}%{pear_xmldir} + + +%clean +rm -rf %{buildroot} + + +%post +%{__pear} install --nodeps --soft --force --register-only \ + %{pear_xmldir}/%{name}.xml >/dev/null || : + +%postun +if [ $1 -eq 0 ] ; then + %{__pear} uninstall --nodeps --ignore-errors --register-only \ + pear.php.net/%{pear_name} >/dev/null || : +fi + + +%files +%defattr(-,root,root,-) +%doc %{pear_docdir}/%{pear_name} +%{pear_xmldir}/%{name}.xml +%{pear_phpdir}/Text + + +%changelog +* Sun May 18 2014 Remi Collet - 1.2.1-3 +- rename to php-pear-text-wiki per Guidelines +- upstream patch to cleanup old license headers + +* Fri May 16 2014 Remi Collet - 1.2.1-2 +- cleanup +- open https://pear.php.net/bugs/20274 missing License file + +* Wed Nov 14 2012 Remi Collet - 1.2.1-1 +- Initial package \ No newline at end of file -- cgit