[php-ocramius-lazy-map] import from review #1120543
Remi Collet
remi at fedoraproject.org
Mon Jul 21 13:31:02 UTC 2014
commit 731fa1cdc8c180fba40aa2238917e42c5338a885
Author: Remi Collet <remi at fedoraproject.org>
Date: Mon Jul 21 15:28:47 2014 +0200
import from review #1120543
.gitignore | 1 +
php-ocramius-lazy-map.spec | 87 ++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 89 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..ef4a355 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/LazyMap-1.0.0.tar.gz
diff --git a/php-ocramius-lazy-map.spec b/php-ocramius-lazy-map.spec
new file mode 100644
index 0000000..315f2b8
--- /dev/null
+++ b/php-ocramius-lazy-map.spec
@@ -0,0 +1,87 @@
+# spec file for php-ocramius-lazy-map
+#
+# Copyright (c) 2014 Remi Collet
+# License: CC-BY-SA
+# http://creativecommons.org/licenses/by-sa/3.0/
+#
+# Please, preserve the changelog entries
+#
+%global gh_commit 7fe3d347f5e618bcea7d39345ff83f3651d8b752
+%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
+%global gh_owner Ocramius
+%global gh_project LazyMap
+%global with_tests %{?_without_tests:0}%{!?_without_tests:1}
+
+Name: php-ocramius-lazy-map
+Version: 1.0.0
+Release: 1%{?dist}
+Summary: Lazy instantiation logic for a map of objects
+
+Group: Development/Libraries
+License: MIT
+URL: https://github.com/%{gh_owner}/%{gh_project}
+Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}.tar.gz
+
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+BuildArch: noarch
+BuildRequires: php(language) >= 5.3.3
+BuildRequires: php-phpunit-PHPUnit >= 3.7
+BuildRequires: php-theseer-autoload
+
+# From composer.json
+# "php": ">=5.3.3"
+Requires: php(language) >= 5.3.3
+
+Provides: php-composer(ocramius/lazy-map) = %{version}
+
+
+%description
+This small library aims at providing a very simple and efficient map
+of lazy-instantiating objects.
+
+
+%prep
+%setup -q -n %{gh_project}-%{gh_commit}
+
+
+%build
+# Nothing
+
+
+%install
+rm -rf %{buildroot}
+mkdir -p %{buildroot}%{_datadir}/php
+cp -pr src/* %{buildroot}%{_datadir}/php
+
+
+%check
+%if %{with_tests}
+: Generate autoloader
+phpab \
+ --basedir $PWD \
+ --output autoload.php \
+ src tests
+
+: Run test suite
+phpunit \
+ --bootstrap autoload.php \
+ -d date.timezone=UTC
+%else
+: Test suite disabled
+%endif
+
+
+%clean
+rm -rf %{buildroot}
+
+
+%files
+%defattr(-,root,root,-)
+%doc LICENSE
+%doc *.md
+%{_datadir}/php/LazyMap/
+
+
+%changelog
+* Thu Jul 17 2014 Remi Collet <remi at fedoraproject.org> - 1.0.0-1
+- initial package
\ No newline at end of file
diff --git a/sources b/sources
index e69de29..42e156c 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+03f1eb4aae9522acfffad894a9c101e8 LazyMap-1.0.0.tar.gz
More information about the scm-commits
mailing list