diff --git a/README.md b/README.md index d8608ed..3cb22e2 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # php-composer +Dependency Manager for PHP. + diff --git a/php-composer.spec b/php-composer.spec new file mode 100644 index 0000000..27ea708 --- /dev/null +++ b/php-composer.spec @@ -0,0 +1,50 @@ +%define gitver %(echo %version | tr _ -) +Name: php-composer +Version: 1.0.0_alpha11 +Release: 1mamba +Summary: Dependency Manager for PHP +Group: Development/Tools +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://getcomposer.org +## GITSOURCE https://github.com/composer/composer.git master +Source: https://github.com/composer/composer.git/%{gitver}/composer-%{version}.tar.bz2 +License: MIT +## AUTOBUILDREQ-BEGIN +## note: run 'autospec -u -a6 php-composer' to get the list of build requirements. +## AUTOBUILDREQ-END +BuildRequires: php +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Dependency Manager for PHP. + +%prep +%setup -q -n composer-%{version} +# FIXME: UGLY; needs git repository to build +git clone https://github.com/composer/composer.git +cd composer +wget https://getcomposer.org/download/%{gitver}/composer.phar +php composer.phar -n install --no-dev + +%build +cd composer +php -d phar.readonly=Off bin/compile + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +cd composer +install -D -m755 composer.phar %{buildroot}%{_bindir}/composer + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_bindir}/composer +%doc LICENSE + +%changelog +* Sat Jan 23 2016 Silvan Calarco 1.0.0_alpha11-1mamba +- package created using the webbuild interface