[python-XStatic-Bootstrap-SCSS] initial commit

Matthias Runge mrunge at fedoraproject.org
Tue Oct 14 08:53:58 UTC 2014


commit 3180fd0edb3a6ede741c87ed7cc9339fb8cf7e6b
Author: Matthias Runge <mrunge at redhat.com>
Date:   Tue Oct 14 10:53:44 2014 +0200

    initial commit

 .gitignore                         |    1 +
 python-XStatic-Bootstrap-SCSS.spec |   56 ++++++++++++++++++++++++++++++++++++
 sources                            |    1 +
 3 files changed, 58 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..2084d05 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/XStatic-Bootstrap-SCSS-3.2.0.0.tar.gz
diff --git a/python-XStatic-Bootstrap-SCSS.spec b/python-XStatic-Bootstrap-SCSS.spec
new file mode 100644
index 0000000..12f27c9
--- /dev/null
+++ b/python-XStatic-Bootstrap-SCSS.spec
@@ -0,0 +1,56 @@
+# Created by pyp2rpm-1.1.1
+%global pypi_name XStatic-Bootstrap-SCSS
+
+Name:           python-%{pypi_name}
+Version:        3.2.0.0
+Release:        1%{?dist}
+Summary:        Bootstrap-SCSS (XStatic packaging standard)
+
+License:        MIT
+URL:            http://getbootstrap.com/
+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
+Bootstrap style library packaged for
+setuptools (easy_install) / pip.
+
+This package is intended to be used by any project that needs these files.
+
+%prep
+%setup -q -n %{pypi_name}-%{version}
+# Remove bundled egg-info
+rm -rf XStatic_Bootstrap_SCSS.egg-info
+
+# patch to use webassets dir
+sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/bootstrap_scss'|" xstatic/pkg/bootstrap_scss/__init__.py
+
+
+%build
+%{__python2} setup.py build
+
+
+%install
+%{__python2} setup.py install --skip-build --root %{buildroot}
+mkdir -p %{buildroot}/%{_jsdir}/bootstrap_scss
+mv %{buildroot}/%{python_sitelib}/xstatic/pkg/bootstrap_scss/data/* %{buildroot}/%{_jsdir}/bootstrap_scss
+
+
+
+%files
+%doc README.txt
+%{python2_sitelib}/xstatic/pkg/bootstrap_scss
+%{python2_sitelib}/XStatic_Bootstrap_SCSS-%{version}-py%{python_version}.egg-info
+%{python2_sitelib}/XStatic_Bootstrap_SCSS-%{version}-py%{python_version}-nspkg.pth
+%{_jsdir}/bootstrap_scss
+
+%changelog
+* Thu Oct 02 2014 Matthias Runge <mrunge at redhat.com> - 3.2.0.0-1
+- Initial package (rhbz#1148956).
diff --git a/sources b/sources
index e69de29..dd1c2aa 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+903d7de8aef6bee93d976b42d35edf7b  XStatic-Bootstrap-SCSS-3.2.0.0.tar.gz


More information about the scm-commits mailing list