|
|
24bf3cc |
%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
|
|
|
fb29478 |
%global pear_name File_Iterator
|
|
|
fb29478 |
%global channel pear.phpunit.de
|
|
|
24bf3cc |
|
|
|
24bf3cc |
Name: php-phpunit-File-Iterator
|
|
Christof Damian |
9998698 |
Version: 1.3.3
|
|
Christof Damian |
59f5f1e |
Release: 1%{?dist}
|
|
|
24bf3cc |
Summary: FilterIterator implementation that filters files based on a list of suffixes
|
|
|
24bf3cc |
|
|
|
24bf3cc |
Group: Development/Libraries
|
|
|
24bf3cc |
License: BSD
|
|
|
24bf3cc |
URL: http://github.com/sebastianbergmann/php-file-iterator/
|
|
|
24bf3cc |
Source0: http://pear.phpunit.de/get/%{pear_name}-%{version}.tgz
|
|
|
24bf3cc |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
24bf3cc |
|
|
|
24bf3cc |
BuildArch: noarch
|
|
|
798e019 |
BuildRequires: php-pear(PEAR) >= 1.9.2
|
|
|
24bf3cc |
BuildRequires: php-channel(%{channel})
|
|
|
798e019 |
|
|
|
798e019 |
Requires: php-pear(PEAR) >= 1.9.2
|
|
|
24bf3cc |
Requires: php-channel(%{channel})
|
|
Christof Damian |
9998698 |
Requires: php-common >= 5.3.3
|
|
|
24bf3cc |
Requires(post): %{__pear}
|
|
|
24bf3cc |
Requires(postun): %{__pear}
|
|
|
24bf3cc |
|
|
|
24bf3cc |
Provides: php-pear(%{channel}/%{pear_name}) = %{version}
|
|
|
24bf3cc |
|
|
|
24bf3cc |
|
|
|
24bf3cc |
%description
|
|
|
24bf3cc |
FilterIterator implementation that filters files based on a list of suffixes.
|
|
|
24bf3cc |
|
|
|
24bf3cc |
%prep
|
|
|
24bf3cc |
%setup -q -c
|
|
|
f1cc283 |
[ -f package2.xml ] || %{__mv} package.xml package2.xml
|
|
|
956e2e9 |
mv package2.xml %{pear_name}-%{version}/%{name}.xml
|
|
|
f1cc283 |
cd %{pear_name}-%{version}
|
|
|
f1cc283 |
|
|
|
24bf3cc |
|
|
|
24bf3cc |
%build
|
|
|
24bf3cc |
cd %{pear_name}-%{version}
|
|
|
24bf3cc |
# Empty build section, most likely nothing required.
|
|
|
24bf3cc |
|
|
|
24bf3cc |
|
|
|
24bf3cc |
%install
|
|
|
956e2e9 |
rm -rf %{buildroot}
|
|
|
24bf3cc |
cd %{pear_name}-%{version}
|
|
|
f1cc283 |
|
|
|
956e2e9 |
%{__pear} install --nodeps --packagingroot %{buildroot} %{name}.xml
|
|
|
24bf3cc |
|
|
|
24bf3cc |
# Clean up unnecessary files
|
|
|
956e2e9 |
rm -rf %{buildroot}%{pear_phpdir}/.??*
|
|
|
24bf3cc |
|
|
|
24bf3cc |
# Install XML package description
|
|
|
956e2e9 |
mkdir -p %{buildroot}%{pear_xmldir}
|
|
|
956e2e9 |
install -pm 644 %{name}.xml %{buildroot}%{pear_xmldir}
|
|
|
24bf3cc |
|
|
|
24bf3cc |
|
|
|
24bf3cc |
%clean
|
|
|
956e2e9 |
rm -rf %{buildroot}
|
|
|
24bf3cc |
|
|
|
24bf3cc |
|
|
|
24bf3cc |
%post
|
|
|
24bf3cc |
%{__pear} install --nodeps --soft --force --register-only \
|
|
|
24bf3cc |
%{pear_xmldir}/%{name}.xml >/dev/null || :
|
|
|
24bf3cc |
|
|
|
24bf3cc |
|
|
|
24bf3cc |
%postun
|
|
|
24bf3cc |
if [ $1 -eq 0 ] ; then
|
|
|
24bf3cc |
%{__pear} uninstall --nodeps --ignore-errors --register-only \
|
|
|
fb29478 |
%{channel}/%{pear_name} >/dev/null || :
|
|
|
24bf3cc |
fi
|
|
|
24bf3cc |
|
|
|
24bf3cc |
|
|
|
24bf3cc |
%files
|
|
|
24bf3cc |
%defattr(-,root,root,-)
|
|
|
24bf3cc |
%{pear_xmldir}/%{name}.xml
|
|
|
24bf3cc |
%{pear_phpdir}/File
|
|
|
24bf3cc |
|
|
Christof Damian |
86ebbfa |
%doc %{pear_docdir}/%{pear_name}
|
|
Christof Damian |
86ebbfa |
|
|
|
24bf3cc |
%changelog
|
|
Christof Damian |
9998698 |
* Fri Oct 12 2012 Christof Damian <christof@damian.net> - 1.3.3-1
|
|
Christof Damian |
9998698 |
- upstream 1.3.3
|
|
Christof Damian |
9998698 |
|
|
Christof Damian |
59f5f1e |
* Sun Sep 23 2012 Christof Damian <christof@damian.net> - 1.3.2-1
|
|
Christof Damian |
59f5f1e |
- upstream 1.3.2
|
|
Christof Damian |
59f5f1e |
|
|
|
6aaecd8 |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-2
|
|
|
6aaecd8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
6aaecd8 |
|
|
|
956e2e9 |
* Tue Jan 17 2012 Remi Collet <remi@fedoraproject.org> - 1.3.1-1
|
|
|
956e2e9 |
- Version 1.3.1 (stable) - API 1.3.0 (stable)
|
|
|
956e2e9 |
- unmacro current command
|
|
|
956e2e9 |
- remove pear version hack
|
|
|
956e2e9 |
|
|
|
4f93be6 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.0-2
|
|
|
4f93be6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
4f93be6 |
|
|
Christof Damian |
86ebbfa |
* Wed Nov 2 2011 Christof Damian <christof@damian.net> - 1.3.0-1
|
|
Christof Damian |
86ebbfa |
- upstream 1.3.0
|
|
Christof Damian |
86ebbfa |
|
|
Christof Damian |
3dd6748 |
* Sat Mar 5 2011 Christof Damian <christof@damian.net> - 1.2.6-2
|
|
Christof Damian |
3dd6748 |
- fix pear requirement
|
|
Christof Damian |
3dd6748 |
|
|
Christof Damian |
211a21c |
* Fri Mar 4 2011 Christof Damian <christof@damian.net> - 1.2.6-1
|
|
Christof Damian |
211a21c |
- upstream 1.2.6
|
|
Christof Damian |
211a21c |
|
|
Christof Damian |
6a598e0 |
* Mon Feb 28 2011 Christof Damian <cdamian@robin.gotham.krass.com> - 1.2.4-1
|
|
Christof Damian |
6a598e0 |
- upstream 1.2.4
|
|
Christof Damian |
6a598e0 |
|
|
|
97257fe |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.3-2
|
|
|
97257fe |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
97257fe |
|
|
Christof Damian |
18b1174 |
* Fri Sep 17 2010 Christof Damian <christof@damian.net> - 1.2.3-1
|
|
Christof Damian |
18b1174 |
- upstream 1.2.3
|
|
Christof Damian |
18b1174 |
|
|
|
f1cc283 |
* Thu Jul 22 2010 Christof Damian <christof@damian.net> - 1.2.2-2
|
|
|
f1cc283 |
- fix minimum pear requirement
|
|
|
f1cc283 |
|
|
|
44f87d8 |
* Thu Jul 22 2010 Christof Damian <christof@damian.net> - 1.2.2-1
|
|
|
44f87d8 |
- upstream 1.2.2, bugfix
|
|
|
44f87d8 |
|
|
|
58c8819 |
* Sat May 8 2010 Christof Damian <christof@damian.net> - 1.2.1-1
|
|
|
58c8819 |
- upstream 1.2.1
|
|
|
58c8819 |
|
|
|
fb29478 |
* Tue Feb 9 2010 Christof Damian <christof@damian.net> - 1.2.0-1
|
|
|
fb29478 |
- upstream 1.2.0
|
|
|
fb29478 |
- increased php-common requirements to 5.2.7
|
|
|
fb29478 |
- increased php-pear requirement
|
|
|
fb29478 |
- use global instead of define
|
|
|
fb29478 |
- use channel macro in postun
|
|
|
fb29478 |
|
|
|
35f2497 |
* Thu Dec 17 2009 Christof Damian <christof@damian.net> 1.1.1-2
|
|
|
dea101b |
- version 1.1.1 lowered the php requirement
|
|
|
dea101b |
|
|
|
dea101b |
* Thu Dec 17 2009 Christof Damian <christof@damian.net> 1.1.1-1
|
|
|
26e8121 |
- upstream 1.1.1
|
|
|
26e8121 |
|
|
|
24bf3cc |
* Mon Nov 30 2009 Christof Damian <christof@damian.net> 1.1.0-4
|
|
|
24bf3cc |
- own pear directories
|
|
|
24bf3cc |
|
|
|
24bf3cc |
* Sat Nov 28 2009 Christof Damian <christof@damian.net> 1.1.0-3
|
|
|
24bf3cc |
- fixed php-pear buildrequire
|
|
|
24bf3cc |
- just require php-common
|
|
|
24bf3cc |
|
|
|
24bf3cc |
* Thu Nov 26 2009 Christof Damian <christof@damian.net> 1.1.0-2
|
|
|
24bf3cc |
- fix package.xml to work with older pear versions
|
|
|
24bf3cc |
|
|
|
24bf3cc |
* Wed Nov 25 2009 Christof Damian <christof@damian.net> 1.1.0-1
|
|
|
24bf3cc |
- Initial packaging
|