51 lines
1.4 KiB
RPMSpec
51 lines
1.4 KiB
RPMSpec
|
%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 <silvan.calarco@mambasoft.it>
|
||
|
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 <silvan.calarco@mambasoft.it> 1.0.0_alpha11-1mamba
|
||
|
- package created using the webbuild interface
|