|
|
8f9bbd0 |
%global pecl_name yaml
|
|
|
9fd559e |
%global ini_name 40-%{pecl_name}.ini
|
|
|
8f9bbd0 |
|
|
|
8f9bbd0 |
Name: php-pecl-yaml
|
|
|
538f9c9 |
Version: 2.0.0
|
|
|
adf15cc |
Release: 5%{?dist}
|
|
|
8f9bbd0 |
Summary: Support for YAML 1.1 serialization using the LibYAML library
|
|
|
8f9bbd0 |
Group: Development/Languages
|
|
|
8f9bbd0 |
|
|
|
8f9bbd0 |
License: MIT
|
|
|
f7942f3 |
URL: http://pecl.php.net/package/yaml
|
|
|
538f9c9 |
Source0: http://pecl.php.net/get/%{pecl_name}-%{version}%{?prever}.tgz
|
|
|
538f9c9 |
|
|
|
e54d926 |
Patch0: f220c0400bd1875879da58788187774a04430ecb.patch
|
|
|
e54d926 |
|
|
|
538f9c9 |
BuildRequires: php-devel >= 7
|
|
|
538f9c9 |
BuildRequires: php-pear
|
|
|
538f9c9 |
BuildRequires: libyaml-devel
|
|
|
8f9bbd0 |
|
|
|
538f9c9 |
Requires: php(zend-abi) = %{php_zend_api}
|
|
|
538f9c9 |
Requires: php(api) = %{php_core_api}
|
|
|
8f9bbd0 |
|
|
|
71f8cb9 |
Provides: php-%{pecl_name} = %{version}
|
|
|
71f8cb9 |
Provides: php-%{pecl_name}%{?_isa} = %{version}
|
|
|
8f9bbd0 |
Provides: php-pecl(%{pecl_name}) = %{version}
|
|
|
71f8cb9 |
Provides: php-pecl(%{pecl_name})%{?_isa} = %{version}
|
|
|
8f9bbd0 |
|
|
|
8f9bbd0 |
|
|
|
8f9bbd0 |
%description
|
|
|
8f9bbd0 |
The YAML PHP Extension provides a wrapper to the LibYAML library. It gives the
|
|
|
8f9bbd0 |
user the ability to parse YAML document streams into PHP constructs and emit PHP
|
|
|
8f9bbd0 |
constructs as valid YAML 1.1 documents.
|
|
|
8f9bbd0 |
|
|
|
8f9bbd0 |
%prep
|
|
|
8f9bbd0 |
%setup -q -c
|
|
|
538f9c9 |
|
|
|
e54d926 |
pushd %{pecl_name}-%{version}%{?prever}
|
|
|
e54d926 |
%patch0 -p1 -b .upstream
|
|
|
e54d926 |
popd
|
|
|
e54d926 |
|
|
|
71f8cb9 |
# Remove test file to avoid regsitration (pecl list-files yaml)
|
|
|
538f9c9 |
sed -e 's/role="test"/role="src"/' \
|
|
|
538f9c9 |
-e '/LICENSE/s/role="doc"/role="src"/' \
|
|
|
538f9c9 |
package.xml >%{pecl_name}-%{version}%{?prever}/package.xml
|
|
|
8f9bbd0 |
|
|
|
8f9bbd0 |
|
|
|
8f9bbd0 |
%build
|
|
|
538f9c9 |
cd %{pecl_name}-%{version}%{?prever}
|
|
|
8f9bbd0 |
phpize
|
|
|
8f9bbd0 |
%configure
|
|
|
8f9bbd0 |
make %{?_smp_mflags}
|
|
|
8f9bbd0 |
|
|
|
8f9bbd0 |
|
|
|
7ac923a |
%check
|
|
|
538f9c9 |
cd %{pecl_name}-%{version}%{?prever}
|
|
|
7ac923a |
make test NO_INTERACTION=1 REPORT_EXIT_STATUS=1
|
|
|
8f9bbd0 |
|
|
|
8f9bbd0 |
|
|
|
8f9bbd0 |
%install
|
|
|
538f9c9 |
cd %{pecl_name}-%{version}%{?prever}
|
|
|
8f9bbd0 |
make install INSTALL_ROOT=%{buildroot}
|
|
|
8f9bbd0 |
|
|
|
8f9bbd0 |
# Basic configuration
|
|
|
8f9bbd0 |
mkdir -p %{buildroot}%{_sysconfdir}/php.d
|
|
|
9fd559e |
cat > %{buildroot}%{_sysconfdir}/php.d/%{ini_name} << 'EOF'
|
|
|
8f9bbd0 |
; Enable %{pecl_name} extension module
|
|
|
8f9bbd0 |
extension=%{pecl_name}.so
|
|
|
8f9bbd0 |
|
|
|
8f9bbd0 |
; %{pecl_name} extension configuration
|
|
|
8f9bbd0 |
; see http://www.php.net/manual/en/yaml.configuration.php
|
|
|
8f9bbd0 |
|
|
|
8f9bbd0 |
; Decode entities which have the explicit tag "tag:yaml.org,2002:binary"
|
|
|
8f9bbd0 |
yaml.decode_binary = 0
|
|
|
8f9bbd0 |
; Controls the decoding of "tag:yaml.org,2002:timestamp"
|
|
|
8f9bbd0 |
; 0 will not apply any decoding.
|
|
|
8f9bbd0 |
; 1 will use strtotime().
|
|
|
8f9bbd0 |
; 2 will use date_create().
|
|
|
8f9bbd0 |
yaml.decode_timestamp = 0
|
|
|
8f9bbd0 |
; Cause canonical form output.
|
|
|
8f9bbd0 |
yaml.output_canonical = 0
|
|
|
8f9bbd0 |
; Number of spaces to indent sections. Value should be between 1 and 10.
|
|
|
8f9bbd0 |
yaml.output_indent = 2
|
|
|
8f9bbd0 |
; Set the preferred line width. -1 means unlimited.
|
|
|
8f9bbd0 |
yaml.output_width = 80
|
|
|
538f9c9 |
; Enable/disable serialized php object processing.
|
|
|
538f9c9 |
yaml.decode_php = 0
|
|
|
8f9bbd0 |
EOF
|
|
|
8f9bbd0 |
|
|
|
8f9bbd0 |
# Package info
|
|
|
8f9bbd0 |
mkdir -p %{buildroot}%{pecl_xmldir}
|
|
|
8f9bbd0 |
install -p -m 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml
|
|
|
8f9bbd0 |
|
|
|
71f8cb9 |
# Documentation
|
|
|
71f8cb9 |
for i in $(grep 'role="doc"' package.xml | sed -e 's/^.*name="//;s/".*$//')
|
|
|
71f8cb9 |
do install -Dpm 644 $i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i
|
|
|
71f8cb9 |
done
|
|
|
71f8cb9 |
|
|
|
8f9bbd0 |
|
|
|
8f9bbd0 |
%files
|
|
|
538f9c9 |
%license %{pecl_name}-%{version}%{?prever}/LICENSE
|
|
|
71f8cb9 |
%doc %{pecl_docdir}/%{pecl_name}
|
|
|
9fd559e |
%config(noreplace) %{_sysconfdir}/php.d/%{ini_name}
|
|
|
8f9bbd0 |
%{php_extdir}/%{pecl_name}.so
|
|
|
8f9bbd0 |
%{pecl_xmldir}/%{name}.xml
|
|
|
8f9bbd0 |
|
|
|
8f9bbd0 |
|
|
|
8f9bbd0 |
%changelog
|
|
|
adf15cc |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-5
|
|
|
adf15cc |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
adf15cc |
|
|
|
c771e07 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-4
|
|
|
c771e07 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
c771e07 |
|
|
|
e54d926 |
* Wed Mar 29 2017 Remi Collet <remi@fedoraproject.org> - 2.0.0-3
|
|
|
e54d926 |
- add upstream patch to fix FTBFS with 7.1.4RC1, reported by Koschei
|
|
|
e54d926 |
|
|
|
f540387 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-2
|
|
|
f540387 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
f540387 |
|
|
|
f7942f3 |
* Mon Nov 14 2016 Remi Collet <remi@fedoraproject.org> - 2.0.0-1
|
|
|
f7942f3 |
- upate to 2.0.0
|
|
|
f7942f3 |
- fix project URL
|
|
|
f7942f3 |
|
|
|
538f9c9 |
* Mon Jun 27 2016 Remi Collet <remi@fedoraproject.org> - 2.0.0-0.1.RC8
|
|
|
538f9c9 |
- upate to 2.0.0RC8
|
|
|
538f9c9 |
- rebuild for https://fedoraproject.org/wiki/Changes/php70
|
|
|
538f9c9 |
- fix license installation
|
|
|
538f9c9 |
|
|
|
7ac923a |
* Thu Mar 10 2016 Remi Collet <remi@fedoraproject.org> - 1.2.0-2
|
|
|
7ac923a |
- enable test suite for Koschei
|
|
|
7ac923a |
- drop 1 known to fail test
|
|
|
7ac923a |
|
|
|
61b50b8 |
* Tue Mar 08 2016 Theodore Lee <theo148@gmail.com> - 1.2.0-1
|
|
|
61b50b8 |
- Update to upstream 1.2.0 release
|
|
|
61b50b8 |
- Disable test suite until datetime handling is fixed
|
|
|
61b50b8 |
|
|
|
e9902be |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-7
|
|
|
e9902be |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
e9902be |
|
|
|
378da3f |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-6
|
|
|
378da3f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
378da3f |
|
|
|
71f8cb9 |
* Fri Aug 29 2014 Remi Collet <remi@fedoraproject.org> - 1.1.1-5
|
|
|
71f8cb9 |
- provides php-yaml
|
|
|
71f8cb9 |
- install doc in pecl_docdir
|
|
|
71f8cb9 |
- cleanup
|
|
|
71f8cb9 |
|
|
|
a571565 |
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-4
|
|
|
a571565 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
a571565 |
|
|
|
9fd559e |
* Thu Jun 19 2014 Remi Collet <rcollet@redhat.com> - 1.1.1-3
|
|
|
9fd559e |
- rebuild for https://fedoraproject.org/wiki/Changes/Php56
|
|
|
9fd559e |
- add numerical prefix to extension configuration file
|
|
|
9fd559e |
|
|
|
e4e2bf2 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-2
|
|
|
e4e2bf2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
e4e2bf2 |
|
|
|
a32fe72 |
* Wed Nov 20 2013 Theodore Lee <theo148@gmail.com> - 1.1.1-1
|
|
|
a32fe72 |
- Update to upstream 1.1.1 release
|
|
|
a32fe72 |
|
|
|
3bff69b |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-5
|
|
|
3bff69b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
3bff69b |
|
|
Remi Collet |
17b7d96 |
* Fri Mar 22 2013 Remi Collet <rcollet@redhat.com> - 1.1.0-4
|
|
Remi Collet |
17b7d96 |
- rebuild for http://fedoraproject.org/wiki/Features/Php55
|
|
Remi Collet |
17b7d96 |
|
|
|
9cfe351 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-3
|
|
|
9cfe351 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
9cfe351 |
|
|
|
09ce1ed |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.0-2
|
|
|
09ce1ed |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
09ce1ed |
|
|
|
3ae8443 |
* Fri Apr 20 2012 Theodore Lee <theo148@gmail.com> - 1.1.0-1
|
|
|
3ae8443 |
- Update to upstream 1.1.0 release
|
|
|
3ae8443 |
- Drop upstreamed cflags patch
|
|
|
3ae8443 |
|
|
|
31016b8 |
* Thu Jan 19 2012 Remi Collet <remi@fedoraproject.org> - 1.0.1-6
|
|
|
31016b8 |
- build against php 5.4
|
|
|
31016b8 |
- fix filters
|
|
|
31016b8 |
|
|
|
c62d5e2 |
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-5
|
|
|
c62d5e2 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
c62d5e2 |
|
|
|
8f9bbd0 |
* Fri May 13 2011 Theodore Lee <theo148@gmail.com> - 1.0.1-4
|
|
|
8f9bbd0 |
- Fix commenting in module configuration
|
|
|
8f9bbd0 |
|
|
|
8f9bbd0 |
* Thu May 12 2011 Theodore Lee <theo148@gmail.com> - 1.0.1-3
|
|
|
8f9bbd0 |
- Remove unused php_apiver macro
|
|
|
8f9bbd0 |
- Specify version in php-devel requires
|
|
|
8f9bbd0 |
- Note upstream report for CFLAGS patch
|
|
|
8f9bbd0 |
- Add check section
|
|
|
8f9bbd0 |
- Document options in default config file
|
|
|
8f9bbd0 |
|
|
|
8f9bbd0 |
* Wed May 04 2011 Theodore Lee <theo148@gmail.com> - 1.0.1-2
|
|
|
8f9bbd0 |
- Update patch to preserve original compiler flags
|
|
|
8f9bbd0 |
|
|
|
8f9bbd0 |
* Tue May 03 2011 Theodore Lee <theo148@gmail.com> - 1.0.1-1
|
|
|
8f9bbd0 |
- Initial package
|