From 738ef7888476b6c38e28e3496460172ad40d5dd3 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Tue, 26 Sep 2023 10:40:04 +0200 Subject: cleanup --- php-pecl-rpminfo.spec | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) (limited to 'php-pecl-rpminfo.spec') 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 -- cgit