summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--php-pecl-rpminfo.spec23
1 files changed, 8 insertions, 15 deletions
diff --git a/php-pecl-rpminfo.spec b/php-pecl-rpminfo.spec
index 187f14f..5a1fd9b 100644
--- a/php-pecl-rpminfo.spec
+++ b/php-pecl-rpminfo.spec
@@ -7,22 +7,15 @@
# Please, preserve the changelog entries
#
-# we don't want -z defs linker flag
-%undefine _strict_symbol_defs_build
+%bcond_without tests
-%bcond_without tests
+%{?scl:%scl_package php-pecl-rpminfo}
-%if 0%{?scl:1}
-%scl_package php-pecl-rpminfo
-%else
-%global _root_prefix %{_prefix}
-%endif
-
-%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}}
-%global pecl_name rpminfo
-%global ini_name 40-%{pecl_name}.ini
-%global sources %{pecl_name}-%{version}
-%global _configure ../%{sources}/configure
+%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}}
+%global pecl_name rpminfo
+%global ini_name 40-%{pecl_name}.ini
+%global sources %{pecl_name}-%{version}
+%global _configure ../%{sources}/configure
Summary: RPM information
Name: %{?scl_prefix}php-pecl-%{pecl_name}
@@ -30,7 +23,7 @@ Version: 0.7.0
Release: 1%{?dist}%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}
License: PHP-3.01
URL: https://pecl.php.net/package/%{pecl_name}
-Source0: https://pecl.php.net/get/%{pecl_name}-%{version}.tgz
+Source0: https://pecl.php.net/get/%{sources}.tgz
BuildRequires: make
BuildRequires: %{?dtsprefix}gcc