summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2017-01-29 13:51:46 +0100
committerRemi Collet <fedora@famillecollet.com>2017-01-29 13:51:46 +0100
commitd178add59d52bb5e5751c09cb5ddde54143ff171 (patch)
tree521ef4ffeda25945bc40b6ed6519356419fe3197
parent5dd80d107e1d7b8ddd8e3c2d698911c1a3c2313c (diff)
php-alcaeus-mongo-php-adapter: 1.0.9
-rw-r--r--php-alcaeus-mongo-php-adapter.spec21
1 files changed, 14 insertions, 7 deletions
diff --git a/php-alcaeus-mongo-php-adapter.spec b/php-alcaeus-mongo-php-adapter.spec
index c106669..e6aba3f 100644
--- a/php-alcaeus-mongo-php-adapter.spec
+++ b/php-alcaeus-mongo-php-adapter.spec
@@ -6,7 +6,7 @@
#
# Please, preserve the changelog entries
#
-%global gh_commit 592ecd7754e1263b5c120fd186bc95af921233ec
+%global gh_commit fea3f8333c7b22dde97d7dbe8a82528fc5c27992
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner alcaeus
%global gh_project mongo-php-adapter
@@ -21,7 +21,7 @@
Name: php-%{gh_owner}-%{gh_project}
-Version: 1.0.8
+Version: 1.0.9
Release: 1%{?dist}
Summary: Mongo PHP Adapter
@@ -32,7 +32,7 @@ Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
-BuildRequires: php-composer(theseer/autoload)
+BuildRequires: php-fedora-autoloader-devel
BuildRequires: php(language) >= 5.5
%if %{with_tests}
BuildRequires: php-hash
@@ -59,6 +59,8 @@ Requires: php-date
Requires: php-mbstring
Requires: php-pcre
Requires: php-spl
+# Autoloader
+Requires: php-composer(fedora/autoloader)
# Composer
Provides: php-composer(%{gh_owner}/%{gh_project}) = %{version}
@@ -85,15 +87,16 @@ mv lib/Mongo lib/%{ns_vendor}/Mongo
%build
: Create a classmap autoloader
%{_bindir}/phpab \
+ --template fedora \
--output lib/%{ns_vendor}/MongoDbAdapter/autoload.php \
lib/%{ns_vendor}
cat << 'EOF' | tee -a lib/%{ns_vendor}/MongoDbAdapter/autoload.php
-require_once dirname(__DIR__) . '/Mongo/functions.php';
-
-// Dependencies
-require_once "%{_datadir}/php/MongoDB/autoload.php";
+\Fedora\Autoloader\Dependencies::required(array(
+ dirname(__DIR__) . '/Mongo/functions.php',
+ '%{_datadir}/php/MongoDB/autoload.php',
+));
EOF
@@ -171,6 +174,10 @@ rm -rf %{buildroot}
%changelog
+* Sun Jan 29 2017 Remi Collet <remi@fedoraproject.org> - 1.0.9-1
+- update to 1.0.9
+- switch to fedora autoloader
+
* Thu Jan 12 2017 Remi Collet <remi@fedoraproject.org> - 1.0.8-1
- update to 1.0.8