diff options
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | php-apigen-theme-bootstrap.spec | 77 |
2 files changed, 81 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..13af741 --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +SRCDIR := $(shell pwd) +NAME := $(shell basename $(SRCDIR)) +include ../../../common/Makefile + diff --git a/php-apigen-theme-bootstrap.spec b/php-apigen-theme-bootstrap.spec new file mode 100644 index 0000000..7d33a84 --- /dev/null +++ b/php-apigen-theme-bootstrap.spec @@ -0,0 +1,77 @@ +# remirepo spec/Fedora file for php-apigen-theme-bootstrap +# +# Copyright (c) 2015 Remi Collet +# License: CC-BY-SA +# http://creativecommons.org/licenses/by-sa/4.0/ +# +# Please, preserve the changelog entries +# +%global gh_commit 55a35b4a3a9a5fcaa6a8fc43fb304983cab98c6c +%global gh_short %(c=%{gh_commit}; echo ${c:0:7}) +#global gh_date 20150717 +%global gh_owner ApiGen +%global gh_project ThemeBootstrap + +%global composer_vendor apigen +%global composer_project theme-bootstrap + +Name: php-%{composer_vendor}-%{composer_project} +Version: 1.1.3 +Release: 1%{?github_release}%{?dist} +Summary: Twitter Bootstrap 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 +Requires: php-composer(%{composer_vendor}/apigen) + + +# 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 +%{_datadir}/%{composer_vendor}/themes/%{composer_project} + + +%changelog +* Fri Oct 30 2015 Remi Collet <remi@fedoraproject.org> - 1.1.3-1 +- Initial package, version 1.1.3
\ No newline at end of file |