# # spec file for package phalcon %global altName cphalcon #%global debug_package %{nil} Name: php56w-phalcon Summary: High performance, full-stack PHP framework delivered as a C extension Version: 3.4.5 Release: 1 License: BSD Group: Development/Libraries Url: https://phalconphp.com/ Source0: https://github.com/phalcon/%{altName}/archive/v%{version}.tar.gz#/%{altName}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{altName}-%{version} Requires: php56w-json Requires: php56w-pdo Requires: php56w-common #Recommends: php56w-mbstring #Recommends: php56w-mcrypt BuildRequires: make BuildRequires: gcc BuildRequires: php56w-devel BuildRequires: libtool BuildRequires: pcre-devel BuildRequires: re2c BuildRequires: sed %description Phalcon is an open source full stack framework for PHP, written as a C-extension. Phalcon is optimized for high performance. Its unique architecture allows the framework to always be memory resident, offering its functionality whenever its needed, without expensive file stats and file reads that traditional PHP frameworks employ. %prep %autosetup -n %{altName}-%{version} %build cd build cp -R php5 php5-zts cp -R php7 php7-zts sed -e '/^make/ d' -e '/Thanks/ d' -e '/^export CFL/ d' copr-builder && echo "make -s -j\"$(getconf _NPROCESSORS_ONLN)\"" >> copr-builder sed -e '/^make/ d' -e '/Thanks/ d' -e '/^export CFL/ d' copr-installer && echo "make -s install" >> copr-installer sed -e 's/v phpize/v zts-phpize/g' -e 's/v php-config/v zts-php-config/g' -e 's:"$PHP_VERSION/$DIR":"${PHP_VERSION}-zts/${DIR}":g' copr-zts-builder sed -e 's/v phpize/v zts-phpize/g' -e 's/v php-config/v zts-php-config/g' -e 's:"$PHP_VERSION/$DIR":"${PHP_VERSION}-zts/${DIR}":g' copr-zts-installer chmod +x copr-* CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ./copr-builder %install cd build export INSTALL_ROOT=%{buildroot} && ./copr-installer export INSTALL_ROOT=%{buildroot} && ./copr-zts-installer mkdir -p %{buildroot}%{_sysconfdir}/php.d/ echo "extension=phalcon.so" > %{buildroot}%{_sysconfdir}/php.d/20-phalcon.ini mkdir -p %{buildroot}%{_sysconfdir}/php-zts.d/ echo "extension=phalcon.so" > %{buildroot}%{_sysconfdir}/php-zts.d/20-phalcon.ini cd .. mkdir -p %{buildroot}%{_defaultdocdir}/phalcon/ install -m644 LICENSE-PHP.txt %{buildroot}%{_defaultdocdir}/phalcon/LICENSE-PHP.txt install -m644 LICENSE-ZEND.txt %{buildroot}%{_defaultdocdir}/phalcon/LICENSE-ZEND.txt install -m644 LICENSE.txt %{buildroot}%{_defaultdocdir}/phalcon/LICENSE.txt install -m644 README.md %{buildroot}%{_defaultdocdir}/phalcon/README.md install -m644 BACKERS.md %{buildroot}%{_defaultdocdir}/phalcon/BACKERS.md install -m644 CHANGELOG.md %{buildroot}%{_defaultdocdir}/phalcon/CHANGELOG.md install -m644 CHANGELOG-1.x.md %{buildroot}%{_defaultdocdir}/phalcon/CHANGELOG-1.x.md install -m644 CHANGELOG-2.0.md %{buildroot}%{_defaultdocdir}/phalcon/CHANGELOG-2.0.md install -m644 CHANGELOG-3.0.md %{buildroot}%{_defaultdocdir}/phalcon/CHANGELOG-3.0.md install -m644 CHANGELOG-3.1.md %{buildroot}%{_defaultdocdir}/phalcon/CHANGELOG-3.1.md install -m644 CHANGELOG-3.2.md %{buildroot}%{_defaultdocdir}/phalcon/CHANGELOG-3.2.md install -m644 CHANGELOG-3.3.md %{buildroot}%{_defaultdocdir}/phalcon/CHANGELOG-3.3.md install -m644 CHANGELOG-3.4.md %{buildroot}%{_defaultdocdir}/phalcon/CHANGELOG-3.4.md install -m644 CONTRIBUTING.md %{buildroot}%{_defaultdocdir}/phalcon/CONTRIBUTING.md %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %attr(755, root, root) %{_libdir}/php/modules/phalcon.so %attr(644, root, root) %{_sysconfdir}/php.d/20-phalcon.ini %attr(644, root, root) %{_includedir}/php/ext/phalcon/php_phalcon.h %attr(755, root, root) %{_libdir}/php-zts/modules/phalcon.so %attr(644, root, root) %{_sysconfdir}/php-zts.d/20-phalcon.ini %attr(644, root, root) %{_includedir}/php-zts/php/ext/phalcon/php_phalcon.h %attr(755, root, root) %{_defaultdocdir}/phalcon/ %changelog * Tue Jan 07 2020 Marco Bignami 3.4.5-1 - Updated package to last 3.x.x version. * Mon Jul 22 2019 Marco Bignami 3.4.4-1 - Updated package to upstream. * Tue Mar 19 2019 Marco Bignami 3.4.3-1 - Updated package to upstream. * Tue Nov 21 2018 Marco Bignami 3.4.1-3 - Added extensions depencencies. * Tue Nov 20 2018 Marco Bignami 3.4.1-2 - Added php-zts build. - Fixed some rpmlint issues * Fri Nov 16 2018 Marco Bignami 3.4.1-1 - Created spec file