public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: jorton <jorton@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/php] private-php86: * Tue Feb 28 2006 Joe Orton <jorton@redhat.com> 5.1.2-5
Date: Fri, 27 Nov 2026 07:23:13 GMT	[thread overview]
Message-ID: <179576419360.1.661195243935198434.rpms-php-28319a7a48db@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/php
            Branch : private-php86
            Commit : 28319a7a48dbbcf41644997ca051c05d1220df42
            Author : jorton <jorton@fedoraproject.org>
            Date   : 2006-02-28T11:13:24+00:00
            Stats  : +30/-1 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/php/c/28319a7a48dbbcf41644997ca051c05d1220df42?branch=private-php86

            Log:
            * Tue Feb 28 2006 Joe Orton <jorton@redhat.com> 5.1.2-5
- provide php-api (#183227)
- add provides for all builtin modules (Tim Jackson, #173804)
- own %{_libdir}/php/pear for PEAR packages (per #176733)
- add obsoletes to allow upgrade from FE4 PDO packages (#181863)

---
diff --git a/php.spec b/php.spec
index 7fe457d..c047f3b 100644
--- a/php.spec
+++ b/php.spec
@@ -1,9 +1,10 @@
 %define contentdir /var/www
+%define apiver 20041225
 
 Summary: The PHP HTML-embedded scripting language. (PHP: Hypertext Preprocessor)
 Name: php
 Version: 5.1.2
-Release: 4.3
+Release: 5
 License: The PHP License
 Group: Development/Languages
 URL: http://www.php.net/
@@ -42,6 +43,14 @@ Obsoletes: php-dbg, mod_php, php3, phpfi, stronghold-php, php-openssl
 # Enforce Apache module ABI compatibility
 Requires: httpd-mmn = %(cat %{_includedir}/httpd/.mmn || echo missing-httpd-devel)
 Requires: file >= 4.0, php-pear
+Provides: php-api = %{apiver}
+# Provides for all builtin modules:
+Provides: php-bz2, php-calendar, php-ctype, php-curl, php-date, php-exif
+Provides: php-ftp, php-gettext, php-gmp, php-hash, php-iconv, php-libxml
+Provides: php-mime_magic, php-openssl, php-pcntl, php-pcre, php-pspell
+Provides: php-reflection, php-session, php-shmop, php-simplexml, php-sockets
+Provides: php-spl, php-sysvsem, php-sysvshm, php-sysvmsg, php-tokenizer
+Provides: php-wddx, php-zlib
 
 %description
 PHP is an HTML-embedded scripting language. PHP attempts to make it
@@ -57,6 +66,7 @@ the embedded PHP language in Web pages.
 Group: Development/Libraries
 Summary: Files needed for building PHP extensions.
 Requires: php = %{version}-%{release}, autoconf, automake
+Obsoletes: php-pecl-pdo-devel
 
 %description devel
 The php-devel package contains the files needed for building PHP
@@ -98,6 +108,7 @@ need to install this package in addition to the php package.
 Summary: A database access abstraction module for PHP applications
 Group: Development/Languages
 Requires: php = %{version}-%{release}
+Obsoletes: php-pecl-pdo-sqlite, php-pecl-pdo
 
 %description pdo
 The php-pdo package contains a dynamic shared object that will add
@@ -280,6 +291,14 @@ rm -f ext/standard/tests/file/bug21131.phpt
 rm -f ext/standard/tests/file/bug22414.phpt \
       ext/iconv/tests/bug16069.phpt
 
+# Safety check for API version change.
+vapi=`sed -n '/#define PHP_API_VERSION/{s/.* //;p}' main/php.h`
+if test "x${vapi}" != "x%{apiver}"; then
+   : Error: Upstream API version is now ${vapi}, expecting %{apiver}.
+   : Update the apiver macro and rebuild.
+   exit 1
+fi
+
 %build
 # Force use of system libtool:
 libtoolize --force --copy
@@ -440,6 +459,9 @@ install -m 644 $RPM_SOURCE_DIR/php.ini $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
 install -m 755 -d $RPM_BUILD_ROOT%{contentdir}/icons
 install -m 644    *.gif $RPM_BUILD_ROOT%{contentdir}/icons/
 
+# For PEAR packaging:
+install -m 755 -d $RPM_BUILD_ROOT%{_libdir}/php/pear
+
 # Use correct libdir
 sed -i -e 's|%{_prefix}/lib|%{_libdir}|' $RPM_BUILD_ROOT%{_sysconfdir}/php.ini
 
@@ -506,6 +528,7 @@ rm files.*
 %{_mandir}/man?/*
 %dir %{_libdir}/php
 %dir %{_libdir}/php/modules
+%dir %{_libdir}/php/pear
 %dir %{_localstatedir}/lib/php
 %attr(0770,root,apache) %dir %{_localstatedir}/lib/php/session
 %{_libdir}/httpd/modules/libphp5.so
@@ -537,6 +560,12 @@ rm files.*
 %files pdo -f files.pdo
 
 %changelog
+* Tue Feb 28 2006 Joe Orton <jorton@redhat.com> 5.1.2-5
+- provide php-api (#183227)
+- add provides for all builtin modules (Tim Jackson, #173804)
+- own %%{_libdir}/php/pear for PEAR packages (per #176733)
+- add obsoletes to allow upgrade from FE4 PDO packages (#181863)
+
 * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 5.1.2-4.3
 - bump again for double-long bug on ppc(64)
 

                 reply	other threads:[~2026-11-27  7:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179576419360.1.661195243935198434.rpms-php-28319a7a48db@fedoraproject.org \
    --to=jorton@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox