[python-XStatic-jquery-ui] initial import

Matthias Runge mrunge at fedoraproject.org
Thu Sep 18 07:11:41 UTC 2014


commit 56688941ad13132d2ecb1574b0621f00c625a96c
Author: Matthias Runge <mrunge at redhat.com>
Date:   Thu Sep 18 09:11:33 2014 +0200

    initial import

 .gitignore                    |    1 +
 python-XStatic-jquery-ui.spec |   69 +++++++++++++++++++++++++++++++++++++++++
 sources                       |    1 +
 3 files changed, 71 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..ce0e3a0 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/XStatic-jquery-ui-1.10.4.1.tar.gz
diff --git a/python-XStatic-jquery-ui.spec b/python-XStatic-jquery-ui.spec
new file mode 100644
index 0000000..33a0c63
--- /dev/null
+++ b/python-XStatic-jquery-ui.spec
@@ -0,0 +1,69 @@
+%global pypi_name XStatic-jquery-ui
+%{!?__python2:%global __python2 %{__python}}
+%{!?python2_sitelib:   %global python2_sitelib         %{python_sitelib}}
+%{!?python2_sitearch:  %global python2_sitearch        %{python_sitearch}}
+%{!?python2_version:   %global python2_version         %{python_version}}
+
+Name:           python-%{pypi_name}
+Version:        1.10.4.1
+Release:        1%{?dist}
+Summary:        jquery-ui (XStatic packaging standard)
+
+# According 
+# https://fedoraproject.org/wiki/Licensing:Main?rd=Licensing#Good_Licenses
+# http://creativecommons.org/publicdomain/zero/1.0/legalcode
+# is abbreviated CCO.
+# This package has the same license as jquery-ui:
+# https://github.com/jquery/jqueryui.com/blob/master/LICENSE.txt
+License:        CCO
+URL:            http://jqueryui.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
+jquery-ui javascript library packaged for
+setuptools (easy_install) / pip.
+
+%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}/jquery_ui'|" xstatic/pkg/jquery_ui/__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}/jquery_ui
+mv %{buildroot}/%{python2_sitelib}/xstatic/pkg/jquery_ui/data/* %{buildroot}/%{_jsdir}/jquery_ui
+
+
+
+%files
+%doc README.txt
+%{python2_sitelib}/xstatic/pkg/jquery_ui
+%{python2_sitelib}/XStatic_jquery_ui-1.10.4.1-py%{python_version}.egg-info
+%{python2_sitelib}/XStatic_jquery_ui-1.10.4.1-py%{python_version}-nspkg.pth
+%{_jsdir}/jquery_ui
+
+%changelog
+* Mon Aug 18 2014 Matthias Runge <mrunge at redhat.com> - 1.10.4.1-1
+- Initial package (rhbz#1135430).
diff --git a/sources b/sources
index e69de29..a3f2118 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+84a49b54bd5f22850f1a162e2deb7ddf  XStatic-jquery-ui-1.10.4.1.tar.gz


More information about the scm-commits mailing list