[packages/php-diff] new, version 1.0.2

glen glen at pld-linux.org
Wed Jan 27 16:08:36 CET 2016


commit 0924c73bd58fe0dc3540ed41b90b8db5f258e613
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Jan 27 17:08:13 2016 +0200

    new, version 1.0.2

 php-diff.spec | 42 ++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 42 insertions(+)
---
diff --git a/php-diff.spec b/php-diff.spec
new file mode 100644
index 0000000..8087d64
--- /dev/null
+++ b/php-diff.spec
@@ -0,0 +1,42 @@
+%define		pkgname	diff
+%define		php_min_version 5.2.0
+Summary:	PHP Diff Class
+Name:		php-%{pkgname}
+Version:	1.0.2
+Release:	1
+License:	BSD
+Group:		Development/Languages/PHP
+Source0:	https://github.com/phpspec/php-diff/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	09f18f5cf843a63b359d8ca7186e8f56
+URL:		https://github.com/phpspec/php-diff
+BuildRequires:	rpmbuild(macros) >= 1.461
+Requires:	php(core) >= %{php_min_version}
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+A comprehensive library for generating differences between two strings
+in multiple formats (unified, side by side HTML etc).
+
+Based on the difflib implementation in Python
+
+%prep
+%setup -q
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{php_data_dir}
+cp -a lib/* $RPM_BUILD_ROOT%{php_data_dir}
+
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+cp -a example/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README
+%{php_data_dir}/Diff.php
+%{php_data_dir}/Diff
+%{_examplesdir}/%{name}-%{version}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-diff.git/commitdiff/0924c73bd58fe0dc3540ed41b90b8db5f258e613



More information about the pld-cvs-commit mailing list