From da603c437b5a335c1d0a1c84694e7d1cf544c29b Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Mon, 6 Aug 2012 11:08:30 +0200 Subject: php-pear-OLE: import from rawhide --- php-pear-OLE.spec | 96 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 php-pear-OLE.spec diff --git a/php-pear-OLE.spec b/php-pear-OLE.spec new file mode 100644 index 0000000..7561fd8 --- /dev/null +++ b/php-pear-OLE.spec @@ -0,0 +1,96 @@ +%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}} +%define pear_name OLE + +Name: php-pear-OLE +Version: 1.0.0 +Release: 0.7.rc1%{?dist} +Summary: Package for reading and writing OLE containers + +Group: Development/Libraries +License: PHP +URL: http://pear.php.net/package/OLE +Source0: http://pear.php.net/get/%{pear_name}-1.0.0RC1.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 package allows reading and writing of OLE (Object Linking and +Embedding) compound documents. This format is used as container for Excel +(.xls), Word (.doc) and other Microsoft file formats. + +%prep +%setup -q -c +[ -f package2.xml ] || mv package.xml package2.xml +mv package2.xml %{pear_name}-%{version}RC1/%{name}.xml +cd %{pear_name}-%{version}RC1 + + +%build +cd %{pear_name}-%{version}RC1 +# Empty build section, most likely nothing required. + + +%install +cd %{pear_name}-%{version}RC1 +rm -rf $RPM_BUILD_ROOT docdir +%{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{name}.xml + + + +# 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 %{name}.xml $RPM_BUILD_ROOT%{pear_xmldir} + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%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,-) +%{pear_xmldir}/%{name}.xml +%{pear_phpdir}/OLE +%{pear_phpdir}/OLE.php + + + + +%changelog +* Sat Jul 21 2012 Fedora Release Engineering - 1.0.0-0.7.rc1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Sat Jan 14 2012 Fedora Release Engineering - 1.0.0-0.6.rc1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Wed Feb 09 2011 Fedora Release Engineering - 1.0.0-0.5.rc1 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Tue Dec 08 2009 David Nalley 1.0.0-0.4.rc1 +- really fixed php-pear require +* Sun Dec 06 2009 David Nalley 1.0.0-0.3.rc1 +- added require for php(pear) +* Wed Dec 02 2009 David Nalley 1.0.0-0.2.rc1 +- removed require for php +* Sat Nov 28 2009 David Nalley 1.0.0-0.1.rc1 +- Initial packaging efforts -- cgit