[python-XStatic-Bootstrap-Datepicker] initial import
Matthias Runge
mrunge at fedoraproject.org
Tue Oct 14 07:43:47 UTC 2014
commit 236598c09c9d3d91517513c7f86a989a4bbac320
Author: Matthias Runge <mrunge at redhat.com>
Date: Tue Oct 14 09:43:34 2014 +0200
initial import
.gitignore | 1 +
python-XStatic-Bootstrap-Datepicker.spec | 59 ++++++++++++++++++++++++++++++
sources | 1 +
3 files changed, 61 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..c2ed474 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/XStatic-Bootstrap-Datepicker-1.3.1.0.tar.gz
diff --git a/python-XStatic-Bootstrap-Datepicker.spec b/python-XStatic-Bootstrap-Datepicker.spec
new file mode 100644
index 0000000..9461acd
--- /dev/null
+++ b/python-XStatic-Bootstrap-Datepicker.spec
@@ -0,0 +1,59 @@
+# Created by pyp2rpm-1.1.1
+%global pypi_name XStatic-Bootstrap-Datepicker
+
+Name: python-%{pypi_name}
+Version: 1.3.1.0
+Release: 1%{?dist}
+Summary: Bootstrap-Datepicker (XStatic packaging standard)
+
+License: ASL 2.0
+URL: https://github.com/eternicode/bootstrap-datepicker/
+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-Datepicker 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.
+
+%prep
+%setup -q -n %{pypi_name}-%{version}
+# Remove bundled egg-info
+rm -rf XStatic_Bootstrap_Datepicker.egg-info
+
+sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/bootstrap_datepicker'|" xstatic/pkg/bootstrap_datepicker/__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}/bootstrap_datepicker
+mv %{buildroot}/%{python2_sitelib}/xstatic/pkg/bootstrap_datepicker/data/* %{buildroot}/%{_jsdir}/bootstrap_datepicker
+
+%files
+%doc README.txt
+%{python2_sitelib}/xstatic/pkg/bootstrap_datepicker
+%{python2_sitelib}/XStatic_Bootstrap_Datepicker-%{version}-py%{python_version}.egg-info
+%{python2_sitelib}/XStatic_Bootstrap_Datepicker-%{version}-py%{python_version}-nspkg.pth
+%{_jsdir}/bootstrap_datepicker
+
+%changelog
+* Fri Sep 19 2014 Matthias Runge <mrunge at redhat.com> - 1.3.1.0-1
+- Initial package.
diff --git a/sources b/sources
index e69de29..8dcb4dd 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+c2f5c58a7b41162923eca5a36b29b8b2 XStatic-Bootstrap-Datepicker-1.3.1.0.tar.gz
More information about the scm-commits
mailing list