[python-flask-assets] Update to latest source
kumarpraveen
kumarpraveen at fedoraproject.org
Thu Dec 11 04:56:52 UTC 2014
commit 91a8c43e6358f3a5268cf597781803f8f95d785c
Author: Praveen Kumar <prkumar at redhat.com>
Date: Thu Dec 11 10:25:36 2014 +0530
Update to latest source
- Add python3 support
.gitignore | 1 +
python-flask-assets.spec | 63 ++++++++++++++++++++++++++++++++++++++-------
sources | 2 +-
3 files changed, 55 insertions(+), 11 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 274525c..fe1aaa4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
/Flask-Assets-0.2.2.tar.gz
/Flask-Assets-0.7.tar.gz
/Flask-Assets-0.8.tar.gz
+/Flask-Assets-0.10.tar.gz
diff --git a/python-flask-assets.spec b/python-flask-assets.spec
index ad1680f..32b5ac9 100644
--- a/python-flask-assets.spec
+++ b/python-flask-assets.spec
@@ -1,8 +1,11 @@
+%if 0%{?fedora}
+%global with_python3 1
+%endif
%global mod_name Flask-Assets
Name: python-flask-assets
-Version: 0.8
-Release: 3%{?dist}
+Version: 0.10
+Release: 1%{?dist}
Summary: Asset management for flask
Group: Development/Libraries
@@ -11,44 +14,84 @@ URL: http://github.com/miracle2k/flask-assets
Source0: http://pypi.python.org/packages/source/F/%{mod_name}/%{mod_name}-%{version}.tar.gz
BuildArch: noarch
-BuildRequires: python-devel
+BuildRequires: python2-devel
BuildRequires: python-setuptools
BuildRequires: python-webassets
Requires: python-webassets
+%if 0%{?with_python3}
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-webassets
+%endif
%description
-Integrates the webassets library with Flask, adding support
+Integrates the webassets library with Flask, adding support
for merging, minifying and compiling CSS and Javascript files.
+%if 0%{?with_python3}
+%package -n python3-flask-assets
+Summary: Asset management for flask
+
+Requires: python3-webassets
+
+%description -n python3-flask-assets
+Integrates the webassets library with Flask, adding support
+for merging, minifying and compiling CSS and Javascript files.
+
+%endif # with_python3
+
%prep
%setup -q -n %{mod_name}-%{version}
rm -f docs/_themes/.gitignore
rm -f docs/.gitignore
+%if 0%{?with_python3}
+rm -rf %{py3dir}
+cp -a . %{py3dir}
+%endif # with_python3
%build
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
+%if 0%{?with_python3}
+pushd %{py3dir}
+CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
+popd
+%endif
%install
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
-
+%if 0%{?with_python3}
+pushd %{py3dir}
+mkdir -p $RPM_BUILD_ROOT%{python3_sitelib}
+%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
+popd
+%endif
+
%files
%doc docs/ README.rst CHANGES LICENSE PKG-INFO
-%{python_sitelib}/*.egg-info/
-%{python_sitelib}/*.py*
+%{python_sitelib}/*
+%if 0%{?with_python3}
+%files -n python3-flask-assets
+%doc docs/ README.rst CHANGES LICENSE PKG-INFO
+%{python3_sitelib}/*
+%endif # with_python3
%changelog
+* Thu Dec 11 2014 Praveen Kumar <kumarpraveen.nitdgp at gmail.com> 0.10-1
+- Update to latest source
+- Add python3 support
+
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.8-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
-* Tue Oct 04 2013 Praveen Kumar <kumarpraveen.nitdgp at gmail.com> - 0.8-2
+* Fri Oct 04 2013 Praveen Kumar <kumarpraveen.nitdgp at gmail.com> - 0.8-2
- Added python-webassets as require
* Tue Aug 20 2013 Praveen Kumar <kumarpraveen.nitdgp at gmail.com> - 0.8-1
-- Updated latest source.
+- Updated latest source.
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.7-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
@@ -57,7 +100,7 @@ CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
* Thu Oct 18 2012 Praveen Kumar <kumarpraveen.nitdgp at gmail.com> - 0.7-1
-- Updated latest source.
+- Updated latest source.
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.2.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
diff --git a/sources b/sources
index 31fb1d2..62e8091 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-89be7277f3cf5fa89d7fa8d3679b9422 Flask-Assets-0.8.tar.gz
+897ae9d0e818ea9f6468ffed46afc173 Flask-Assets-0.10.tar.gz
More information about the scm-commits
mailing list