File php-spomky-labs-otphp.spec of Package php-spomky-labs-otphp

# Spec file for php-spomky-labs-otphp
# 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     spomky-labs
%global gh_project   spomky-labs-otphp
%global with_tests   %{?_without_tests:0}%{!?_without_tests:1}

Name:           php-%{gh_project}
Summary:        Generate One Time Passwords
Version:        4.0.2
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

Provides:       php-composer(spomky-labs/otphp) = %{version}

# From composer.json
Requires:       php(language) >= 5.4
Requires:       php-composer(christianriesen/base32)

A php library for generating one time passwords according to RFC 4226
(HOTP Algorithm) and the RFC 6238 (TOTP Algorithm).

%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/OTPHP/
cp -pr lib/* %{buildroot}%{_datadir}/php/OTPHP/.


%doc composer.json LICENCE

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