Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:csbuild:DBA
dba-apa24-php-837-pdo_sqlsrv
dba-apa24-php-837-pdo_sqlsrv.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File dba-apa24-php-837-pdo_sqlsrv.spec of Package dba-apa24-php-837-pdo_sqlsrv
%define pkg_name pdo_sqlsrv %define real_vers 5.11.0 %define php_version 8.3.7 %define php_vers 837 %define prefix /DBA/apache24/PHP/%{php_version} %define phpcmd %{prefix}/bin/php %define phpize %{prefix}/bin/phpize %define phpconf %{prefix}/bin/php-config %define maketest 0 Name: dba-apa24-php-%{php_vers}-%{pkg_name} Summary: Microsoft Drivers for PHP for SQL Server (SQLSRV) Vendor: openSUSE Build Service Version: %{real_vers} Release: 0 License: BSD-2-Clause Group: Productivity/Networking/Web/Servers URL: http://pecl.php.net/package/pdo_sqlsrv Source: http://pecl.php.net/get/%{pkg_name}-%{real_vers}.tgz BuildRoot: %{_tmppath}/%{pkg_name}-%{real_vers}-build BuildRequires: dba-apa24-php-%{php_vers} # needed for brp-check-bytecode-version (jar, fastjar would do as well) BuildRequires: unzip BuildRequires: gcc-c++ libstdc++-devel autoconf BuildRequires: unixODBC-devel unixODBC #!BuildIgnore: dba-openssl-098o dba-openssl-098r dba-openssl-098x dba-openssl-101c dba-openssl-101e #!BuildIgnore: dba-curl-7371 BuildRequires: dba-m4-1419 dba-autoconf-271 %define autodir /DBA/autoconf/2.71 %if 0%{?suse_version} >= 1100 BuildRequires: -post-build-checks %endif %if 0%{?suse_version} >= 1200 BuildRequires: automake libtool %endif %description The Microsoft Drivers for PHP for SQL Server are PHP extensions that allow for the reading and writing of SQL Server data from within PHP scripts. The SQLSRV extension provides a procedural interface while the PDO_SQLSRV extension implements PDO for accessing data in all editions of SQL Server 2008 R2 and later (including Azure SQL DB). These drivers rely on the Microsoft ODBC Driver for SQL Server to handle the low-level communication with SQL Server. %prep %setup -q -n %{pkg_name}-%{real_vers} %build CFLAGS="%{optflags} -fno-strict-aliasing" CXXFLAGS="%{optflags} -fno-strict-aliasing" %if 0%{?suse_version} > 1000 CFLAGS="$CFLAGS -fstack-protector" CXXFLAGS="$CXXFLAGS -fstack-protector" %endif export CFLAGS export CXXFLAGS export PATH="$PATH:%{prefix}" %{phpize} %configure \ --with-php-config=%{phpconf} %{__make} %{?jobs:-j%jobs} %check %if %maketest %{__make} test PHP_EXECUTABLE=%{phpcmd} %endif %clean %{__rm} -rf %{buildroot} %install # %makeinstall INSTALL_ROOT=%{buildroot} %{__mkdir_p} %{buildroot}%{prefix}/conf %{__mkdir_p} %{buildroot}%{prefix}/lib/php/extensions %{__install} -m 0755 ./.libs/%{pkg_name}.so %{buildroot}%{prefix}/lib/php/extensions/ %{__rm} -rf %{buildroot}%{prefix}/include/php/ext %files %defattr(-,root,root,-) %dir %{prefix}/conf %dir %{prefix}/lib/php/extensions %{prefix}/lib/php/extensions/%{pkg_name}.so %changelog * Thu May 16 2024 Sebastian Roth <sebastian.roth@bertelsmann.de> - inital version
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor