Changes of Revision 5
[+] | Deleted | php-pecl-memcached-dev.changes |
@@ -1,5 +0,0 @@ -------------------------------------------------------------------- -Fri Aug 19 06:12:17 UTC 2016 - cs@linux-administrator.com - -- initial import - | ||
[-] | Added | php-pecl-memcached-php7.changes ^ |
1
2 +------------------------------------------------------------------- 3 +Tue Feb 21 13:18:38 UTC 2017 - cs@linux-administrator.com 4 + 5 +- update to release 3.0.3 6 + 7 |
||
[+] | Deleted | php-pecl-memcached-dev.spec ^ |
@@ -1,546 +0,0 @@ -# remirepo spec file for php-pecl-memcached -# With SCL compatibility, from: -# -# Fedora spec file for php-pecl-memcached -# -# Copyright (c) 2009-2016 Remi Collet -# License: CC-BY-SA -# http://creativecommons.org/licenses/by-sa/4.0/ -# -# Please, preserve the changelog entries -# -%if 0%{?scl:1} -%if "%{scl}" == "rh-php56" -%global sub_prefix more-php56- -%else -%global sub_prefix %{scl_prefix} -%endif -%endif - -%{?scl: %scl_package php-pecl-memcached} -%{!?scl: %global _root_prefix %{_prefix}} -%{!?php_inidir: %global php_inidir %{_sysconfdir}/php.d} -%{!?__pecl: %global __pecl %{_bindir}/pecl} -%{!?__php: %global __php %{_bindir}/php} - -%global with_fastlz 1 -%global with_igbin 1 -%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} -%global with_tests %{?_with_tests:1}%{!?_with_tests:0} -%global pecl_name memcached -# https://github.com/php-memcached-dev/php-memcached/commits/php7 -%global gh_commit de6b9b58b3d33965863bc657687f4dd637a20c20 -%global gh_short %(c=%{gh_commit}; echo ${c:0:7}) -%global gh_date 20160217 -%global gh_owner php-memcached-dev -%global gh_project php-memcached -#global prever RC1 -#global intver rc1 -%if "%{php_version}" < "5.6" -# After igbinary, json, msgpack -%global ini_name z-%{pecl_name}.ini -%else -# After 40-igbinary, 40-json, 40-msgpack -%global ini_name 50-%{pecl_name}.ini -%endif - -Summary: Extension to work with the Memcached caching daemon -Name: %{?sub_prefix}php-pecl-memcached -Version: 3.0.0 -Release: 0.1.%{gh_date}git%{gh_short}%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} -License: PHP -Group: Development/Languages -URL: http://pecl.php.net/package/%{pecl_name} - -Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}%{?prever}-%{gh_short}.tar.gz - -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) -# 5.2.10 required to HAVE_JSON enabled -BuildRequires: %{?scl_prefix}php-devel >= 5.2.10 -BuildRequires: %{?scl_prefix}php-pear -BuildRequires: %{?scl_prefix}php-json -%if %{with_igbin} -BuildRequires: %{?sub_prefix}php-pecl-igbinary-devel -%endif -%ifnarch ppc64 -BuildRequires: %{?sub_prefix}php-pecl-msgpack-devel -%endif -BuildRequires: zlib-devel -BuildRequires: cyrus-sasl-devel -%if %{with_fastlz} -BuildRequires: fastlz-devel -%endif -%if %{with_tests} -BuildRequires: memcached -%endif - -%if 0%{?scl:1} && 0%{?fedora} < 15 && 0%{?rhel} < 7 && "%{?scl_vendor}" != "remi" -# Filter in the SCL collection -%{?filter_requires_in: %filter_requires_in %{_libdir}/.*\.so} -# libvent from SCL as not available in system -BuildRequires: %{?sub_prefix}libevent-devel > 2 -Requires: %{?sub_prefix}libevent%{_isa} > 2 -BuildRequires: %{?sub_prefix}libmemcached-devel > 1 -Requires: %{?sub_prefix}libmemcached-libs%{_isa} > 1 -%if %{with_fastlz} -Requires: fastlz%{_isa} -%endif -Requires: cyrus-sasl-lib%{_isa} -%else -BuildRequires: libevent-devel >= 2.0.2 -%if 0%{?rhel} == 5 -BuildRequires: libmemcached-devel > 1 -%else -# To ensure use of libmemcached-last for --enable-memcached-protocol -BuildRequires: libmemcached-devel >= 1.0.16 -%endif -%endif - -Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} -Requires: %{?scl_prefix}php(api) = %{php_core_api} -Requires: %{?scl_prefix}php-json%{?_isa} -%if %{with_igbin} -Requires: %{?sub_prefix}php-pecl-igbinary%{?_isa} -%endif -%ifnarch ppc64 -Requires: %{?sub_prefix}php-pecl-msgpack%{?_isa} -%endif -%{?_sclreq:Requires: %{?scl_prefix}runtime%{?_sclreq}%{?_isa}} - -Provides: %{?scl_prefix}php-%{pecl_name} = %{version} -Provides: %{?scl_prefix}php-%{pecl_name}%{?_isa} = %{version} -Provides: %{?scl_prefix}php-pecl(%{pecl_name}) = %{version} -Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version} - -%if "%{?vendor}" == "Remi Collet" && 0%{!?scl:1} -# Other third party repo stuff -Obsoletes: php53-pecl-%{pecl_name} <= %{version} -Obsoletes: php53u-pecl-%{pecl_name} <= %{version} -Obsoletes: php54-pecl-%{pecl_name} <= %{version} -Obsoletes: php54w-pecl-%{pecl_name} <= %{version} -%if "%{php_version}" > "5.5" -Obsoletes: php55u-pecl-%{pecl_name} <= %{version} -Obsoletes: php55w-pecl-%{pecl_name} <= %{version} -%endif -%if "%{php_version}" > "5.6" -Obsoletes: php56u-pecl-%{pecl_name} <= %{version} -Obsoletes: php56w-pecl-%{pecl_name} <= %{version} -%endif -%if "%{php_version}" > "7.0" -Obsoletes: php70u-pecl-%{pecl_name} <= %{version} -Obsoletes: php70w-pecl-%{pecl_name} <= %{version} -%endif -%endif - -%if 0%{?fedora} < 20 && 0%{?rhel} < 7 -# Filter private shared -%{?filter_provides_in: %filter_provides_in %{_libdir}/.*\.so$} -%{?filter_setup} -%endif - - -%description -This extension uses libmemcached library to provide API for communicating -with memcached servers. - -memcached is a high-performance, distributed memory object caching system, -generic in nature, but intended for use in speeding up dynamic web -applications by alleviating database load. - -It also provides a session handler (memcached). - -Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')%{?scl: as Software Collection (%{scl} by %{?scl_vendor}%{!?scl_vendor:rh})}. - - -%prep -%setup -c -q -mv %{gh_project}-%{gh_commit} NTS -sed -e '/PHP_MEMCACHED_VERSION/s/3.0.0b1/%{version}-dev/' -i NTS/php_memcached.h -%{__php} -r ' - $pkg = simplexml_load_file("NTS/package.xml"); - $pkg->date = substr("%{gh_date}",0,4)."-".substr("%{gh_date}",4,2)."-".substr("%{gh_date}",6,2); - $pkg->version->release = "%{version}dev"; - $pkg->stability->release = "devel"; - $pkg->asXML("package.xml"); -' - -# Don't install/register tests -sed -e 's/role="test"/role="src"/' \ - %{?_licensedir:-e '/LICENSE/s/role="doc"/role="src"/' } \ - -i package.xml - -cd NTS -%if %{with_fastlz} -rm -r fastlz -sed -e '/name=.fastlz/d' -i ../package.xml -%endif - -# Check version as upstream often forget to update this -extver=$(sed -n '/#define PHP_MEMCACHED_VERSION/{s/.* "//;s/".*$//;p}' php_memcached.h) -if test "x${extver}" != "x%{version}%{?gh_date:-dev}%{?intver}"; then - : Error: Upstream HTTP version is now ${extver}, expecting %{version}%{?prever}%{?gh_date:-dev}. - : Update the pdover macro and rebuild. - exit 1 -fi -cd .. - -cat > %{ini_name} << 'EOF' -; Enable %{pecl_name} extension module -extension=%{pecl_name}.so - -; ----- Options to use the memcached session handler - -; RPM note : save_handler and save_path are defined -; for mod_php, in /etc/httpd/conf.d/php.conf -; for php-fpm, in %{_sysconfdir}/php-fpm.d/*conf - -; Use memcache as a session handler -;session.save_handler=memcached -; Defines a comma separated list of server urls to use for session storage | ||
[-] | Added | php-pecl-memcached-php7.spec ^ |
201 1
2 +# remirepo spec file for php-pecl-memcached 3 +# With SCL compatibility, from: 4 +# 5 +# Fedora spec file for php-pecl-memcached 6 +# 7 +# Copyright (c) 2009-2017 Remi Collet 8 +# License: CC-BY-SA 9 +# http://creativecommons.org/licenses/by-sa/4.0/ 10 +# 11 +# Please, preserve the changelog entries 12 +# 13 +%if 0%{?scl:1} 14 +%global sub_prefix %{scl_prefix} 15 +%scl_package php-pecl-memcached 16 +%else 17 +%global _root_prefix %{_prefix} 18 +%endif 19 + 20 +%global with_fastlz 1 21 +%global with_igbin 1 22 +%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}} 23 +%global with_tests 0%{!?_without_tests:1} 24 +%global pecl_name memcached 25 +# After 40-igbinary, 40-json, 40-msgpack 26 +%global ini_name 50-%{pecl_name}.ini 27 + 28 +Summary: Extension to work with the Memcached caching daemon 29 +Name: %{?sub_prefix}php-pecl-memcached 30 +Version: 3.0.3 31 +Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}} 32 +License: PHP 33 +Group: Development/Languages 34 +URL: http://pecl.php.net/package/%{pecl_name} 35 + 36 +Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz 37 + 38 +BuildRequires: %{?scl_prefix}php-devel >= 7 39 +BuildRequires: %{?scl_prefix}php-pear 40 +BuildRequires: %{?scl_prefix}php-json 41 +%if %{with_igbin} 42 +BuildRequires: %{?sub_prefix}php-pecl-igbinary-devel 43 +%endif 44 +%ifnarch ppc64 45 +BuildRequires: %{?sub_prefix}php-pecl-msgpack-devel 46 +%endif 47 +BuildRequires: zlib-devel 48 +BuildRequires: cyrus-sasl-devel 49 +%if %{with_fastlz} 50 +BuildRequires: fastlz-devel 51 +%endif 52 +%if %{with_tests} 53 +BuildRequires: memcached 54 +%endif 55 + 56 +BuildRequires: libevent-devel >= 2.0.2 57 +# To ensure use of libmemcached-last for --enable-memcached-protocol 58 +BuildRequires: libmemcached-devel >= 1.0.16 59 + 60 +Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api} 61 +Requires: %{?scl_prefix}php(api) = %{php_core_api} 62 +Requires: %{?scl_prefix}php-json%{?_isa} 63 +%if %{with_igbin} 64 +Requires: %{?sub_prefix}php-pecl-igbinary%{?_isa} 65 +%endif 66 +%ifnarch ppc64 67 +Requires: %{?sub_prefix}php-pecl-msgpack%{?_isa} 68 +%endif 69 +%{?_sclreq:Requires: %{?scl_prefix}runtime%{?_sclreq}%{?_isa}} 70 + 71 +Provides: %{?scl_prefix}php-%{pecl_name} = %{version} 72 +Provides: %{?scl_prefix}php-%{pecl_name}%{?_isa} = %{version} 73 +Provides: %{?scl_prefix}php-pecl(%{pecl_name}) = %{version} 74 +Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version} 75 +%if "%{?scl_prefix}" != "%{?sub_prefix}" 76 +Provides: %{?scl_prefix}php-pecl-%{pecl_name} = %{version}-%{release} 77 +Provides: %{?scl_prefix}php-pecl-%{pecl_name}%{?_isa} = %{version}-%{release} 78 +%endif 79 + 80 +%if "%{?vendor}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel} 81 +# Other third party repo stuff 82 +Obsoletes: php53-pecl-%{pecl_name} <= %{version} 83 +Obsoletes: php53u-pecl-%{pecl_name} <= %{version} 84 +Obsoletes: php54-pecl-%{pecl_name} <= %{version} 85 +Obsoletes: php54w-pecl-%{pecl_name} <= %{version} 86 +%if "%{php_version}" > "5.5" 87 +Obsoletes: php55u-pecl-%{pecl_name} <= %{version} 88 +Obsoletes: php55w-pecl-%{pecl_name} <= %{version} 89 +%endif 90 +%if "%{php_version}" > "5.6" 91 +Obsoletes: php56u-pecl-%{pecl_name} <= %{version} 92 +Obsoletes: php56w-pecl-%{pecl_name} <= %{version} 93 +%endif 94 +%if "%{php_version}" > "7.0" 95 +Obsoletes: php70u-pecl-%{pecl_name} <= %{version} 96 +Obsoletes: php70w-pecl-%{pecl_name} <= %{version} 97 +%endif 98 +%if "%{php_version}" > "7.1" 99 +Obsoletes: php71u-pecl-%{pecl_name} <= %{version} 100 +Obsoletes: php71w-pecl-%{pecl_name} <= %{version} 101 +%endif 102 +%endif 103 + 104 +%if 0%{?fedora} < 20 && 0%{?rhel} < 7 105 +# Filter private shared 106 +%{?filter_provides_in: %filter_provides_in %{_libdir}/.*\.so$} 107 +%{?filter_setup} 108 +%endif 109 + 110 + 111 +%description 112 +This extension uses libmemcached library to provide API for communicating 113 +with memcached servers. 114 + 115 +memcached is a high-performance, distributed memory object caching system, 116 +generic in nature, but intended for use in speeding up dynamic web 117 +applications by alleviating database load. 118 + 119 +It also provides a session handler (memcached). 120 + 121 +Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')%{?scl: as Software Collection (%{scl} by %{?scl_vendor}%{!?scl_vendor:rh})}. 122 + 123 + 124 +%prep 125 +%setup -c -q 126 +mv %{pecl_name}-%{version} NTS 127 + 128 +# Don't install/register tests 129 +sed -e 's/role="test"/role="src"/' \ 130 + %{?_licensedir:-e '/LICENSE/s/role="doc"/role="src"/' } \ 131 + -i package.xml 132 + 133 +cd NTS 134 + 135 +%if %{with_fastlz} 136 +rm -r fastlz 137 +sed -e '/name=.fastlz/d' -i ../package.xml 138 +%endif 139 + 140 +# Check version as upstream often forget to update this 141 +extver=$(sed -n '/#define PHP_MEMCACHED_VERSION/{s/.* "//;s/".*$//;p}' php_memcached.h) 142 +if test "x${extver}" != "x%{version}%{?gh_date:-dev}%{?intver}"; then 143 + : Error: Upstream HTTP version is now ${extver}, expecting %{version}%{?prever}%{?gh_date:-dev}. 144 + : Update the pdover macro and rebuild. 145 + exit 1 146 +fi 147 +cd .. 148 + 149 +cat > %{ini_name} << 'EOF' 150 +; Enable %{pecl_name} extension module 151 +extension=%{pecl_name}.so 152 + 153 +; ----- Options to use the memcached session handler 154 + 155 +; RPM note : save_handler and save_path are defined 156 +; for mod_php, in /etc/httpd/conf.d/php.conf 157 +; for php-fpm, in %{_sysconfdir}/php-fpm.d/*conf 158 + 159 +; Use memcache as a session handler 160 +;session.save_handler=memcached 161 +; Defines a comma separated list of server urls to use for session storage 162 +;session.save_path="localhost:11211" 163 + 164 +; ----- Configuration options 165 +; http://php.net/manual/en/memcached.configuration.php 166 + 167 +EOF 168 + 169 +# default options with description from upstream 170 +cat NTS/memcached.ini >>%{ini_name} 171 + 172 +%if %{with_zts} 173 +cp -r NTS ZTS 174 +%endif 175 + 176 + 177 +%build 178 +%{?dtsenable} 179 + 180 +# only needed for SCL 181 +export PKG_CONFIG_PATH=%{_libdir}/pkgconfig 182 + 183 +peclconf() { 184 +%configure \ 185 +%if %{with_igbin} 186 + --enable-memcached-igbinary \ 187 +%endif 188 + --enable-memcached-json \ 189 + --enable-memcached-sasl \ 190 +%ifnarch ppc64 191 + --enable-memcached-msgpack \ 192 +%endif 193 +%if 0 194 + --disable-memcached-protocol \ 195 +%else 196 + --enable-memcached-protocol \ 197 +%endif 198 +%if %{with_fastlz} 199 + --with-system-fastlz \ 200 +%endif 201 |
||
Added | memcached-3.0.3.tgz ^ | |
Deleted | php-memcached-3.0.0-6ace07d.tar.gz ^ | |
Deleted | php-memcached-3.0.0-de6b9b5.tar.gz ^ |