[packages/php-maxmind-db-reader] new, vesion 0.2.0

glen glen at pld-linux.org
Sun Dec 22 18:11:48 CET 2013


commit 47aee8304a701459d6c9c3b8b03b47f3dbde3de3
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Dec 22 19:11:28 2013 +0200

    new, vesion 0.2.0

 php-maxmind-db-reader.spec | 45 +++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 45 insertions(+)
---
diff --git a/php-maxmind-db-reader.spec b/php-maxmind-db-reader.spec
new file mode 100644
index 0000000..013ea49
--- /dev/null
+++ b/php-maxmind-db-reader.spec
@@ -0,0 +1,45 @@
+# TODO
+# - build ext
+%define		pkgname	reader
+%define		php_min_version 5.3.1
+Summary:	MaxMind DB Reader API
+Name:		php-maxmind-db-%{pkgname}
+Version:	0.2.0
+Release:	1
+License:	LGPL v2.1
+Group:		Development/Languages/PHP
+Source0:	https://github.com/maxmind/MaxMind-DB-Reader-php/archive/v%{version}/%{pkgname}-%{version}.tar.gz
+# Source0-md5:	a5206ff1abe4c4b49c428b964fda92d1
+URL:		https://github.com/maxmind/MaxMind-DB-Reader-php
+Requires:	php(bcmath)
+Requires:	php(core) >= %{php_min_version}
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+PHP Reader for the MaxMind DB Database Format.
+
+This is the pure PHP API for reading MaxMind DB files. MaxMind DB is a
+binary file format that stores data indexed by IP address subnets
+(IPv4 or IPv6).
+
+%prep
+%setup -qn MaxMind-DB-Reader-php-%{version}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{php_data_dir},%{_examplesdir}/%{name}-%{version}}
+cp -a src/* $RPM_BUILD_ROOT%{php_data_dir}
+cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md CHANGELOG.md
+%dir %{php_data_dir}/MaxMind
+%dir %{php_data_dir}/MaxMind/Db
+%{php_data_dir}/MaxMind/Db/Reader.php
+%{php_data_dir}/MaxMind/Db/Reader
+%{_examplesdir}/%{name}-%{version}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-maxmind-db-reader.git/commitdiff/47aee8304a701459d6c9c3b8b03b47f3dbde3de3



More information about the pld-cvs-commit mailing list