summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2015-10-30 13:39:41 +0100
committerRemi Collet <fedora@famillecollet.com>2015-10-30 13:39:41 +0100
commita71e7648e27d80f5262a73e023c789443c575913 (patch)
treeefc77ef4e5cab6565bb21583f490b8baca24d89a
php-apigen-theme-default: 1.0.2, new package
-rw-r--r--Makefile4
-rw-r--r--php-apigen-theme-default.spec77
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-default.spec b/php-apigen-theme-default.spec
new file mode 100644
index 0000000..b904c51
--- /dev/null
+++ b/php-apigen-theme-default.spec
@@ -0,0 +1,77 @@
+# remirepo spec/Fedora 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 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
+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.0.2-1
+- Initial package, version 1.0.2 \ No newline at end of file