Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:13ilya:php73
php7-psr
php7-psr.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File php7-psr.spec of Package php7-psr
# # spec file for package php7-psr # # Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define pkg_name psr %define php_name php7 %define php_extdir %(php-config --extension-dir) %define php_cfgdir %{_sysconfdir}/%{php_name}/conf.d Name: %{php_name}-%{pkg_name} Version: 1.2.0 Release: 0 Summary: PSR Extension Module License: BSD-2-Clause URL: https://pecl.php.net/package/%{pkg_name} Source0: https://pecl.php.net/get/%{pkg_name}-%{version}.tgz BuildRequires: %{php_name}-devel >= 7.3.0 Requires: %{php_name}(api) = %{php_core_api} Requires: %{php_name}(zend-abi) = %{php_zend_api} %description This extension provides the accepted PSR interfaces, so they can be used in an extension. %prep %autosetup -p1 -n %{pkg_name}-%{version} %build export CFLAGS="%{optflags} -fvisibility=hidden" phpize %configure %make_build PHP_EXECUTABLE=%{_bindir}/%{php_name} %check %make_build PHP_EXECUTABLE=%{_bindir}/%{php_name} NO_INTERACTION=1 test %install %make_build INSTALL_ROOT=%{buildroot} install-modules mkdir -p %{buildroot}%{php_cfgdir} cat > %{buildroot}%{php_cfgdir}/%{pkg_name}.ini << EOF ; comment out next line to disable %{pkg_name} extension in php extension=%{pkg_name}.so EOF %files %doc CHANGELOG.md README.md %license LICENSE.md %config(noreplace) %{php_cfgdir}/%{pkg_name}.ini %{php_extdir}/%{pkg_name}.so %changelog
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