[packages/php-pimple] new, version 3.0.0

glen glen at pld-linux.org
Fri May 8 19:20:39 CEST 2015


commit 21eada5f9fd81edfbf1a027c9238d530e100d6fe
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Fri May 8 20:19:49 2015 +0300

    new, version 3.0.0
    
    based on fedora package php-Pimple 66e72fa

 php-pimple.spec | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)
---
diff --git a/php-pimple.spec b/php-pimple.spec
new file mode 100644
index 0000000..57606ff
--- /dev/null
+++ b/php-pimple.spec
@@ -0,0 +1,55 @@
+#
+# Conditional build:
+%bcond_without	tests		# build without tests
+
+%define		pkgname	pimple
+%define		php_min_version 5.3.0
+Summary:	A simple dependency injection container for PHP
+Name:		php-%{pkgname}
+Version:	3.0.0
+Release:	1
+License:	MIT
+Group:		Development/Languages/PHP
+Source0:	https://github.com/silexphp/Pimple/archive/v%{version}/%{pkgname}-%{version}.tar.gz
+# Source0-md5:	09c5470d679cf31187289aa89d039926
+URL:		http://pimple.sensiolabs.org/
+%if %{with tests}
+BuildRequires:	phpab
+BuildRequires:	phpunit
+%endif
+Requires:	php(core) >= %{php_min_version}
+Requires:	php(spl)
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		namespace	Pimple
+
+%description
+Pimple is a small dependency injection container for PHP that consists
+of just one file and one class.
+
+%prep
+%setup -qn Pimple-%{version}
+
+%build
+%if %{with tests}
+# roll our own loader to run tests
+# (can't seem to get it to load the fixtures with --include-path any more)
+phpab --output bootstrap.php --exclude '*Test.php' --basedir . src
+phpunit --bootstrap bootstrap.php
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{php_data_dir}
+cp -a src/%{namespace} $RPM_BUILD_ROOT%{php_data_dir}
+# clean out tests
+rm -r $RPM_BUILD_ROOT%{php_data_dir}/%{namespace}/Tests
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.rst LICENSE
+%{php_data_dir}/%{namespace}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/php-pimple.git/commitdiff/21eada5f9fd81edfbf1a027c9238d530e100d6fe



More information about the pld-cvs-commit mailing list