php-composer/php-composer.spec

84 lines
2.5 KiB
RPMSpec
Raw Permalink Normal View History

%define gitver %(echo %version | tr _ -)
Name: php-composer
Version: 2.3.8
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
Requires: php-openssl
%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
* Fri Jul 01 2022 Automatic Build System <autodist@mambasoft.it> 2.3.8-1mamba
- automatic version update by autodist
* Tue Jun 07 2022 Automatic Build System <autodist@mambasoft.it> 2.3.7-1mamba
- automatic version update by autodist
* Fri Jun 03 2022 Automatic Build System <autodist@mambasoft.it> 2.3.6-1mamba
- automatic version update by autodist
* Tue May 10 2022 Automatic Build System <autodist@mambasoft.it> 2.3.5-1mamba
- automatic version update by autodist
* Thu Feb 04 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.9-1mamba
- update to 2.0.9
* Fri Apr 26 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.8.5-1mamba
- update to 1.8.5
- require php-openssl
* Wed Feb 20 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 1.8.4-1mamba
- update to 1.8.4
* 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