[python-cement] latest sources 1.9.10

derks derks at fedoraproject.org
Wed Jul 4 00:37:10 UTC 2012


commit c9c5efb49ac215c0df84e5f8c5da52b910387ef5
Author: BJ Dierkes <wdierkes at rackspace.com>
Date:   Mon Jul 2 23:47:51 2012 -0500

    latest sources 1.9.10

 .gitignore                     |    1 +
 cement-0.8.18-paths.patch      |   33 -------
 cement-0.8.18-setuptools.patch |   47 ---------
 python-cement.spec             |  203 ++++++++++++----------------------------
 sources                        |    2 +-
 5 files changed, 60 insertions(+), 226 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e17b0df..403a888 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
 /cement-0.8.14.tar.gz
 /cement-0.8.16.tar.gz
 /cement-0.8.18.tar.gz
+/cement-1.9.10.tar.gz
diff --git a/python-cement.spec b/python-cement.spec
index 3cb99bb..75ba479 100644
--- a/python-cement.spec
+++ b/python-cement.spec
@@ -1,167 +1,86 @@
 
-#
-# Note Regarding Bundled Libraries:
-#
-# The Cement package (upstream) includes a backport of pkgutil.py
-# from the standard library.  This backported library is only conditionally
-# used where 'get_data' can not be imported from 'pkgutil' (Python < 2.6).
-# For Example:
-#
-#   try:
-#       from pkgutil import get_data
-#   except ImportError:
-#       from cement.backports.pkgutil import get_data 
-#
-#
-# Per the Fedora Packaging Guidelines, it is acceptable to leave this bundled
-# software as is.  Please see:
-#
-#   https://fedoraproject.org/wiki/Packaging:Treatment_Of_Bundled_Libraries
-#
-#
-# Specifically the section on 'Conditionalized Functionality'.
-#
-
 %{!?pyver: %global pyver %(%{__python} -c "import sys ; print sys.version[:3]")}
 
-%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
-%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
+%if 0%{?fedora} > 12 || 0%{?rhel} > 6
+%global with_python3 1
+%else
+%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())")}
 %endif
 
-%global _with_doc 1
-%global _with_tests 1
-
 Name: python-cement
-Version: 0.8.18
-Release: 3%{?dist}
+Version: 1.9.10 
+Release: 1%{?dist}
 Summary: CLI Application Framework for Python
-Group: Development/Libraries    
-
-# Everything is MIT except for %%{python_sitelib}/cement/backports/pkgutil.py 
-# which is Python 
-License: MIT and Python
+Group: Applications/System 
+License: BSD 
 
 URL: http://builtoncement.org
-Source0: http://builtoncement.org/cement/0.8/source/cement-%{version}.tar.gz 
+Source0: http://builtoncement.org/cement/1.9/source/cement-%{version}.tar.gz 
 
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch: noarch
 
-BuildRequires: python2-devel, python-setuptools
-BuildRequires: python-configobj, python-jsonpickle, python-genshi
-Requires: python, python-configobj, python-jsonpickle, python-genshi
-Requires: python-setuptools
+BuildRequires: python2-devel, python-setuptools, python-nose, python-coverage
 
-%if 0%{?el5}
-BuildRequires: python-simplejson
-Requires: python-simplejson
+%if 0%{?with_python3}
+BuildRequires: python3-devel, python3-distribute, python3-nose, python3-coverage
 %endif
 
-%if 0%{?_with_tests}
-BuildRequires: python-nose, python-coverage
-%endif
-
-#Patch0: cement-0.8.18-testing.patch
-Patch1: cement-0.8.18-setuptools.patch
-Patch2: cement-0.8.18-paths.patch
-
 %description
