62 lines
1.8 KiB
RPMSpec
62 lines
1.8 KiB
RPMSpec
%define gitver %(echo %version | tr _ -)
|
|
Name: php-composer
|
|
Version: 1.2.0
|
|
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
|
|
## 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
|
|
* Tue Jul 26 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.0-1mamba
|
|
- update to 1.2.0
|
|
|
|
* Sun May 01 2016 Automatic Build System <autodist@mambasoft.it> 1.0.3-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Sat Apr 23 2016 Automatic Build System <autodist@mambasoft.it> 1.0.2-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Wed Mar 23 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.0_beta1-1mamba
|
|
- update to 1.0.0_beta1
|
|
|
|
* Sat Jan 23 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 1.0.0_alpha11-1mamba
|
|
- package created using the webbuild interface
|