update to 3.4.3 [release 3.4.3-1mamba;Wed Feb 20 2019]

This commit is contained in:
Silvan Calarco 2024-01-06 09:59:32 +01:00
parent 54bbf86457
commit c858c4bc1a
2 changed files with 75 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# php-imagick # php-imagick
PHP wrapper to the ImageMagick library.

73
php-imagick.spec Normal file
View File

@ -0,0 +1,73 @@
%define php_majver %(php-config --version | cut -d. -f1-2)
Name: php-imagick
Version: 3.4.3
Release: 1mamba
Summary: PHP wrapper to the ImageMagick library
Group: System/Servers
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://pecl.php.net/package/imagick
Source: https://pecl.php.net/get/imagick-%{version}.tgz
License: PHP License
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libMagick-devel
## AUTOBUILDREQ-END
BuildRequires: php-devel >= 7.3.2
Requires: php >= %{php_majver}
Requires: php <= %{php_majver}.99
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
PHP wrapper to the ImageMagick library.
%debug_package
%prep
%setup -q -c %{name}-%{version}
%build
cd imagick-%{version}
phpize
%configure
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
cd imagick-%{version}
%makeinstall INSTALL_ROOT=%{buildroot}
install -d -m0755 %{buildroot}%{_sysconfdir}/php/php.d
cat > %{buildroot}%{_sysconfdir}/php/php.d/imagick.ini <<EOF
; Enable imagick extension module
extension=imagick.so
EOF
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post
if [ $1 -ge 1 ]; then
systemctl -q reload httpd
fi
:
%postun
if [ $1 -eq 0 ]; then
systemctl -q reload httpd
fi
:
%files
%defattr(-,root,root)
%{_sysconfdir}/php/php.d/imagick.ini
%{_includedir}/php/ext/imagick/php_imagick_shared.h
%{_libdir}/php/extensions/imagick.so
%changelog
* Wed Feb 20 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 3.4.3-1mamba
- update to 3.4.3
* Thu Nov 03 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 3.4.1-1mamba
- package created using the webbuild interface