dropped uuid-php on rawhide
This commit is contained in:
parent
ac26b37c8e
commit
051bd33125
72
uuid.spec
72
uuid.spec
@ -1,22 +1,12 @@
|
||||
%define php_extdir %(php-config --extension-dir 2>/dev/null || echo %{_libdir}/php4)
|
||||
%global php_apiver %((echo 0; php -i 2>/dev/null | sed -n 's/^PHP API => //p') | tail -1)
|
||||
|
||||
%if 0%{?fedora} < 20 && 0%{?rhel} < 7
|
||||
# Private libraries are not be exposed globally by RPM
|
||||
%{?filter_provides_in: %filter_provides_in %{php_extdir}/.*\.so$}
|
||||
%{?filter_setup}
|
||||
%endif
|
||||
|
||||
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}%{php_extdir}/.*\\.so$
|
||||
%if "%{php_version}" < "5.6"
|
||||
%global ini_name %{name}.ini
|
||||
%else
|
||||
%global ini_name 40-%{name}.ini
|
||||
%endif
|
||||
|
||||
Name: uuid
|
||||
Version: 1.6.2
|
||||
Release: 33%{?dist}
|
||||
Release: 34%{?dist}
|
||||
Summary: Universally Unique Identifier library
|
||||
License: MIT
|
||||
Group: System Environment/Libraries
|
||||
@ -46,9 +36,9 @@ of DCE 1.1, ISO/IEC 11578:1996 and RFC 4122 compliant Universally
|
||||
Unique Identifier (UUID). It supports DCE 1.1 variant UUIDs of version
|
||||
1 (time and node based), version 3 (name based, MD5), version 4
|
||||
(random number based) and version 5 (name based, SHA-1). Additional
|
||||
API bindings are provided for the languages ISO-C++:1998, Perl:5 and
|
||||
PHP:4/5. Optional backward compatibility exists for the ISO-C DCE-1.1
|
||||
and Perl Data::UUID APIs.
|
||||
API bindings are provided for the languages ISO-C++:1998 and Perl:5
|
||||
Optional backward compatibility exists for the ISO-C DCE-1.1 and Perl
|
||||
Data::UUID APIs.
|
||||
|
||||
%package devel
|
||||
Summary: Development support for Universally Unique Identifier library
|
||||
@ -91,21 +81,6 @@ Requires: perl(Data::UUID)
|
||||
%description perl
|
||||
Perl OSSP uuid module.
|
||||
|
||||
%package php
|
||||
Summary: PHP support for Universally Unique Identifier library
|
||||
Group: Development/Libraries
|
||||
BuildRequires: php-devel
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
%if 0%{?php_zend_api:1}
|
||||
Requires: php(zend-abi) = %{php_zend_api}
|
||||
Requires: php(api) = %{php_core_api}
|
||||
%else
|
||||
Requires: php-api = %{php_apiver}
|
||||
%endif
|
||||
|
||||
%description php
|
||||
PHP OSSP uuid module.
|
||||
|
||||
%package dce
|
||||
Summary: DCE support for Universally Unique Identifier library
|
||||
Group: Development/Libraries
|
||||
@ -159,15 +134,6 @@ pushd perl
|
||||
make %{?_smp_mflags}
|
||||
popd
|
||||
|
||||
# Build the PHP module.
|
||||
pushd php
|
||||
export PHP_RPATH=no
|
||||
phpize
|
||||
CFLAGS="$RPM_OPT_FLAGS -I.. -L.. -L../.libs"
|
||||
%configure --enable-uuid
|
||||
make CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" %{?_smp_mflags}
|
||||
popd
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
@ -186,21 +152,6 @@ find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
|
||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||
popd
|
||||
|
||||
# Install the PHP module.
|
||||
pushd php
|
||||
make install INSTALL_ROOT=$RPM_BUILD_ROOT
|
||||
rm -f $RPM_BUILD_ROOT%{php_extdir}/*.a
|
||||
popd
|
||||
|
||||
# Put the php config bit into place
|
||||
%{__mkdir_p} %{buildroot}%{_sysconfdir}/php.d
|
||||
%{__cat} << __EOF__ > %{buildroot}%{_sysconfdir}/php.d/%{ini_name}
|
||||
; Enable %{name} extension module
|
||||
extension=%{name}.so
|
||||
__EOF__
|
||||
|
||||
|
||||
|
||||
%check
|
||||
make check
|
||||
|
||||
@ -211,12 +162,6 @@ perl -MData::UUID -e 'print "Testing compatibility of Data::UUID version $Data::
|
||||
LD_LIBRARY_PATH=../.libs make test TEST_FILES=uuid_compat.ts
|
||||
popd
|
||||
|
||||
pushd php
|
||||
LD_LIBRARY_PATH=../.libs make test
|
||||
popd
|
||||
# Simple extension load test (no test run in make test)
|
||||
LD_LIBRARY_PATH=.libs php -n -d extension_dir=php/modules -d extension=uuid.so -m | grep uuid
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
@ -265,11 +210,6 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%{perl_vendorarch}/OSSP*
|
||||
%{_mandir}/man3/OSSP::uuid.3*
|
||||
|
||||
%files php
|
||||
%defattr(-,root,root,-)
|
||||
%config(noreplace) %{_sysconfdir}/php.d/%{ini_name}
|
||||
%{php_extdir}/%{name}.so
|
||||
|
||||
%files dce
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/libossp-uuid_dce.so.*
|
||||
@ -280,6 +220,10 @@ rm -rf $RPM_BUILD_ROOT
|
||||
%{_libdir}/libossp-uuid_dce.so
|
||||
|
||||
%changelog
|
||||
* Thu Sep 1 2016 Matias Kreder <mkreder@gmail.com> - 1.6.2-34
|
||||
- Removed uuid-php subpackage since php(api) is no longer provided on
|
||||
- PHP 7 and there is a replacement (pecl/uuid extension)
|
||||
|
||||
* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.6.2-33
|
||||
- Perl 5.24 rebuild
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user