[packages/composer-php] new, version 1.0.0-alpha6
glen
glen at pld-linux.org
Fri Dec 7 21:42:47 CET 2012
commit fc4ae5b59ab350f070b0593c5195e200b0545409
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Fri Dec 7 22:42:21 2012 +0200
new, version 1.0.0-alpha6
composer-php.spec | 40 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 40 insertions(+)
---
diff --git a/composer-php.spec b/composer-php.spec
new file mode 100644
index 0000000..ded426b
--- /dev/null
+++ b/composer-php.spec
@@ -0,0 +1,40 @@
+%define pkgname composer
+%define php_min_version 5.3.4
+%define subver alpha6
+%define rel 0.1
+%include /usr/lib/rpm/macros.php
+Summary: Dependency Manager for PHP
+Name: %{pkgname}-php
+Version: 1.0.0
+Release: 0.%{subver}.%{rel}
+License: MIT
+Group: Development/Languages/PHP
+Source0: http://getcomposer.org/download/1.0.0-alpha6/%{pkgname}.phar
+# Source0-md5: f9b1dbd4ad0e3707bfe216690b210a7e
+URL: http://www.getcomposer.org/
+BuildRequires: rpm-php-pearprov >= 4.4.2-11
+BuildRequires: rpmbuild(macros) >= 1.461
+Requires: php(core) >= %{php_min_version}
+Requires: php(phar)
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Composer is a tool for dependency management in PHP. It allows you to
+declare the dependent libraries your project needs and it will install
+them in your project for you.
+
+%prep
+%setup -qcT
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_bindir}
+cp -p %{SOURCE0} $RPM_BUILD_ROOT%{_bindir}/%{pkgname}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/composer
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/composer-php.git/commitdiff/fc4ae5b59ab350f070b0593c5195e200b0545409
More information about the pld-cvs-commit
mailing list