Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:lrupp
php-pdlib
php-pdlib.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File php-pdlib.spec of Package php-pdlib
# # spec file for package php-pdlib # # Copyright (c) 2024 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/ # Name: php-pdlib %define real_name pdlib Version: 1.1.0 Release: 0 Summary: PHP extension for Dlib License: MIT URL: https://github.com/goodspb/pdlib Source: %{real_name}-%{version}.tar.xz BuildRequires: php-devel BuildRequires: dlib-devel BuildRequires: gcc-c++ BuildRequires: libX11-devel BuildRequires: openblas-common-devel libopenblas_pthreads-devel BuildRequires: giflib-devel # for tests BuildRequires: php-bz2 %define extension_dir %(php-config --extension-dir) %define php_ini_dir %(php-config --ini-dir) %description dlib is a toolkit for making real world machine learning and data analysis applications. This package provides a PHP-extension for Dlib. %prep %autosetup -p1 -n %{real_name}-%{version} # temporary fix for tests sed -i "s|1.0.2|%{version}|g" tests/version.phpt %build phpize export CXXFLAGS="%{optflags}" export LDFLAGS="%{optflags}" %configure make %{?_smp_mflags} %install make DESTDIR=%{buildroot} INSTALL_ROOT=%{buildroot} install mkdir -p %{buildroot}%{php_ini_dir} echo "; comment out next line to disable $ext extension in php" > %{buildroot}%{php_ini_dir}/%{real_name}.ini echo "[%{real_name}]" >> %{buildroot}%{php_ini_dir}/%{real_name}.ini echo "extension=%{real_name}.so" >> %{buildroot}%{php_ini_dir}/%{real_name}.ini %check make NO_INTERACTION=1 test %files %license LICENSE %doc README.md CREDITS %config(noreplace) %{php_ini_dir}/%{real_name}.ini %{extension_dir}/%{real_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