]> git.pld-linux.org Git - packages/satis.git/commitdiff
- new
authorElan Ruusamäe <glen@delfi.ee>
Sat, 8 Dec 2012 03:14:01 +0000 (05:14 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Sat, 8 Dec 2012 03:14:01 +0000 (05:14 +0200)
satis.spec [new file with mode: 0644]

diff --git a/satis.spec b/satis.spec
new file mode 100644 (file)
index 0000000..9d75b7b
--- /dev/null
@@ -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
This page took 0.079022 seconds and 4 git commands to generate.