summaryrefslogtreecommitdiffstats
path: root/php-apigen-theme-default.spec
blob: a15c01b500674108d615594b3af2e6808697de00 (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
83
# remirepo/fedora spec file for php-apigen-theme-default
#
# Copyright (c) 2015 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/4.0/
#
# Please, preserve the changelog entries
#
%global bootstrap    1
%global gh_commit    51648cf83645d9ae6c655fe46bcd26a347d45336
%global gh_short     %(c=%{gh_commit}; echo ${c:0:7})
#global gh_date      20150717
%global gh_owner     ApiGen
%global gh_project   ThemeDefault

%global composer_vendor  apigen
%global composer_project theme-default

Name:          php-%{composer_vendor}-%{composer_project}
Version:       1.0.2
Release:       1%{?github_release}%{?dist}
Summary:       Default Theme for Apigen

Group:         Development/Libraries
License:       MIT
URL:           http://www.apigen.org/
Source0:       https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{name}-%{version}-%{gh_short}.tar.gz

BuildArch:     noarch
BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

# From composer.json, "require": {
#       "latte/latte": "~2.2"
Requires:      php-composer(latte/latte) >= 2.2
Requires:      php-composer(latte/latte) <  3
# For tree ownership
%if ! %{bootstrap}
Requires:      php-composer(%{composer_vendor}/apigen)
%endif

# Composer
Provides:      php-composer(%{composer_vendor}/%{composer_project}) = %{version}


%description
%{summary}.


%prep
%setup -qn %{gh_project}-%{gh_commit}


%build
# Empty build section, nothing to build


%install
rm -rf   %{buildroot}

mkdir -p   %{buildroot}%{_datadir}/%{composer_vendor}/themes
cp -rp src %{buildroot}%{_datadir}/%{composer_vendor}/themes/%{composer_project}


%clean
rm -rf %{buildroot}


%files
%defattr(-,root,root,-)
%{!?_licensedir:%global license %%doc}
%license LICENSE
%doc *.md
%doc composer.json
%if %{bootstrap}
%dir %{_datadir}/%{composer_vendor}
%dir %{_datadir}/%{composer_vendor}/themes
%endif
%{_datadir}/%{composer_vendor}/themes/%{composer_project}


%changelog
* Fri Oct 30 2015 Remi Collet <remi@fedoraproject.org> - 1.0.2-1
- Initial package, version 1.0.2