blob: d43b1d2f14b6d2e77a49ab9781dd47d0b37d861c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
# remirepo spec file for php-mikealmond-musicbrainz
#
# Fedora spec file for php-mikealmond-musicbrainz
#
# License: MIT
# http://opensource.org/licenses/MIT
#
# Please preserve changelog entries
#
Name: php-mikealmond-musicbrainz
Version: 0.2.2
Release: 1%{?dist}
BuildArch: noarch
License: MIT
Summary: A PHP library to access MusicBrainz's Web Service v2
URL: https://github.com/mikealmond/MusicBrainz
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: php-composer(fedora/autoloader)
BuildRequires: php-fedora-autoloader-devel
BuildRequires: phpunit
Requires: php(language) >= 5.3.8
Requires: php-composer(fedora/autoloader)
Requires: php-curl
Requires: php-date
Requires: php-filter
Requires: php-json
Requires: php-pcre
Requires: php-spl
Provides: php-composer(mikealmond/musicbrainz) = %{version}
%description
This PHP library that allows you to easily access the MusicBrainz Web
Service V2 API. Visit the MusicBrainz development page for more
information.
This project is a fork of https://github.com/chrisdawson/MusicBrainz and
takes some inspiration from the Python bindings.
%prep
%autosetup -n MusicBrainz-%{version}
%build
cat <<'AUTOLOAD' | tee src/MusicBrainz/autoload.php
<?php
require_once '%{_datadir}/php/Fedora/Autoloader/autoload.php';
\Fedora\Autoloader\Autoload::addPsr4('MusicBrainz', __DIR__);
AUTOLOAD
%install
install -d -p -m 0755 %{buildroot}/%{_datadir}/php
install -d -p -m 0755 %{buildroot}/%{_datadir}/php/MusicBrainz
cp -ar src/MusicBrainz/* %{buildroot}/%{_datadir}/php/MusicBrainz
%check
phpunit --no-coverage --bootstrap %{buildroot}/%{_datadir}/php/MusicBrainz/autoload.php
%files
%{!?_licensedir:%global license %%doc}
%license LICENSE.md
%doc composer.json
%doc README.md
%{_datadir}/php/MusicBrainz
%changelog
* Thu Mar 9 2017 Remi Collet <remi@remirepo.net> - 0.2.2-1
- backport for #remirepo
* Sat Mar 04 2017 Randy Barlow <bowlofeggs@fedoraproject.org> - 0.2.2-1
- Initial release.
|