[packages/satis] - new

glen glen at pld-linux.org
Sat Dec 8 04:14:28 CET 2012


commit 397b7f50724745c7ba2fb5989a0876cfeb32df9e
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sat Dec 8 05:14:01 2012 +0200

    - new

 satis.spec | 46 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 46 insertions(+)
---
diff --git a/satis.spec b/satis.spec
new file mode 100644
index 0000000..9d75b7b
--- /dev/null
+++ b/satis.spec
@@ -0,0 +1,46 @@
+%define		php_min_version 5.3.4
+%include	/usr/lib/rpm/macros.php
+Summary:	Package Repository Generator
+Name:		satis
+Version:	0.1
+Release:	0.1
+License:	MIT
+Group:		Development/Languages/PHP
+Source0:	https://github.com/composer/satis/archive/master.tar.gz
+# Source0-md5:	a149bce7151e35dc23acc53522eefea5
+URL:		https://github.com/composer/satis
+BuildRequires:	composer-php
+BuildRequires:	rpm-php-pearprov >= 4.4.2-11
+Requires:	php(core) >= %{php_min_version}
+Requires:	php(phar)
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Simple static Composer repository generator.
+
+It uses any composer.json file as input and dumps all the required
+(according to their version constraints) packages to a Composer
+Repository file.
+
+%prep
+%setup -qc
+mv %{name}-*/* .
+
+%build
+composer install -v
+
+%{__php} -d phar.readonly=0 -d memory_limit=512M ./bin/compile
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_bindir}
+cp -p %{name}.phar $RPM_BUILD_ROOT%{_bindir}/%{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md LICENSE
+%attr(755,root,root) %{_bindir}/satis
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/satis.git/commitdiff/397b7f50724745c7ba2fb5989a0876cfeb32df9e



More information about the pld-cvs-commit mailing list