[php-Faker] Initial import (#885515)
Shawn Iwinski
siwinski at fedoraproject.org
Tue Dec 18 22:27:05 UTC 2012
commit 4bff7a17effd8b313d5c8388efc670aabcde346d
Author: Shawn Iwinski <shawn.iwinski at gmail.com>
Date: Tue Dec 18 17:15:00 2012 -0500
Initial import (#885515)
.gitignore | 1 +
php-Faker.spec | 72 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 74 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..c163e8a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/v1.1.0.tar.gz
diff --git a/php-Faker.spec b/php-Faker.spec
new file mode 100644
index 0000000..8ca3628
--- /dev/null
+++ b/php-Faker.spec
@@ -0,0 +1,72 @@
+%global libname Faker
+%global php_min_ver 5.3.3
+
+Name: php-%{libname}
+Version: 1.1.0
+Release: 1%{?dist}
+Summary: A PHP library that generates fake data
+
+Group: Development/Libraries
+License: MIT
+URL: https://github.com/fzaninotto/%{libname}
+Source0: %{url}/archive/v%{version}.tar.gz
+
+BuildArch: noarch
+# Test build requires
+BuildRequires: php-common >= %{php_min_ver}
+BuildRequires: php-pear(pear.phpunit.de/PHPUnit)
+# Test build requires: phpci
+Requires: php-date
+Requires: php-hash
+Requires: php-pcre
+Requires: php-reflection
+Requires: php-spl
+
+Requires: php-common >= %{php_min_ver}
+# phpci requires
+Requires: php-date
+Requires: php-hash
+Requires: php-pcre
+Requires: php-reflection
+Requires: php-spl
+
+%description
+Faker is a PHP library that generates fake data for you. Whether you need
+to bootstrap your database, create good-looking XML documents, fill-in your
+persistence to stress test it, or anonymize data taken from a production
+service, Faker is for you.
+
+Faker is heavily inspired by Perl's Data::Faker
+(http://search.cpan.org/~jasonk/Data-Faker/), and by Ruby's Faker
+(http://faker.rubyforge.org/).
+
+
+%prep
+%setup -q -n %{libname}-%{version}
+
+# Remove executable bit from all PHP files
+# https://github.com/fzaninotto/Faker/pull/84
+find . -name '*.php' -executable | xargs chmod a-x
+
+
+%build
+# Empty build section, nothing to build
+
+
+%install
+mkdir -p -m 755 %{buildroot}%{_datadir}/php
+cp -rp src/%{libname} %{buildroot}%{_datadir}/php/
+
+
+%check
+%{_bindir}/phpunit -d date.timezone="UTC" .
+
+
+%files
+%doc LICENSE CHANGELOG readme.md composer.json
+%{_datadir}/php/%{libname}
+
+
+%changelog
+* Sun Dec 9 2012 Shawn Iwinski <shawn.iwinski at gmail.com> 1.1.0-1
+- Initial package
diff --git a/sources b/sources
index e69de29..3d54115 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+0b2a2d70321ed08e4963d60ec84dc5cb v1.1.0.tar.gz
More information about the scm-commits
mailing list