This commit is contained in:
Remi Collet 2014-06-20 08:55:18 +02:00
parent fcf0a392ca
commit 4ee0f4c576

View File

@ -1,8 +1,13 @@
%define MS_REL %{nil}
%if "%{php_version}" < "5.6"
%global ini_name %{name}.ini
%else
%global ini_name 40-%{name}.ini
%endif
Name: mapserver%{MS_REL}
Version: 6.2.1
Release: 6%{?dist}
Release: 7%{?dist}
Summary: Environment for building spatially-enabled internet applications
Group: Development/Tools
@ -223,7 +228,7 @@ install -p -m 755 mapscript/java/.libs/libjavamapscript-%{version}.so %{buildroo
# install php config file
mkdir -p %{buildroot}%{_sysconfdir}/php.d/
cat > %{buildroot}%{_sysconfdir}/php.d/%{name}.ini <<EOF
cat > %{buildroot}%{_sysconfdir}/php.d/%{ini_name} <<EOF
; Enable %{name} extension module
extension=php_mapscript%{MS_REL}.so
EOF
@ -260,7 +265,7 @@ chmod 755 %{buildroot}%{perl_vendorarch}/auto/mapscript%{MS_REL}/mapscript%{MS_R
%defattr(-,root,root)
%doc mapscript/php/README
%doc mapscript/php/examples
%config(noreplace) %{_sysconfdir}/php.d/%{name}.ini
%config(noreplace) %{_sysconfdir}/php.d/%{ini_name}
%{_libdir}/php/modules/php_mapscript%{MS_REL}.so
%files perl
@ -286,6 +291,10 @@ chmod 755 %{buildroot}%{perl_vendorarch}/auto/mapscript%{MS_REL}/mapscript%{MS_R
%{_libdir}/libjavamapscript-%{version}.so
%changelog
* Fri Jun 20 2014 Remi Collet <rcollet@redhat.com> - 6.2.1-7
- rebuild for https://fedoraproject.org/wiki/Changes/Php56
- add numerical prefix to extension configuration file
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.2.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild