[python-XStatic-Hogan] initial import

Matthias Runge mrunge at fedoraproject.org
Wed Sep 10 07:37:21 UTC 2014


commit 922908bc04e92c60432f7551f9cfe4d61787e205
Author: Matthias Runge <mrunge at redhat.com>
Date:   Wed Sep 10 09:37:06 2014 +0200

    initial import

 .gitignore                |    1 +
 python-XStatic-Hogan.spec |   70 +++++++++++++++++++++++++++++++++++++++++++++
 sources                   |    1 +
 3 files changed, 72 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..f088d18 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/XStatic-Hogan-2.0.0.2.tar.gz
diff --git a/python-XStatic-Hogan.spec b/python-XStatic-Hogan.spec
new file mode 100644
index 0000000..779fe11
--- /dev/null
+++ b/python-XStatic-Hogan.spec
@@ -0,0 +1,70 @@
+%global pypi_name XStatic-Hogan
+
+Name:           python-%{pypi_name}
+Version:        2.0.0.2
+Release:        2%{?dist}
+Summary:        Hogan (XStatic packaging standard)
+
+License:        ASL 2.0
+URL:            http://twitter.github.io/hogan.js/
+Source0:        https://pypi.python.org/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
+BuildArch:      noarch
+ 
+BuildRequires:  python2-devel
+BuildRequires:  python-setuptools
+BuildRequires:  web-assets-devel
+
+Requires: python-XStatic
+Requires: web-assets-filesystem
+
+
+%description
+Hogan JavaScript library packaged for setuptools
+(easy_install) / pip.
+
+This package is intended to be used by **any** project
+that needs these files.
+
+It intentionally does **not** provide any extra code
+except some metadata
+**nor** has any extra requirements. You MAY use some
+minimal support code from
+the XStatic base package, if you like.
+
+
+%prep
+%setup -q -n %{pypi_name}-%{version}
+# Remove bundled egg-info
+rm -rf %{pypi_name}.egg-info
+
+# patch to use webassets dir
+sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/hogan'|" xstatic/pkg/hogan/__init__.py
+
+
+%build
+# due 
+# https://bitbucket.org/thomaswaldmann/xstatic/issue/2/
+# this package can not be built with python-XStatic installed.
+%{__python2} setup.py build
+
+
+%install
+%{__python2} setup.py install --skip-build --root %{buildroot}
+mkdir -p %{buildroot}/%{_jsdir}/hogan
+mv %{buildroot}/%{python2_sitelib}/xstatic/pkg/hogan/data/hogan.js %{buildroot}/%{_jsdir}/hogan
+
+
+
+%files
+%doc README.txt
+%{python2_sitelib}/xstatic/pkg/hogan
+%{python2_sitelib}/XStatic_Hogan-%{version}-py%{python_version}.egg-info
+%{python2_sitelib}/XStatic_Hogan-%{version}-py%{python_version}-nspkg.pth
+%{_jsdir}/hogan
+
+%changelog
+* Thu Sep 04 2014 Matthias Runge <mrunge at redhat.com> - 2.0.0.2-2
+- changed BR to python2-devel (rhbz#1134800)
+
+* Thu Aug 28 2014 Matthias Runge <mrunge at redhat.com> - 2.0.0.2-1
+- Initial package.
diff --git a/sources b/sources
index e69de29..0c858fe 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+1c1de09c4813e8568aab98fa5270d6a0  XStatic-Hogan-2.0.0.2.tar.gz


More information about the scm-commits mailing list