summaryrefslogtreecommitdiffstats
path: root/php-pecl-memprof.spec
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-01-02 14:40:20 +0100
committerRemi Collet <fedora@famillecollet.com>2014-01-02 14:40:20 +0100
commit80eded66d5dd579346e34f522170869a3d0c0088 (patch)
treefb549a6b90cf3d2a4cf28e7f06f72585a7ee94ea /php-pecl-memprof.spec
parent3bc74d470bf734d18ff7cbe5285b1349724414da (diff)
php-pecl-memprof: switch to our spec
Diffstat (limited to 'php-pecl-memprof.spec')
-rw-r--r--php-pecl-memprof.spec30
1 files changed, 19 insertions, 11 deletions
diff --git a/php-pecl-memprof.spec b/php-pecl-memprof.spec
index 4a0c728..9ea7865 100644
--- a/php-pecl-memprof.spec
+++ b/php-pecl-memprof.spec
@@ -6,6 +6,7 @@
#
# Please, preserve the changelog entries
#
+%{?scl:%scl_package php-pecl-memprof}
%{!?php_inidir: %global php_inidir %{_sysconfdir}/php.d}
%{!?__pecl: %global __pecl %{_bindir}/pecl}
@@ -15,9 +16,9 @@
%global pecl_name memprof
Summary: Memory usage profiler
-Name: php-pecl-%{pecl_name}
+Name: %{?scl_prefix}php-pecl-%{pecl_name}
Version: 1.0.0
-Release: 3%{?dist}
+Release: 3%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}
License: BSD
Group: Development/Languages
URL: http://pecl.php.net/package/%{pecl_name}
@@ -27,19 +28,20 @@ Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz
Source1: https://raw.github.com/arnaud-lb/php-memory-profiler/master/LICENSE
Source2: https://raw.github.com/arnaud-lb/php-memory-profiler/master/README.md
-BuildRequires: php-devel > 5.3
-BuildRequires: php-pear
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildRequires: %{?scl_prefix}php-devel > 5.3
+BuildRequires: %{?scl_prefix}php-pear
BuildRequires: Judy-devel
Requires(post): %{__pecl}
Requires(postun): %{__pecl}
-Requires: php(zend-abi) = %{php_zend_api}
-Requires: php(api) = %{php_core_api}
+Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api}
+Requires: %{?scl_prefix}php(api) = %{php_core_api}
-Provides: php-%{pecl_name} = %{version}
-Provides: php-%{pecl_name}%{?_isa} = %{version}
-Provides: php-pecl(%{pecl_name}) = %{version}
-Provides: php-pecl(%{pecl_name})%{?_isa} = %{version}
+Provides: %{?scl_prefix}php-%{pecl_name} = %{version}
+Provides: %{?scl_prefix}php-%{pecl_name}%{?_isa} = %{version}
+Provides: %{?scl_prefix}php-pecl(%{pecl_name}) = %{version}
+Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version}
%if 0%{?fedora} < 20
# Filter shared private
@@ -101,6 +103,8 @@ make %{?_smp_mflags}
%install
+rm -rf %{buildroot}
+
make -C NTS install INSTALL_ROOT=%{buildroot}
# install config file
@@ -144,7 +148,12 @@ fi
%endif
+%clean
+rm -rf %{buildroot}
+
+
%files
+%defattr(-,root,root,-)
%doc %{pecl_docdir}/%{pecl_name}
%{pecl_xmldir}/%{name}.xml
%config(noreplace) %{php_inidir}/%{pecl_name}.ini
@@ -158,7 +167,6 @@ fi
%changelog
* Tue Oct 22 2013 Remi Collet <remi@fedoraproject.org> - 1.0.0-3
-- cleanups for review
- install doc in pecl doc_dir
* Fri Oct 11 2013 Remi Collet <rcollet@redhat.com> - 1.0.0-2