-Cement is an advanced CLI Application Framework for Python. It promotes code
-re-use by way of a plugin system that enables plugins to be shared between any
-application built on Cement.  The MVC and overall framework design is very
-much inspired by the TurboGears2 web framework.  Its goal is to introduce a
-standard, and feature-full platform for both simple and complex command line
-applications as well as support rapid development needs without sacrificing
-quality.
-
-At a minimum, Cement configures the following features for every application:
-
-    * Multiple Configuration file parsing (default: /etc, ~/)
-    * Command line argument and option parsing
-    * Dual Console/File Logging Support
-    * Internal and External (3rd Party) Plugin support
-    * Basic "hook" support
-    * Model/View/Controller support for advanced application design
-    * Text output rendering with Genshi templates
-    * Json output rendering allows other programs to access your CLI-API
-
-%package devtools 
-Summary: Development Tools for the Cement CLI Application Framework
-Group: Development/Languages
-Requires: python-tempita, python-paste-script
-Requires: %{name} = %{version}-%{release}
-
-%description devtools 
-The Cement devtools package provides tools and libraries needed for developing 
-applications on top of the Cement CLI Application Framework.
-
-%if 0%{?_with_doc}
-%package doc
-Summary: Documentation for Cement
-Group: Documentation
-BuildRequires: python-configobj, python-genshi, python-jinja2, python-sphinx
-BuildRequires: python-jsonpickle
-
-%description doc
-This package provides the Sphinx documentation for the Cement CLI Application
-Framework for Python.
+Cement is an advanced CLI Application Framework for Python. Its goal is to 
+introduce a standard, and feature-full platform for both simple and complex 
+command line applications as well as support rapid development needs without 
+sacrificing quality.
+
+%if 0%{?with_python3}
+%package -n python3-cement
+Summary: CLI Application Framework for Python 
+Group: Applications/System
+
+%description -n python3-cement
+Cement is an advanced CLI Application Framework for Python. Its goal is to
+introduce a standard, and feature-full platform for both simple and complex
+command line applications as well as support rapid development needs without
+sacrificing quality.
 %endif
 
 %prep
 %setup -q -n cement-%{version}
-#%%patch0 -p1 -b .testing
-%patch1 -p1 -b .setuptools
-%patch2 -p1 -b .paths
 
-mv src/cement/LICENSE.psf .
+%if 0%{?with_python3}
+rm -rf %{py3dir}
+cp -a . %{py3dir}
+%endif # with_python3
 
 %build
-pushd src/cement/
-%{__python} setup.py build
-popd
-
-pushd src/cement.devtools/
-%{__python} setup.py build
-popd
+CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
 
-%if 0%{?_with_tests}
-pushd src/cement.test/
-%{__python} setup.py build
+%if 0%{?with_python3}
+pushd %{py3dir}
+CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
 popd
-%endif
-
-%if 0%{?_with_doc}
-# newer versions of sphinx create these directories
-#mkdir -p doc/build/html doc/source/_static/
-sphinx-build doc/source doc/build/html
-
-# cleanup 
-rm -rf  build/lib/tests \
-        doc/build/html/.doctrees \
-        doc/build/html/.buildinfo
-%endif
+%endif # with_python3
 
 
 %install
 rm -rf %{buildroot}
 
-pushd src/cement/
-%{__python} setup.py install -O1 \
-    --skip-build \
-    --root %{buildroot}
-popd
+%{__python} setup.py install --skip-build --root %{buildroot}
+
+%if 0%{?with_python3}
+    pushd %{py3dir}
+        %{__python3} setup.py install --skip-build --root %{buildroot} 
+    popd
+%endif
 
-pushd src/cement.devtools/
-%{__python} setup.py install -O1 \
-    --skip-build \
-    --root %{buildroot}
-popd
 
 %check
-%if 0%{?_with_tests}
-pushd src/cement.test
 %{__python} setup.py nosetests 
-popd
+
+%if 0%{?with_python3}
+    pushd %{py3dir}
+        %{__python3} setup.py nosetests 
+    popd
 %endif
 
 %clean
@@ -170,26 +89,20 @@ rm -rf %{buildroot}
 
 %files
 %defattr(-,root,root,-)
-%doc README LICENSE LICENSE.psf ChangeLog
-%dir %{python_sitelib}/cement
-%{python_sitelib}/cement/__init__.py*
-%{python_sitelib}/cement/core/
-%{python_sitelib}/cement/backports/
-%{python_sitelib}/cement-%{version}-py%{pyver}.egg-info/
-
-%files devtools 
-%defattr(-,root,root,-)
-%doc src/cement.devtools/README src/cement.devtools/LICENSE
-%{python_sitelib}/cementdevtools/
-%{python_sitelib}/cement.devtools-%{version}-py%{pyver}.egg-info/
+%doc README.md LICENSE ChangeLog docs
+%{python_sitelib}/cement/
 
-%if 0%{?_with_doc}
-%files doc
-%defattr(-,root,root,-)
-%doc doc/build/html
+%if 0%{?with_python3}
+%doc README.md LICENSE ChangeLog docs
+%{python3_sitelib}/cement/
 %endif
 
 %changelog
+* Tue Jul 03 2012 BJ Dierkes <wdierkes at rackspace.com> - 1.9.10-1
+- Latest sources from upstream.  
+- Updated spec for new source (removed devtools subpackage).
+- No longer build docs, but rather just toss them in %%doc 
+
 * Sat Jan 14 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 0.8.18-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 
diff --git a/sources b/sources
index a11206e..5680149 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-11ca3813e9fdb5f83c87abd5fe710595  cement-0.8.18.tar.gz
+5c6061be35d189c34d2217f393bf166a  cement-1.9.10.tar.gz


More information about the scm-commits mailing list