File php-endroid-qrcode.spec of Package php-endroid-qrcode

# Spec file for php-endroid-qrcode
# Copyright (c) 2013-2014 Remi Collet
# License: CC-BY-SA
# Please, preserve the changelog entries
#%%global gh_commit    6a8aec204688d36681e0185fbaf1974b97e4a070
%global gh_short     %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner     endroid
%global gh_project   endroid-qrcode
%global with_tests   %{?_without_tests:0}%{!?_without_tests:1}

Name:           php-%{gh_project}
Summary:        Endroid QR Code Generator
Version:        1.5.4
Release:        1%{?dist}

URL:  {gh_owner}/%{gh_project}
License:        MIT
Group:          Development/Libraries

BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:      noarch
%if %{with_tests}
BuildRequires:  php(language) >= 5.4

# From composer.json
Requires:       php(language) >= 5.4
Requires:       php-gd

This library based on QRcode Perl CGI & PHP scripts by Y.
Swetake helps you generate images containing a QR code.

%setup -q -n %{gh_project}-%{?gh_commit:%{gh_commit}}%{!?gh_commit:%{version}}

# nothing to build

# Install as a PSR-0 library
mkdir -p %{buildroot}%{_datadir}/php/Endroid/QrCode/
cp -pr assets %{buildroot}%{_datadir}/php/Endroid/.
cp -pr src/* %{buildroot}%{_datadir}/php/Endroid/QrCode/.


%doc composer.json LICENSE
%dir %{_datadir}/php/Endroid

* Mon Jul  6 2015 Jeroen van Meeuwen <> - 1.5.4-1
- First package