|
Remi Collet |
0432ef2 |
%{!?pear_metadir: %global pear_metadir %{pear_phpdir}}
|
|
xulchris |
c9765a6 |
%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
|
|
|
d738e32 |
%global pear_name XML_RSS
|
|
|
d738e32 |
%global with_tests %{?_with_tests:1}%{!?_with_tests:0}
|
|
xulchris |
c9765a6 |
|
|
xulchris |
c9765a6 |
Name: php-pear-XML-RSS
|
|
|
3fab6cf |
Version: 1.0.2
|
|
|
d738e32 |
Release: 10%{?dist}
|
|
xulchris |
c9765a6 |
Summary: RSS parser
|
|
xulchris |
c9765a6 |
|
|
xulchris |
c9765a6 |
Group: Development/Libraries
|
|
|
e5877f7 |
License: PHP
|
|
xulchris |
c9765a6 |
URL: http://pear.php.net/package/XML_RSS
|
|
xulchris |
c9765a6 |
Source0: http://pear.php.net/get/%{pear_name}-%{version}.tgz
|
|
|
ba79ba7 |
Source2: xml2changelog
|
|
xulchris |
c9765a6 |
|
|
|
db2fafe |
# https://github.com/pear/XML_RSS/commit/528439f58b15aea71f8932e51b96ce63407cfc20
|
|
|
db2fafe |
Patch1: XML_RSS-git.patch
|
|
|
db2fafe |
|
|
|
29e27ac |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
xulchris |
c9765a6 |
BuildArch: noarch
|
|
xulchris |
c9765a6 |
BuildRequires: php-pear >= 1:1.4.9-1.2
|
|
|
d738e32 |
%if %{with_tests}
|
|
|
ba79ba7 |
# For test suite
|
|
|
ba79ba7 |
BuildRequires: php-pear(pear.phpunit.de/PHPUnit)
|
|
|
ba79ba7 |
BuildRequires: php-pear(XML_Parser)
|
|
|
d738e32 |
%endif
|
|
|
ba79ba7 |
|
|
|
29e27ac |
Requires: php-pear(PEAR)
|
|
|
29e27ac |
Requires: php-pear(XML_Parser) > 1.0.1
|
|
xulchris |
c9765a6 |
Requires(post): %{__pear}
|
|
xulchris |
c9765a6 |
Requires(postun): %{__pear}
|
|
Remi Collet |
0432ef2 |
|
|
xulchris |
c9765a6 |
Provides: php-pear(%{pear_name}) = %{version}
|
|
xulchris |
c9765a6 |
|
|
Remi Collet |
0432ef2 |
|
|
xulchris |
c9765a6 |
%description
|
|
xulchris |
c9765a6 |
Parser for Resource Description Framework (RDF) Site Summary (RSS)
|
|
xulchris |
c9765a6 |
documents.
|
|
xulchris |
c9765a6 |
|
|
xulchris |
c9765a6 |
|
|
xulchris |
c9765a6 |
%prep
|
|
xulchris |
fc84571 |
%setup -qc
|
|
|
ba79ba7 |
%{_bindir}/php -n %{SOURCE2} package.xml | tee CHANGELOG | head -n 10
|
|
|
ba79ba7 |
|
|
xulchris |
c9765a6 |
cd %{pear_name}-%{version}
|
|
|
ba79ba7 |
# package.xml is V2
|
|
|
ba79ba7 |
mv ../package.xml %{name}.xml
|
|
xulchris |
c9765a6 |
|
|
|
db2fafe |
%patch1 -p1 -b .orig
|
|
xulchris |
c9765a6 |
|
|
xulchris |
c9765a6 |
%build
|
|
xulchris |
c9765a6 |
cd %{pear_name}-%{version}
|
|
xulchris |
c9765a6 |
# Empty build section, most likely nothing required.
|
|
xulchris |
c9765a6 |
|
|
xulchris |
c9765a6 |
|
|
xulchris |
c9765a6 |
%install
|
|
|
3fab6cf |
rm -rf $RPM_BUILD_ROOT
|
|
xulchris |
c9765a6 |
cd %{pear_name}-%{version}
|
|
|
db2fafe |
%{__pear} install --nodeps --packagingroot $RPM_BUILD_ROOT %{name}.xml
|
|
xulchris |
c9765a6 |
|
|
xulchris |
c9765a6 |
# Clean up unnecessary files
|
|
Remi Collet |
0432ef2 |
rm -rf $RPM_BUILD_ROOT%{pear_metadir}/.??*
|
|
xulchris |
c9765a6 |
|
|
xulchris |
c9765a6 |
# Install XML package description
|
|
xulchris |
fc84571 |
install -d $RPM_BUILD_ROOT%{pear_xmldir}
|
|
|
29e27ac |
install -pm 644 %{name}.xml $RPM_BUILD_ROOT%{pear_xmldir}
|
|
|
29e27ac |
|
|
|
29e27ac |
|
|
|
29e27ac |
%check
|
|
|
d738e32 |
%if %{with_tests}
|
|
|
d738e32 |
# error_reporting = E_ALL & ~E_STRICT & ~E_DEPRECATED = 22527
|
|
|
ba79ba7 |
cd %{pear_name}-%{version}
|
|
|
ba79ba7 |
phpunit \
|
|
|
ba79ba7 |
-d date.timezone=UTC \
|
|
|
d738e32 |
-d error_reporting=22527 \
|
|
|
a1dbd72 |
-d include_path=.:$RPM_BUILD_ROOT%{pear_phpdir}:%{pear_phpdir} \
|
|
|
ba79ba7 |
tests
|
|
|
d738e32 |
%endif
|
|
xulchris |
c9765a6 |
|
|
xulchris |
c9765a6 |
|
|
xulchris |
c9765a6 |
%clean
|
|
xulchris |
c9765a6 |
rm -rf $RPM_BUILD_ROOT
|
|
xulchris |
c9765a6 |
|
|
xulchris |
c9765a6 |
|
|
xulchris |
c9765a6 |
%post
|
|
xulchris |
c9765a6 |
%{__pear} install --nodeps --soft --force --register-only \
|
|
|
29e27ac |
%{pear_xmldir}/%{name}.xml >/dev/null || :
|
|
|
29e27ac |
|
|
xulchris |
c9765a6 |
|
|
xulchris |
c9765a6 |
%postun
|
|
xulchris |
c9765a6 |
if [ $1 -eq 0 ] ; then
|
|
xulchris |
c9765a6 |
%{__pear} uninstall --nodeps --ignore-errors --register-only \
|
|
xulchris |
c9765a6 |
%{pear_name} >/dev/null || :
|
|
xulchris |
c9765a6 |
fi
|
|
xulchris |
c9765a6 |
|
|
xulchris |
c9765a6 |
|
|
xulchris |
c9765a6 |
%files
|
|
xulchris |
c9765a6 |
%defattr(-,root,root,-)
|
|
|
ba79ba7 |
%doc CHANGELOG
|
|
|
29e27ac |
%{pear_xmldir}/%{name}.xml
|
|
xulchris |
c9765a6 |
%{pear_testdir}/%{pear_name}
|
|
xulchris |
c9765a6 |
%{pear_phpdir}/XML/RSS.php
|
|
xulchris |
c9765a6 |
|
|
xulchris |
c9765a6 |
|
|
xulchris |
c9765a6 |
%changelog
|
|
|
3580ae5 |
* Fri Jan 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-10
|
|
|
d738e32 |
- run tests only when build with --with tests (circular dep.)
|
|
|
d738e32 |
|
|
|
fd77cab |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-9
|
|
|
fd77cab |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
fd77cab |
|
|
Remi Collet |
0432ef2 |
* Tue Feb 19 2013 Remi Collet <remi@fedoraproject.org> - 1.0.2-8
|
|
Remi Collet |
0432ef2 |
- fix metadata location
|
|
Remi Collet |
0432ef2 |
|
|
|
3e90c2d |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-7
|
|
|
3e90c2d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
3e90c2d |
|
|
|
1c39542 |
* Tue Aug 14 2012 Remi Collet <remi@fedoraproject.org> - 1.0.2-6
|
|
|
1c39542 |
- rebuilt for new pear_testdir
|
|
|
1c39542 |
|
|
|
051f329 |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-5
|
|
|
051f329 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
051f329 |
|
|
|
db2fafe |
* Mon Jan 16 2012 Remi Collet <remi@fedoraproject.org> - 1.0.2-4
|
|
|
db2fafe |
- fix from GIT for test suite
|
|
|
db2fafe |
|
|
|
dfbb1ab |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-3
|
|
|
dfbb1ab |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
dfbb1ab |
|
|
|
a1dbd72 |
* Wed Jul 6 2011 Remi Collet <Fedora@FamilleCollet.com> - 1.0.2-2
|
|
|
a1dbd72 |
- fix includepacth in test (FTBFS #715645)
|
|
|
a1dbd72 |
|
|
|
3fab6cf |
* Tue May 3 2011 Remi Collet <Fedora@FamilleCollet.com> - 1.0.2-1
|
|
|
3fab6cf |
- Version 1.0.2 (stable) - API 1.0.0 (stable)
|
|
|
3fab6cf |
|
|
|
21cd1d8 |
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
|
|
|
21cd1d8 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
21cd1d8 |
|
|
|
ba79ba7 |
* Mon Oct 25 2010 Remi Collet <Fedora@FamilleCollet.com> - 1.0.1-1
|
|
|
ba79ba7 |
- Version 1.0.1 (stable) - API 1.0.0 (stable)
|
|
|
ba79ba7 |
- add generated Changelog
|
|
|
ba79ba7 |
- define timezone during build
|
|
|
ba79ba7 |
- run tests in %%check
|
|
|
ba79ba7 |
|
|
|
29e27ac |
* Sun Mar 28 2010 Remi Collet <Fedora@FamilleCollet.com> - 1.0.0-1
|
|
|
29e27ac |
- new upstream stable version
|
|
|
29e27ac |
- rename XML_RSS.xml to php-pear-XML-RSS.xml
|
|
|
29e27ac |
- add %%check for documentation only
|
|
|
29e27ac |
|
|
|
1b052db |
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.10-7
|
|
|
1b052db |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
1b052db |
|
|
|
4a5b58a |
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.10-6
|
|
|
4a5b58a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
4a5b58a |
|
|
xulchris |
fc84571 |
* Thu Oct 23 2008 Christopher Stone <chris.stone@gmail.com> 0.9.10-5
|
|
xulchris |
fc84571 |
- Update LICENSE to 3.01
|
|
xulchris |
fc84571 |
|
|
|
e5877f7 |
* Thu Aug 28 2008 Tom "spot" Callaway <tcallawa@redhat.com> 0.9.10-4
|
|
|
e5877f7 |
- fix license tag
|
|
|
e5877f7 |
|
|
xulchris |
8a74b42 |
* Sun Jan 14 2007 Christopher Stone <chris.stone@gmail.com> 0.9.10-3
|
|
xulchris |
8a74b42 |
- Use correct version of PHP License
|
|
xulchris |
8a74b42 |
|
|
xulchris |
c9765a6 |
* Thu Nov 09 2006 Christopher Stone <chris.stone@gmail.com> 0.9.10-2
|
|
xulchris |
c9765a6 |
- Added license file to %%doc
|
|
xulchris |
c9765a6 |
- Added versioned requires
|
|
xulchris |
c9765a6 |
|
|
xulchris |
c9765a6 |
* Sun Oct 29 2006 Christopher Stone <chris.stone@gmail.com> 0.9.10-1
|
|
xulchris |
c9765a6 |
- Initial Release
|