add autoloader for each package
This commit is contained in:
parent
3023848aab
commit
9468216efe
@ -27,7 +27,7 @@
|
||||
Summary: PHP Extension and Application Repository framework
|
||||
Name: php-pear
|
||||
Version: 1.10.5
|
||||
Release: 3%{?dist}
|
||||
Release: 4%{?dist}
|
||||
Epoch: 1
|
||||
# PEAR, PEAR_Manpages, Archive_Tar, XML_Util, Console_Getopt are BSD
|
||||
# Structures_Graph is LGPLv3+
|
||||
@ -58,6 +58,7 @@ BuildRequires: php-devel
|
||||
%if %{with_tests}
|
||||
BuildRequires: %{_bindir}/phpunit
|
||||
%endif
|
||||
BuildRequires: php-fedora-autoloader-devel
|
||||
|
||||
Provides: php-pear(Console_Getopt) = %{getoptver}
|
||||
Provides: php-pear(Archive_Tar) = %{arctarver}
|
||||
@ -67,10 +68,15 @@ Provides: php-pear(XML_Util) = %{xmlutil}
|
||||
Provides: php-pear(PEAR_Manpages) = %{manpages}
|
||||
|
||||
Provides: php-composer(pear/console_getopt) = %{getoptver}
|
||||
Provides: php-autoloader(pear/console_getopt) = %{getoptver}
|
||||
Provides: php-composer(pear/archive_tar) = %{arctarver}
|
||||
Provides: php-autoloader(pear/archive_tar) = %{arctarver}
|
||||
Provides: php-composer(pear/pear-core-minimal) = %{version}
|
||||
Provides: php-autoloader(pear/pear-core-minimal) = %{version}
|
||||
Provides: php-composer(pear/structures_graph) = %{structver}
|
||||
Provides: php-autoloader(pear/structures_graph) = %{structver}
|
||||
Provides: php-composer(pear/xml_util) = %{xmlutil}
|
||||
Provides: php-autoloader(pear/xml_util) = %{xmlutil}
|
||||
|
||||
# Archive_Tar requires 5.2
|
||||
# XML_Util, Structures_Graph require 5.3
|
||||
@ -94,6 +100,7 @@ Requires: php-bz2
|
||||
# optional: overload and xdebug
|
||||
# for /var/www/html ownership
|
||||
Requires: httpd-filesystem
|
||||
Requires: php-composer(fedora/autoloader)
|
||||
|
||||
|
||||
%description
|
||||
@ -126,7 +133,29 @@ sed -e 's:@BINDIR@:%{_bindir}:' \
|
||||
|
||||
|
||||
%build
|
||||
# This is an empty build section.
|
||||
# Create per package autoloader
|
||||
phpab --template fedora \
|
||||
--output PEAR/autoload.php\
|
||||
PEAR OS System.php PEAR.php
|
||||
|
||||
phpab --template fedora \
|
||||
--output Structures/Graph/autoload.php \
|
||||
Structures
|
||||
|
||||
mkdir Archive/Tar
|
||||
phpab --template fedora \
|
||||
--output Archive/Tar/autoload.php \
|
||||
Archive
|
||||
|
||||
mkdir Console/Getopt
|
||||
phpab --template fedora \
|
||||
--output Console/Getopt/autoload.php \
|
||||
Console
|
||||
|
||||
mkdir XML/Util
|
||||
phpab --template fedora \
|
||||
--output XML/Util/autoload.php \
|
||||
XML
|
||||
|
||||
|
||||
%install
|
||||
@ -192,6 +221,11 @@ rm -rf %{buildroot}/.depdb* %{buildroot}/.lock %{buildroot}/.channels %{buildroo
|
||||
# Need for re-registrying XML_Util
|
||||
install -m 644 *.xml %{buildroot}%{_localstatedir}/lib/pear/pkgxml
|
||||
|
||||
# install autoloaders
|
||||
for i in PEAR/autoload.php Structures/Graph/autoload.php Archive/Tar/autoload.php Console/Getopt/autoload.php XML/Util/autoload.php
|
||||
do install -Dpm 644 $i %{buildroot}%{peardir}/$i
|
||||
done
|
||||
|
||||
|
||||
%check
|
||||
# Check that no bogus paths are left in the configuration, or in
|
||||
@ -290,6 +324,9 @@ fi
|
||||
|
||||
|
||||
%changelog
|
||||
* Tue Dec 19 2017 Remi Collet <remi@remirepo.net> - 1:1.10.5-4
|
||||
- add autoloader for each package
|
||||
|
||||
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.10.5-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user