Remi Collet 9397168
%{!?pear_metadir: %global pear_metadir %{pear_phpdir}}
xulchris 506b69a
%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
Christof Damian 42cbac6
%global pear_name Structures_DataGrid_Renderer_Pager
xulchris 506b69a
xulchris 506b69a
Name:           php-pear-Structures-DataGrid-Renderer-Pager
xulchris e81ed0c
Version:        0.1.3
cc6931b
Release:        12%{?dist}
xulchris 506b69a
Summary:        Renderer driver using PEAR::Pager
xulchris 506b69a
xulchris 506b69a
Group:          Development/Libraries
xulchris 6813748
License:        BSD
Christof Damian 42cbac6
URL:            http://pear.php.net/package/%{pear_name}
xulchris 506b69a
Source0:        http://pear.php.net/get/%{pear_name}-%{version}.tgz
xulchris 506b69a
Remi Collet 9397168
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
xulchris 506b69a
BuildArch:      noarch
xulchris e81ed0c
BuildRequires:  php-pear >= 1:1.6.0
Remi Collet 9397168
xulchris 5d0e797
Requires:       php-pear(PEAR)
xulchris e81ed0c
Requires:       php-pear(Pager) >= 2.4.4
xulchris e81ed0c
Requires:       php-pear(Structures_DataGrid) >= 0.9.0
xulchris 506b69a
Requires(post): %{__pear}
xulchris 506b69a
Requires(postun): %{__pear}
Remi Collet 9397168
xulchris 506b69a
Provides:       php-pear(%{pear_name}) = %{version}
xulchris 506b69a
Remi Collet 9397168
xulchris 506b69a
%description
xulchris 506b69a
This is a Renderer driver for Structures_DataGrid using PEAR::Pager.
xulchris 506b69a
xulchris 506b69a
xulchris 506b69a
%prep
xulchris e81ed0c
%setup -qc
xulchris 506b69a
[ -f package2.xml ] || mv package.xml package2.xml
Christof Damian 42cbac6
mv package2.xml %{pear_name}-%{version}/%{name}.xml
xulchris 506b69a
cd %{pear_name}-%{version}
xulchris 506b69a
xulchris 506b69a
xulchris 506b69a
%build
xulchris 506b69a
cd %{pear_name}-%{version}
xulchris 506b69a
# Empty build section, most likely nothing required.
xulchris 506b69a
xulchris 506b69a
xulchris 506b69a
%install
xulchris 506b69a
cd %{pear_name}-%{version}
Remi Collet 9397168
rm -rf $RPM_BUILD_ROOT
Remi Collet 9397168
%{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{name}.xml
xulchris 506b69a
xulchris 506b69a
# Clean up unnecessary files
Remi Collet 9397168
rm -rf $RPM_BUILD_ROOT%{pear_metadir}/.??*
xulchris 506b69a
xulchris 506b69a
# Install XML package description
xulchris e81ed0c
install -d $RPM_BUILD_ROOT%{pear_xmldir}
Christof Damian 42cbac6
install -pm 644 %{name}.xml $RPM_BUILD_ROOT%{pear_xmldir}
xulchris 506b69a
xulchris 506b69a
xulchris 506b69a
%clean
xulchris 506b69a
rm -rf $RPM_BUILD_ROOT
xulchris 506b69a
xulchris 506b69a
xulchris 506b69a
%post
xulchris 506b69a
%{__pear} install --nodeps --soft --force --register-only \
Christof Damian 42cbac6
    %{pear_xmldir}/%{name}.xml >/dev/null || :
xulchris 506b69a
xulchris 506b69a
%postun
xulchris 506b69a
if [ $1 -eq 0 ] ; then
xulchris 506b69a
    %{__pear} uninstall --nodeps --ignore-errors --register-only \
xulchris 506b69a
        %{pear_name} >/dev/null || :
xulchris 506b69a
fi
xulchris 506b69a
xulchris 506b69a
xulchris 506b69a
%files
xulchris 506b69a
%defattr(-,root,root,-)
Christof Damian 42cbac6
%{pear_xmldir}/%{name}.xml
xulchris 5d0e797
%{pear_phpdir}/Structures/DataGrid/Renderer/*
xulchris 506b69a
xulchris 506b69a
xulchris 506b69a
%changelog
cc6931b
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-12
cc6931b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
cc6931b
aad9d4f
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-11
aad9d4f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
aad9d4f
888760a
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-10
888760a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
888760a
Remi Collet 9397168
* Tue Feb 19 2013 Remi Collet <remi@fedoraproject.org> - 0.1.3-9
Remi Collet 9397168
- fix metadata location
Remi Collet 9397168
131d4cd
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-8
131d4cd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
131d4cd
5e9f651
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-7
5e9f651
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
5e9f651
d624bb7
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-6
d624bb7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
d624bb7
027770a
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-5
027770a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
027770a
Christof Damian 42cbac6
* Fri Aug 20 2010 Christof Damian <christof@damian.net> - 0.1.3-4
Christof Damian 42cbac6
- spec cleaning
Christof Damian 42cbac6
ba63e79
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-3
ba63e79
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
ba63e79
d8e55f3
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.3-2
d8e55f3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
d8e55f3
xulchris e81ed0c
* Wed Feb 20 2008 Christopher Stone <chris.stone@gmail.com> 0.1.3-1
xulchris e81ed0c
- Upstream sync
xulchris e81ed0c
- Requires new pear installer, pager and datagrid
xulchris e81ed0c
xulchris 6813748
* Sun Jan 14 2007 Christopher Stone <chris.stone@gmail.com> 0.1.2-1
xulchris 6813748
- Upstream sync
xulchris 6813748
- Relicense under BSD
xulchris 6813748
xulchris 5d0e797
* Sun Dec 03 2006 Christopher Stone <chris.stone@gmail.com> 0.1.0-2
xulchris 5d0e797
- No longer own common directories
xulchris 5d0e797
- Add versioned Requires
xulchris 5d0e797
- Add license to %%doc
xulchris 5d0e797
xulchris 506b69a
* Sun Oct 29 2006 Christopher Stone <chris.stone@gmail.com> 0.1.0-1
xulchris 506b69a
- Initial Release