Sophie

Sophie

distrib > Fedora > 17 > x86_64 > media > updates-src > by-pkgid > 12b3fbdf5db03bb23874c27feb2f0af5 > files > 2

php-Pimple-1.0.2-1.fc17.src.rpm

%global github_owner   fabpot
%global github_name    Pimple
%global github_version 1.0.2
%global github_commit  ae11e57e8c2bb414b2ff93396dbbfc0eb92feb94

%global php_min_ver    5.3.0

Name:          php-%{github_name}
Version:       %{github_version}
Release:       1%{?dist}
Summary:       A simple Dependency Injection Container for PHP

Group:         Development/Libraries
License:       MIT
URL:           http://pimple.sensiolabs.org
Source0:       https://github.com/%{github_owner}/%{github_name}/archive/%{github_commit}/%{name}-%{github_version}-%{github_commit}.tar.gz

BuildArch:     noarch
BuildRequires: php-common >= %{php_min_ver}
BuildRequires: php-pear(pear.phpunit.de/PHPUnit)
# phpci
BuildRequires: php-spl

Requires:      php-common >= %{php_min_ver}
# phpci
Requires:      php-spl

%description
Pimple is a small Dependency Injection Container for PHP that consists of
just one file and one class.


%prep
%setup -q -n %{github_name}-%{github_commit}


%build
# Empty build section, nothing to build


%install
mkdir -p -m 755 %{buildroot}%{_datadir}/php/%{github_name}
cp -pr lib/* %{buildroot}%{_datadir}/php/%{github_name}/


%check
%{_bindir}/phpunit -d include_path="./lib:./tests:%{pear_phpdir}"


%files
%doc LICENSE README.rst composer.json
%{_datadir}/php/%{github_name}


%changelog
* Fri Mar 08 2013 Shawn Iwinski <shawn.iwinski@gmail.com> 1.0.2-1
- Updated to upstream version 1.0.2
- Updates per new Fedora packaging guidelines for Git repos
- Removed tests

* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

* Sun Dec 16 2012 Shawn Iwinski <shawn.iwinski@gmail.com> 1.0.1-1
- Updated to upstream version 1.0.1

* Sun Dec  2 2012 Shawn Iwinski <shawn.iwinski@gmail.com> 1.0.0-2
- Removed "5.3" from summary and description
- Changed update tests' require path to use standard PHP include_path
- Changed %%check to override include_path in PHPunit call instead of
  updating file

* Fri Nov 30 2012 Shawn Iwinski <shawn.iwinski@gmail.com> 1.0.0-1
- Initial package