summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2017-02-05 18:54:36 +0100
committerRemi Collet <fedora@famillecollet.com>2017-02-05 18:54:36 +0100
commiteec6ecd2d3edd2cf676c4eaf3226213a6f98fd97 (patch)
tree24483d34f7d7c54b98b12dd9b3670ccfbbe3d3ad
parent59bb5b924dff590e669f4a96830c16e795de31f9 (diff)
php-pecl-inotify: use package2.xml
-rw-r--r--php-pecl-inotify-php7.spec16
1 files changed, 8 insertions, 8 deletions
diff --git a/php-pecl-inotify-php7.spec b/php-pecl-inotify-php7.spec
index 8806d34..51420ac 100644
--- a/php-pecl-inotify-php7.spec
+++ b/php-pecl-inotify-php7.spec
@@ -15,13 +15,12 @@
Summary: Inotify
Name: %{?scl_prefix}php-pecl-%{pecl_name}
Version: 2.0.0
-Release: 4%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Release: 5%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
License: PHP
Group: Development/Languages
URL: http://pecl.php.net/package/%{pecl_name}
Source0: http://pecl.php.net/get/%{pecl_name}-%{version}.tgz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: %{?scl_prefix}php-devel > 7
BuildRequires: %{?scl_prefix}php-pear
@@ -70,6 +69,7 @@ Package built for PHP %(%{__php} -r 'echo PHP_MAJOR_VERSION.".".PHP_MINOR_VERSIO
%prep
%setup -q -c
mv %{pecl_name}-%{version} NTS
+mv package2.xml package.xml
sed -e '/inotify.php/s/role="php"/role="doc"/' \
-e '/tail.php/s/role="php"/role="doc"/' \
@@ -100,6 +100,8 @@ EOF
%build
+%{?dtsenable}
+
cd NTS
%{_bindir}/phpize
%configure \
@@ -120,7 +122,7 @@ make %{?_smp_mflags}
%install
-rm -rf %{buildroot}
+%{?dtsenable}
make -C NTS install INSTALL_ROOT=%{buildroot}
@@ -194,12 +196,7 @@ REPORT_EXIT_STATUS=1 \
%endif
-%clean
-rm -rf %{buildroot}
-
-
%files
-%defattr(-,root,root,-)
%{?_licensedir:%license NTS/LICENSE}
%doc %{pecl_docdir}/%{pecl_name}
%{pecl_xmldir}/%{name}.xml
@@ -214,6 +211,9 @@ rm -rf %{buildroot}
%changelog
+* Sun Feb 5 2017 Remi Collet <remi@fedoraproject.org> - 2.0.0-4
+- use package2.xml for correct registration
+
* Thu Dec 1 2016 Remi Collet <remi@fedoraproject.org> - 2.0.0-4
- rebuild with PHP 7.1.0 GA