Репозиторий Sisyphus
Последнее обновление: 21 января 2021 | Пакетов: 17776 | Посещений: 20098931
en ru br
Репозитории ALT

Группа :: Система/Настройка/Пакеты
Пакет: composer

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

# To update package, grub new sources
#
#   gear-remotes-restore
#   git fetch upstream
#   git merge upstream/1.7
#
# and create new vendor cache for new composer version
#
#   cd .gear
#   ./get_vendor_cache.sh
#
# OR JUST run $ rpmrb NEWVERSION instead of all above

Name: composer
Version: 1.10.1
Release: alt1

Summary: Composer helps you declare, manage and install dependencies of PHP projects, ensuring you have the right stack everywhere

License: %mit
Group: System/Configuration/Packaging
Url: https://getcomposer.org/

# Source-git: https://github.com/composer/composer

Source: %name-%version.tar

Packager: Danil Mikhailov <danil at altlinux.org>

Requires: /usr/bin/php

BuildRequires(pre): rpm-build-licenses

BuildRequires: git-core php7-openssl php7

BuildArch: noarch

%description
Composer helps you declare, manage and install dependencies of PHP projects,
ensuring you have the right stack everywhere.

%prep
%setup

%build

#Move vendor cache with build requires

mv .gear/vendor/ vendor/

#Compile need git log -n1 --pretty=ct HEAD #TODO remove it

git init
git config user.email "you at example.com"
git config user.name "Your Name"
git add bin/compile
git commit -am "Fix for compile"

#build composer.phar

php -d phar.readonly=off -d date.timezone='Europe/Moscow' bin/compile

%install
mkdir -p %buildroot/%_datadir/
cp composer.phar %buildroot/%_datadir/

mkdir -p %buildroot/%_bindir/
install -m 0755 .gear/composer.sh  %buildroot/%_bindir/%name

mkdir -p %buildroot/%_sysconfdir/sysconfig
install -m 0644 .gear/composer.sysconfig %buildroot%_sysconfdir/sysconfig/%name

%files
%doc .gear/README.ALT

%attr(755,root,root) %_bindir/%name
%attr(755,root,root) %_datadir/%name.phar
%config(noreplace)  %_sysconfdir/sysconfig/%name

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin