[python-XStatic-JQuery-TableSorter] initial import

Matthias Runge mrunge at fedoraproject.org
Thu Sep 11 06:55:06 UTC 2014


commit 190c747e89fba73455e6fc50144edd27cdb74698
Author: Matthias Runge <mrunge at redhat.com>
Date:   Thu Sep 11 08:54:55 2014 +0200

    initial import

 .gitignore                             |    1 +
 python-XStatic-JQuery-TableSorter.spec |   69 ++++++++++++++++++++++++++++++++
 sources                                |    1 +
 3 files changed, 71 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..05554c6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/XStatic-JQuery.TableSorter-2.14.5.1.tar.gz
diff --git a/python-XStatic-JQuery-TableSorter.spec b/python-XStatic-JQuery-TableSorter.spec
new file mode 100644
index 0000000..66812c5
--- /dev/null
+++ b/python-XStatic-JQuery-TableSorter.spec
@@ -0,0 +1,69 @@
+%global pypi_name XStatic-JQuery.TableSorter
+
+Name:           python-XStatic-JQuery-TableSorter
+Version:        2.14.5.1
+Release:        2%{?dist}
+Summary:        JQuery-TableSorter (XStatic packaging standard)
+
+License:        MIT
+URL:            https://github.com/Mottie/tablesorter
+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.TableSorter 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 %{pypi_name}.egg-info
+
+# patch to use webassets dir
+sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/jquery_tablesorter'|" xstatic/pkg/jquery_tablesorter/__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_tablesorter
+mv %{buildroot}/%{python2_sitelib}/xstatic/pkg/jquery_tablesorter/data/jquery.tablesorter.js %{buildroot}/%{_jsdir}/jquery_tablesorter
+
+
+
+%files
+%doc README.txt
+%{python2_sitelib}/xstatic/pkg/jquery_tablesorter
+%{python2_sitelib}/XStatic_JQuery.TableSorter-%{version}-py%{python_version}-*.pth
+%{python2_sitelib}/XStatic_JQuery.TableSorter-%{version}-py%{python_version}.egg-info
+%{_jsdir}/jquery_tablesorter
+
+
+%changelog
+* Thu Sep 04 2014 Matthias Runge <mrunge at redhat.com> - 2.14.5.1-2
+- change BR to python2-devel (rhbz#1134912)
+
+* Thu Aug 28 2014 Matthias Runge <mrunge at redhat.com> - 2.14.5.1-1
+- Initial package.
diff --git a/sources b/sources
index e69de29..8284b1b 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+fc05a6731b6ac3f6489b893f96a5d29a  XStatic-JQuery.TableSorter-2.14.5.1.tar.gz


More information about the scm-commits mailing list