summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2012-08-21 16:03:18 +0200
committerRemi Collet <fedora@famillecollet.com>2012-08-21 16:03:18 +0200
commit493062df84ea9224b3f3586f6f8ef72a887f29e7 (patch)
treef805bc0bffb8d99d9e4d3536ff27696718b9cbd6
php-pear-HTML_Template_PHPLIB: import from rawhide
-rw-r--r--Makefile4
-rw-r--r--php-pear-HTML_Template_PHPLIB.spec94
2 files changed, 98 insertions, 0 deletions
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/php-pear-HTML_Template_PHPLIB.spec b/php-pear-HTML_Template_PHPLIB.spec
new file mode 100644
index 0000000..3290fd1
--- /dev/null
+++ b/php-pear-HTML_Template_PHPLIB.spec
@@ -0,0 +1,94 @@
+%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
+%global pear_name HTML_Template_PHPLIB
+
+Name: php-pear-HTML_Template_PHPLIB
+Version: 1.4.0
+Release: 6%{?dist}
+Summary: PHP template system based on preg_*
+Group: Development/Libraries
+License: LGPLv2
+URL: http://pear.php.net/package/%{pear_name}
+Source0: http://pear.php.net/get/%{pear_name}-%{version}.tgz
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch: noarch
+BuildRequires: php-pear >= 1:1.4.9-1.2
+Requires: php-pear(PEAR)
+Requires(post): %{__pear}
+Requires(postun): %{__pear}
+Provides: php-pear(%{pear_name}) = %{version}
+
+%description
+This is the PEAR port of the popular PHPLIB template system. It
+contains some features not currently found in the original version.
+
+%prep
+%setup -q -c
+[ -f package2.xml ] || mv package.xml package2.xml
+mv package2.xml %{pear_name}-%{version}/%{pear_name}.xml
+cd %{pear_name}-%{version}
+
+
+
+%build
+# Empty build section nothing to do here
+
+%install
+cd %{pear_name}-%{version}
+rm -rf $RPM_BUILD_ROOT docdir
+%{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{pear_name}.xml
+# Move documentation
+mkdir -p docdir
+mv $RPM_BUILD_ROOT%{pear_docdir}/* docdir
+# Clean up unnecessary files
+rm -rf $RPM_BUILD_ROOT%{pear_phpdir}/.??*
+# Install XML package description
+mkdir -p $RPM_BUILD_ROOT%{pear_xmldir}
+install -pm 644 %{pear_name}.xml $RPM_BUILD_ROOT%{pear_xmldir}
+# I could not do this in prep as it breaks the pear install due to md5 checks.
+iconv -f iso8859-1 -t utf-8 %{_builddir}/%{name}-%{version}/%{pear_name}-%{version}/docdir/%{pear_name}/examples/README > \
+%{_builddir}/%{name}-%{version}/%{pear_name}-%{version}/docdir/%{pear_name}/examples/README.conv && \
+mv -f %{_builddir}/%{name}-%{version}/%{pear_name}-%{version}/docdir/%{pear_name}/examples/README.conv \
+%{_builddir}/%{name}-%{version}/%{pear_name}-%{version}/docdir/%{pear_name}/examples/README
+
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%post
+%{__pear} install --nodeps --soft --force --register-only \
+ %{pear_xmldir}/%{pear_name}.xml >/dev/null || :
+
+%postun
+if [ $1 -eq 0 ] ; then
+ %{__pear} uninstall --nodeps --ignore-errors --register-only \
+ %{pear_name} >/dev/null || :
+fi
+
+
+%files
+%defattr(-,root,root,-)
+%doc %{pear_name}-%{version}/docdir/%{pear_name}/*
+%{pear_xmldir}/%{pear_name}.xml
+%{pear_testdir}/%{pear_name}
+%{pear_phpdir}/HTML/Template
+%{_bindir}/*
+
+%changelog
+* Tue Aug 14 2012 Remi Collet <remi@fedoraproject.org> - 1.4.0-6
+- rebuilt for new pear_testdir
+
+* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-5
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
+
+* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
+
+* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.0-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
+
+* Mon Jul 27 2009 Andrew Colin Kissa <andrew@topdog.za.net> 1.4.0-2
+- Fix naming
+
+* Mon Jul 27 2009 Andrew Colin Kissa <andrew@topdog.za.net> 1.4.0-1
+- Initial packaging