summaryrefslogtreecommitdiffstats
path: root/php-pecl-krb5.spec
diff options
context:
space:
mode:
Diffstat (limited to 'php-pecl-krb5.spec')
-rw-r--r--php-pecl-krb5.spec58
1 files changed, 32 insertions, 26 deletions
diff --git a/php-pecl-krb5.spec b/php-pecl-krb5.spec
index 776d846..386b96f 100644
--- a/php-pecl-krb5.spec
+++ b/php-pecl-krb5.spec
@@ -3,7 +3,7 @@
#
# Fedora spec file for php-pecl-krb5
#
-# SPDX-FileCopyrightText: Copyright 2014-2025 Remi Collet
+# SPDX-FileCopyrightText: Copyright 2014-2026 Remi Collet
# SPDX-License-Identifier: CECILL-2.1
# http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
#
@@ -17,26 +17,34 @@
%global _root_bindir %{_bindir}
%endif
-%global pecl_name krb5
-%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}}
+%global pecl_name krb5
+%global with_zts 0%{!?_without_zts:%{?__ztsphp:1}}
%global ini_name 40-%{pecl_name}.ini
-%global sources %{pecl_name}-%{version}
+%global sources %{gh_proj}-%{version}
%global _configure ../%{sources}/configure
-Summary: Kerberos authentification extension
+# Github forge
+%global gh_vend php
+%global gh_proj pecl-authentication-krb5
+%global forgeurl https://github.com/%{gh_vend}/%{gh_proj}
+%global tag v%{version}
+# for EL-8 to avoid TAG usage
+%global archivename %{gh_proj}-%{version}
+
Name: %{?scl_prefix}php-pecl-%{pecl_name}
-Version: 1.2.4
-Release: 2%{?dist}%{!?scl:%{!?nophptag:%(%{__php} -r 'echo ".".PHP_MAJOR_VERSION.".".PHP_MINOR_VERSION;')}}
+Summary: Kerberos authentification extension
License: MIT
-URL: https://pecl.php.net/package/%{pecl_name}
-Source0: https://pecl.php.net/get/%{pecl_name}-%{version}.tgz
+Version: 1.2.4
+Release: 4%{?dist}
+%forgemeta
+URL: %{forgeurl}
+Source0: %{forgesource}
BuildRequires: make
BuildRequires: %{?dtsprefix}gcc
BuildRequires: krb5-devel >= 1.8
BuildRequires: pkgconfig(com_err)
BuildRequires: %{?scl_prefix}php-devel >= 7.0
-BuildRequires: %{?scl_prefix}php-pear
%if 0%{?fedora} >= 40
# TODO need investigation
BuildRequires: gmp
@@ -45,10 +53,13 @@ BuildRequires: gmp
Requires: %{?scl_prefix}php(zend-abi) = %{php_zend_api}
Requires: %{?scl_prefix}php(api) = %{php_core_api}
+# Extension
Provides: %{?scl_prefix}php-%{pecl_name} = %{version}
Provides: %{?scl_prefix}php-%{pecl_name}%{?_isa} = %{version}
+# PECL
Provides: %{?scl_prefix}php-pecl(%{pecl_name}) = %{version}
Provides: %{?scl_prefix}php-pecl(%{pecl_name})%{?_isa} = %{version}
+# No PIE for now
%description
@@ -75,8 +86,6 @@ These are the files needed to compile programs using the Kerberos extension.
%prep
%setup -q -c
-sed -e '/LICENSE/s/role="doc"/role="src"/' -i package.xml
-
cd %{sources}
# Sanity check, really often broken
extver=$(sed -n '/#define PHP_KRB5_VERSION/{s/.* "//;s/".*$//;p}' php_krb5.h)
@@ -134,23 +143,12 @@ peclbuild %{__ztsphpconfig}
# install config file
install -D -m 644 %{ini_name} %{buildroot}%{php_inidir}/%{ini_name}
-# Install XML package description
-install -D -m 644 package.xml %{buildroot}%{pecl_xmldir}/%{name}.xml
-
%if %{with_zts}
%make_install -C ZTS
install -D -m 644 %{ini_name} %{buildroot}%{php_ztsinidir}/%{ini_name}
%endif
-# Test & Documentation
-for i in $(grep 'role="test"' package.xml | sed -e 's/^.*name="//;s/".*$//')
-do install -Dpm 644 %{sources}/$i %{buildroot}%{pecl_testdir}/%{pecl_name}/$i
-done
-for i in $(grep 'role="doc"' package.xml | sed -e 's/^.*name="//;s/".*$//')
-do install -Dpm 644 %{sources}/$i %{buildroot}%{pecl_docdir}/%{pecl_name}/$i
-done
-
%check
: Minimal load test for NTS extension
@@ -168,8 +166,9 @@ done
%files
%license %{sources}/LICENSE
-%doc %{pecl_docdir}/%{pecl_name}
-%{pecl_xmldir}/%{name}.xml
+%doc %{sources}/CREDITS
+%doc %{sources}/README
+%doc %{sources}/examples
%config(noreplace) %{php_inidir}/%{ini_name}
%{php_extdir}/%{pecl_name}.so
@@ -181,7 +180,7 @@ done
%files devel
-%doc %{pecl_testdir}/%{pecl_name}
+%doc %{sources}/tests
%{php_incldir}/ext/%{pecl_name}
@@ -191,6 +190,13 @@ done
%changelog
+* Thu Apr 2 2026 Remi Collet <remi@remirepo.net> - 1.2.4-4
+- drop pear/pecl dependency
+- sources from github
+
+* Thu Sep 25 2025 Remi Collet <remi@remirepo.net> - 1.2.4-3
+- rebuild for PHP 8.5.0RC1
+
* Wed Jul 30 2025 Remi Collet <remi@remirepo.net> - 1.2.4-2
- rebuild for 8.5.0alpha3