summaryrefslogtreecommitdiffstats
path: root/php-pecl-rpminfo.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2023-09-26 10:40:04 +0200
committerRemi Collet <remi@php.net>2023-09-26 10:40:04 +0200
commit738ef7888476b6c38e28e3496460172ad40d5dd3 (patch)
tree91e6ab5f3cf313139e3d1ae5797100bc8ce85999 /php-pecl-rpminfo.spec
parent47b0270c4470ba6e1c2131ea209e3edfd5947c4b (diff)
cleanup
Diffstat (limited to 'php-pecl-rpminfo.spec')
-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