LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File php56-composer.spec of Package php56-composer (Project home:bjoern_beutel)

# spec file for package php-composer
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/

Name:           php56-composer
Version:        1.5.2
Release:        0
Summary:        Dependency Management for PHP
License:        MIT
Group:          Development/Libraries/Other
URL:            http://getcomposer.org/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        composer.phar
Source1:        README.md
Source2:        LICENSE
Requires:       php56
Requires:       php56-json
Requires:       php56-openssl
Requires:       php56-phar
Provides:       composer = %{version}
Obsoletes:      composer < %{version}
Provides:       php56-composer = %{version}
Obsoletes:      php56-composer < %{version}
BuildArch:      noarch

Composer is a dependency manager tracking local dependencies of your projects
and libraries.

%setup -q -c -T


# Install compiled phar file
install -d -m 0750 %{buildroot}%{_bindir}
install -m 0755 %{SOURCE0} %{buildroot}%{_bindir}/composer

# Install documents
install -d -m 0750 %{buildroot}%{_docdir}/%{name}
install -m 0644 %{SOURCE1} %{buildroot}%{_docdir}/%{name}
install -m 0644 %{SOURCE2} %{buildroot}%{_docdir}/%{name}

%doc %{_docdir}/%{name}