Compare commits
34 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
134bf5cb18 | ||
|
882efb70bb | ||
|
30a9b45dc6 | ||
|
1db42ab386 | ||
|
1bc4c16f3d | ||
|
54fc28d0ca | ||
|
ad52d6d60f | ||
|
904778b89d | ||
|
5f4d1050a4 | ||
|
864c596b33 | ||
|
d51844d8c0 | ||
|
ea42db6eaa | ||
|
246ff5fd20 | ||
|
f36e05bc19 | ||
|
99aabfd520 | ||
|
5c50da9bdd | ||
|
1e875b5b26 | ||
|
902005deb0 | ||
|
57517c8951 | ||
|
0cea3ac9d5 | ||
|
110243cb78 | ||
|
bc0ec571c4 | ||
|
a3cb826e01 | ||
|
343160e08b | ||
|
dec3834385 | ||
|
d1bbca72de | ||
|
132f35bc92 | ||
|
c8f842df00 | ||
|
b26b89c6eb | ||
|
56a5b252f9 | ||
|
b09bf1ae4f | ||
|
da7d2dd599 | ||
|
1f32326a5a | ||
|
f7a91f9ae7 |
10
.gitignore
vendored
10
.gitignore
vendored
@ -1,3 +1,13 @@
|
||||
clog
|
||||
/msgpack-0.5.5.tgz
|
||||
/msgpack-0.5.7.tgz
|
||||
/msgpack-2.0.1.tgz
|
||||
/msgpack-2.0.2.tgz
|
||||
/msgpack-2.0.3-943d272.tar.gz
|
||||
/msgpack-2.0.3.tgz
|
||||
/msgpack-2.1.0beta1.tgz
|
||||
/msgpack-2.1.0.tgz
|
||||
/msgpack-2.1.1.tgz
|
||||
/msgpack-2.1.2.tgz
|
||||
/msgpack-2.2.0RC1.tgz
|
||||
/msgpack-2.2.0RC2.tgz
|
||||
|
@ -1,33 +1,41 @@
|
||||
# Fedora spec file for php-pecl-msgpack
|
||||
#
|
||||
# Copyright (c) 2012-2016 Remi Collet
|
||||
# Copyright (c) 2012-2022 Remi Collet
|
||||
# License: CC-BY-SA
|
||||
# http://creativecommons.org/licenses/by-sa/4.0/
|
||||
#
|
||||
# Please, preserve the changelog entries
|
||||
#
|
||||
|
||||
# we don't want -z defs linker flag
|
||||
%undefine _strict_symbol_defs_build
|
||||
|
||||
%global upstream_version 2.2.0
|
||||
%global upstream_prever RC2
|
||||
%global upstream_lower RC2
|
||||
|
||||
%global pecl_name msgpack
|
||||
%global with_zts 0%{?__ztsphp:1}
|
||||
%global ini_name 40-%{pecl_name}.ini
|
||||
# system library is outdated, and bundled library includes not yet released changes
|
||||
# BTW, only pack_template.h and unpack_template.h headers are used
|
||||
%global with_msgpack 0
|
||||
|
||||
Summary: API for communicating with MessagePack serialization
|
||||
Name: php-pecl-msgpack
|
||||
Version: 0.5.7
|
||||
Release: 3%{?dist}
|
||||
Version: %{upstream_version}%{?upstream_lower:~%{upstream_lower}}
|
||||
Release: 1%{?dist}
|
||||
Source: https://pecl.php.net/get/%{pecl_name}-%{upstream_version}%{?upstream_prever}.tgz
|
||||
License: BSD
|
||||
Group: Development/Languages
|
||||
URL: http://pecl.php.net/package/msgpack
|
||||
Source: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz
|
||||
URL: https://pecl.php.net/package/msgpack
|
||||
|
||||
BuildRequires: php-devel
|
||||
BuildRequires: php-devel >= 7.0
|
||||
BuildRequires: php-pear
|
||||
%if %{with_msgpack}
|
||||
BuildRequires: msgpack-devel
|
||||
%else
|
||||
Provides: bundled(msgpack) = 3.2.0
|
||||
%endif
|
||||
# https://github.com/msgpack/msgpack-php/issues/25
|
||||
ExcludeArch: ppc64
|
||||
|
||||
Requires: php(zend-abi) = %{php_zend_api}
|
||||
Requires: php(api) = %{php_core_api}
|
||||
@ -56,7 +64,6 @@ This extension is still EXPERIMENTAL.
|
||||
|
||||
%package devel
|
||||
Summary: MessagePack developer files (header)
|
||||
Group: Development/Libraries
|
||||
Requires: php-pecl-%{pecl_name}%{?_isa} = %{version}-%{release}
|
||||
Requires: php-devel%{?_isa}
|
||||
|
||||
@ -65,11 +72,12 @@ These are the files needed to compile programs using MessagePack serializer.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q -c
|
||||
%setup -qc
|
||||
mv %{pecl_name}-%{upstream_version}%{?upstream_prever} NTS
|
||||
|
||||
sed -e '/LICENSE/s/role="doc"/role="src"/' -i package.xml
|
||||
|
||||
mv %{pecl_name}-%{version} NTS
|
||||
cd NTS
|
||||
|
||||
%if %{with_msgpack}
|
||||
# use system library
|
||||
rm -rf msgpack
|
||||
@ -80,8 +88,8 @@ rm -rf msgpack
|
||||
|
||||
# Sanity check, really often broken
|
||||
extver=$(sed -n '/#define PHP_MSGPACK_VERSION/{s/.* "//;s/".*$//;p}' php_msgpack.h)
|
||||
if test "x${extver}" != "x%{version}"; then
|
||||
: Error: Upstream extension version is ${extver}, expecting %{version}.
|
||||
if test "x${extver}" != "x%{upstream_version}%{?upstream_prever}%{?gh_date:-dev}"; then
|
||||
: Error: Upstream extension version is ${extver}, expecting %{upstream_version}%{?upstream_prever}%{?gh_date:-dev}.
|
||||
exit 1
|
||||
fi
|
||||
cd ..
|
||||
@ -101,7 +109,6 @@ extension = %{pecl_name}.so
|
||||
;msgpack.error_display = On
|
||||
;msgpack.illegal_key_insert = Off
|
||||
;msgpack.php_only = On
|
||||
;msgpack.use_str8_serialization = On
|
||||
EOF
|
||||
|
||||
|
||||
@ -136,7 +143,8 @@ install -D -m 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml
|
||||
# Test & Documentation
|
||||
cd NTS
|
||||
for i in $(grep 'role="test"' ../package.xml | sed -e 's/^.*name="//;s/".*$//')
|
||||
do install -Dpm 644 $i %{buildroot}%{pecl_testdir}/%{pecl_name}/$i
|
||||
do [ -f tests/$i ] && install -Dpm 644 tests/$i %{buildroot}%{pecl_testdir}/%{pecl_name}/tests/$i
|
||||
[ -f $i ] && install -Dpm 644 $i %{buildroot}%{pecl_testdir}/%{pecl_name}/$i
|
||||
done
|
||||
for i in $(grep 'role="doc"' ../package.xml | sed -e 's/^.*name="//;s/".*$//')
|
||||
do install -Dpm 644 $i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i
|
||||
@ -144,8 +152,12 @@ done
|
||||
|
||||
|
||||
%check
|
||||
# Known by upstream as failed test (travis result)
|
||||
rm */tests/{018,030,040,040b,040c,040d}.phpt
|
||||
# Erratic results
|
||||
rm */tests/034.phpt
|
||||
%ifarch aarch64
|
||||
# too slow
|
||||
rm */tests/035.phpt
|
||||
%endif
|
||||
|
||||
cd NTS
|
||||
: Minimal load test for NTS extension
|
||||
@ -156,9 +168,7 @@ cd NTS
|
||||
: Upstream test suite for NTS extension
|
||||
TEST_PHP_EXECUTABLE=%{_bindir}/php \
|
||||
TEST_PHP_ARGS="-n -d extension_dir=$PWD/modules -d extension=%{pecl_name}.so" \
|
||||
NO_INTERACTION=1 \
|
||||
REPORT_EXIT_STATUS=1 \
|
||||
%{_bindir}/php -n run-tests.php --show-diff
|
||||
%{_bindir}/php -n run-tests.php -q --show-diff
|
||||
|
||||
%if %{with_zts}
|
||||
cd ../ZTS
|
||||
@ -170,13 +180,12 @@ cd ../ZTS
|
||||
: Upstream test suite for ZTS extension
|
||||
TEST_PHP_EXECUTABLE=%{__ztsphp} \
|
||||
TEST_PHP_ARGS="-n -d extension_dir=$PWD/modules -d extension=%{pecl_name}.so" \
|
||||
NO_INTERACTION=1 \
|
||||
REPORT_EXIT_STATUS=1 \
|
||||
%{__ztsphp} -n run-tests.php --show-diff
|
||||
%{__ztsphp} -n run-tests.php -q --show-diff
|
||||
%endif
|
||||
|
||||
|
||||
%files
|
||||
%license NTS/LICENSE
|
||||
%doc %{pecl_docdir}/%{pecl_name}
|
||||
%{pecl_xmldir}/%{name}.xml
|
||||
|
||||
@ -199,6 +208,100 @@ REPORT_EXIT_STATUS=1 \
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Oct 7 2022 Remi Collet <remi@remirepo.net> - 2.2.0~RC2-1
|
||||
- update to 2.2.0RC2
|
||||
|
||||
* Wed Oct 05 2022 Remi Collet <remi@remirepo.net> - 2.2.0~RC1-4
|
||||
- rebuild for https://fedoraproject.org/wiki/Changes/php82
|
||||
|
||||
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0~RC1-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
||||
|
||||
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0~RC1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
||||
|
||||
* Thu Oct 28 2021 Remi Collet <remi@remirepo.net> - 2.2.0~RC1-1
|
||||
- update to 2.2.0RC1
|
||||
- rebuild for https://fedoraproject.org/wiki/Changes/php81
|
||||
|
||||
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.2-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
||||
|
||||
* Thu Mar 4 2021 Remi Collet <remi@remirepo.net> - 2.1.2-2
|
||||
- rebuild for https://fedoraproject.org/wiki/Changes/php80
|
||||
|
||||
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.2-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
||||
|
||||
* Mon Nov 30 2020 Remi Collet <remi@remirepo.net> - 2.1.2-1
|
||||
- update to 2.1.2
|
||||
|
||||
* Mon Aug 10 2020 Remi Collet <remi@remirepo.net> - 2.1.1-1
|
||||
- update to 2.1.1
|
||||
|
||||
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
||||
|
||||
* Mon Mar 2 2020 Remi Collet <remi@remirepo.net> - 2.1.0-1
|
||||
- update to 2.1.0
|
||||
|
||||
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.0~beta1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
* Fri Dec 20 2019 Remi Collet <remi@remirepo.net> - 2.1.0~beta1-1
|
||||
- update to 2.1.0beta1
|
||||
|
||||
* Thu Oct 03 2019 Remi Collet <remi@remirepo.net> - 2.0.3-4
|
||||
- rebuild for https://fedoraproject.org/wiki/Changes/php74
|
||||
|
||||
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.3-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||
|
||||
* Thu Dec 20 2018 Remi Collet <remi@remirepo.net> - 2.0.3-1
|
||||
- update to 2.0.3
|
||||
|
||||
* Thu Oct 11 2018 Remi Collet <remi@remirepo.net> - 2.0.3-0.1.20171026.943d272
|
||||
- update to 2.0.3-dev for PHP 7.3 with patches from
|
||||
https://github.com/msgpack/msgpack-php/pull/124
|
||||
https://github.com/msgpack/msgpack-php/pull/127
|
||||
- ignore test suite result for now
|
||||
|
||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
||||
|
||||
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Mon Jan 29 2018 Remi Collet <remi@remirepo.net> - 2.0.2-6
|
||||
- undefine _strict_symbol_defs_build
|
||||
|
||||
* Tue Oct 03 2017 Remi Collet <remi@fedoraproject.org> - 2.0.2-5
|
||||
- rebuild for https://fedoraproject.org/wiki/Changes/php72
|
||||
|
||||
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||
|
||||
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
* Wed Dec 7 2016 Remi Collet <remi@fedoraproject.org> - 2.0.2-1
|
||||
- update to 2.0.2
|
||||
|
||||
* Mon Nov 14 2016 Remi Collet <remi@fedoraproject.org> - 2.0.1-2
|
||||
- rebuild for https://fedoraproject.org/wiki/Changes/php71
|
||||
- add patch for PHP 7.1
|
||||
|
||||
* Mon Jun 27 2016 Remi Collet <remi@fedoraproject.org> - 2.0.1-1
|
||||
- update to 2.0.1 (php 7, beta)
|
||||
- add patch for PHP 7.1
|
||||
open https://github.com/msgpack/msgpack-php/pull/87
|
||||
|
||||
* Sat Feb 13 2016 Remi Collet <remi@fedoraproject.org> - 0.5.7-3
|
||||
- drop scriptlets (replaced by file triggers in php-pear)
|
||||
- cleanup
|
||||
|
Loading…
Reference in New Issue
Block a user