summaryrefslogtreecommitdiffstats
path: root/uwsgi-plugin-php.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2017-08-30 17:12:35 +0200
committerRemi Collet <remi@remirepo.net>2017-08-30 17:12:35 +0200
commitfcfb5ebc606722ff055f28b271f25b7d2108b22c (patch)
tree5c027e1f106815350b81eb95eff4a8110267feb7 /uwsgi-plugin-php.spec
parent8ad0a75cf2129764eeb1b195601912077ecf119b (diff)
fix f27 build
Diffstat (limited to 'uwsgi-plugin-php.spec')
-rw-r--r--uwsgi-plugin-php.spec22
1 files changed, 21 insertions, 1 deletions
diff --git a/uwsgi-plugin-php.spec b/uwsgi-plugin-php.spec
index 6546f80..e792bd2 100644
--- a/uwsgi-plugin-php.spec
+++ b/uwsgi-plugin-php.spec
@@ -8,6 +8,7 @@
#
%global project uwsgi
+%undefine _debugsource_packages
# Disable RPATH check
%global __arch_install_post /bin/true
@@ -27,7 +28,7 @@ Requires: %{scl_prefix}php-embedded
Name: %{?scl_prefix}%{project}-plugin-php
Version: 2.0.15
-Release: 1%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
Summary: uWSGI - Plugin for PHP support
License: GPLv2 with exceptions
URL: http://projects.unbit.it/uwsgi
@@ -50,6 +51,22 @@ BuildRequires: python
Requires: %{project}-plugin-common = %{version}
+%if "%{?vendor}" == "Remi Collet" && 0%{!?scl:1} && 0%{?rhel}
+# Other third party repo stuff
+%if "%{php_version}" > "5.6"
+Obsoletes: %{project}-plugin-php56u <= %{version}
+%endif
+%if "%{php_version}" > "7.0"
+Obsoletes: %{project}-plugin-php70u <= %{version}
+%endif
+%if "%{php_version}" > "7.1"
+Obsoletes: %{project}-plugin-php71u <= %{version}
+%endif
+%if "%{php_version}" > "7.2"
+Obsoletes: %{project}-plugin-php72u <= %{version}
+%endif
+%endif
+
%description
This package contains the PHP plugin for uWSGI,
@@ -86,5 +103,8 @@ install -Dpm 755 %{?scl}%{!?scl:php}_plugin.so %{buildroot}%{_root_libdir}/%{pro
%changelog
+* Wed Aug 30 2017 Remi Collet <remi@remirepo.net> - 2.0.15-2
+- fix F27 build
+
* Wed Jun 21 2017 Remi Collet <remi@remirepo.net> - 2.0.15-1
- initial package