summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2012-11-30 18:36:11 +0100
committerRemi Collet <fedora@famillecollet.com>2012-11-30 18:36:11 +0100
commit7b991ae2ca079acfccab56823654a56cca06e486 (patch)
treeb219115f7ab624e8710a22be215df98b876bf7f2
parent0ebfed70e38683de291b97be97a0344b37525013 (diff)
php-pecl-sphinx: also provides php-sphinx
-rw-r--r--Makefile2
-rw-r--r--php-pecl-sphinx.spec19
2 files changed, 16 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 1e65467..13af741 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
SRCDIR := $(shell pwd)
NAME := $(shell basename $(SRCDIR))
-include ../common/Makefile
+include ../../../common/Makefile
diff --git a/php-pecl-sphinx.spec b/php-pecl-sphinx.spec
index 72b11fd..9c08a41 100644
--- a/php-pecl-sphinx.spec
+++ b/php-pecl-sphinx.spec
@@ -4,7 +4,7 @@
Name: php-pecl-sphinx
Version: 1.2.0
-Release: 2%{?dist}
+Release: 2%{?dist}.1
Summary: PECL extension for Sphinx SQL full-text search engine
Group: Development/Languages
License: PHP
@@ -21,14 +21,21 @@ Requires: php(api) = %{php_core_api}
Requires(post): %{__pecl}
Requires(postun): %{__pecl}
+Provides: php-%{pecl_name} = %{version}
+Provides: php-%{pecl_name}%{?_isa} = %{version}
Provides: php-pecl(%{pecl_name}) = %{version}
+Provides: php-pecl(%{pecl_name})%{?_isa} = %{version}
+# Other third party repo stuff
+Obsoletes: php53-pecl-%{pecl_name}
+Obsoletes: php53u-pecl-%{pecl_name}
+%if "%{php_version}" > "5.4"
+Obsoletes: php54-pecl-%{pecl_name}
+%endif
-# RPM 4.8
+# Filter private shared
%{?filter_provides_in: %filter_provides_in %{_libdir}/.*\.so$}
%{?filter_setup}
-# RPM 4.9
-%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}%{-libdir}/.*\\.so$
%description
@@ -75,6 +82,7 @@ make %{?_smp_mflags}
--define extension_dir=%{pecl_name}-%{version}/modules \
--define extension=%{pecl_name}.so \
--modules | grep %{pecl_name}
+
%{__ztsphp} --no-php-ini \
--define extension_dir=%{pecl_name}-%{version}-zts/modules \
--define extension=%{pecl_name}.so \
@@ -123,6 +131,9 @@ fi
%changelog
+* Fri Nov 30 2012 Remi Collet <RPMS@FamilleCollet.com> - 1.2.0-2.1
+- also provides php-sphinx
+
* Sat Apr 21 2012 Remi Collet <RPMS@FamilleCollet.com> - 1.2.0-2
- update to 1.2.0, php 5.4