rpms/TurboGears/devel TurboGears-0.8a5-optim.patch, NONE, 1.1 TurboGears-0.8a5-setuptools.patch, NONE, 1.1 TurboGears.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Ignacio Vazquez-Abrams (ivazquez) fedora-extras-commits at redhat.com
Tue Feb 21 07:16:42 UTC 2006


Author: ivazquez

Update of /cvs/extras/rpms/TurboGears/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv20839/devel

Modified Files:
	.cvsignore sources 
Added Files:
	TurboGears-0.8a5-optim.patch TurboGears-0.8a5-setuptools.patch 
	TurboGears.spec 
Log Message:
auto-import TurboGears-0.8a5-1 on branch devel from TurboGears-0.8a5-1.src.rpm

TurboGears-0.8a5-optim.patch:

--- NEW FILE TurboGears-0.8a5-optim.patch ---
--- TurboGears-0.8a5/turbogears/command/quickstart.py.optim	2005-12-24 06:08:20.000000000 -0500
+++ TurboGears-0.8a5/turbogears/command/quickstart.py	2005-12-24 06:10:08.000000000 -0500
@@ -87,7 +87,7 @@
             newpath = newpath.replace("ProjectName", safename)
             for f in files:
                 if (root == basefiles and f.startswith("__init__.py")) \
-                   or f.endswith(".pyc"):
+                   or f.endswith(".pyc") or f.endswith(".pyo"):
                     continue
                 newf = f
                 if f.startswith("project-start.py"):

TurboGears-0.8a5-setuptools.patch:

--- NEW FILE TurboGears-0.8a5-setuptools.patch ---
--- TurboGears-0.8a5/setup.py.setuptools	2005-12-02 12:27:25.000000000 -0500
+++ TurboGears-0.8a5/setup.py	2006-02-18 03:01:36.000000000 -0500
@@ -33,11 +33,7 @@
 TurboGears is easy to use for a wide range of web applications.""",
     url="http://www.turbogears.org",
     zip_safe=False,
-    install_requires = ["kid >= 0.8",
-        "CherryPy >= 2.1.0, != 2.1.0-rc2, != 2.1.0-rc1, != 2.1.0-beta",
-        "SQLObject >= 0.7", "json-py >= 3.2.1",
-        "elementtree >= 1.2.6",
-        "cElementTree >= 1.0.2", "FormEncode >= 0.4",
+    install_requires = ["FormEncode >= 0.4",
         "setuptools >= 0.6a8", "TestGears >= 0.2"],
     packages=find_packages(),
     package_data = find_package_data(where='turbogears', 
--- TurboGears-0.8a5/docgen.py.setuptools	2006-02-18 03:05:16.000000000 -0500
+++ TurboGears-0.8a5/docgen.py	2006-02-18 03:05:35.000000000 -0500
@@ -4,7 +4,6 @@
 import time
 from setuptools import Command
 import pkg_resources
-pkg_resources.require("Kid >= 0.6.4")
 import kid
 import re
 from distutils import log
@@ -238,4 +237,4 @@
         outfile.write(masterdoc)
         outfile.close()
         self.currentfiles.add(outfn)
-        
\ No newline at end of file
+        


--- NEW FILE TurboGears.spec ---
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%{!?pyver: %define pyver %(%{__python} -c "import sys ; print sys.version[:3]")}

Name:           TurboGears
Version:        0.8a5
Release:        1%{?dist}
Summary:        Back-to-front web development in Python

Group:          Development/Languages
License:        MIT
URL:            http://www.turbogears.org/
Source0:        http://www.turbogears.org/download/eggs/%{name}-%{version}.tar.gz
Patch:          TurboGears-0.8a5-setuptools.patch
Patch1:         TurboGears-0.8a5-optim.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildArch:      noarch
BuildRequires:  python-devel python-setuptools >= 0.6a8 
BuildRequires:  python-kid >= 0.8 python-TestGears >= 0.2
BuildRequires:  python-formencode >= 0.4 python-cherrypy >= 2.1.0
BuildRequires:  python-sqlobject >= 0.7
BuildRequires:  python-json >= 3.3 python-elementtree >= 1.2.6
Requires:       python-abi = %{pyver}
Requires:       python-kid >= 0.8  python-cherrypy >= 2.1.0
Requires:       python-sqlobject >= 0.7 python-formencode >= 0.4
Requires:       python-json >= 3.3 python-elementtree >= 1.2.6
Requires:       python-setuptools >= 0.6a8 

%description
TurboGears takes the best components available and combines them into one
easy-to-install, documented whole. TurboGears includes parts that join the
pieces together and make them work together seamlessly, but doesn't obscure
each included project. This allows you to take advantage of all existing
documentation, articles, mailing lists and other resources that have built up
in the communities for each project.

%prep
%setup -q
%patch -p1 -b .setuptools
%patch1 -p1 -b .optim
find docs -type f -exec chmod a-x {} \; -exec sed -i 's/\r//g' {} \;

%build
find \( -name \*.setuptools -o -name \*.optim \) -exec rm {} \;
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build

%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT --single-version-externally-managed
 
%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc CHANGELOG.txt docs LICENSE.txt
%{_bindir}/tg-admin
%{python_sitelib}/%{name}-%{version}-py%{pyver}.egg-info
%{python_sitelib}/turbogears

%changelog
* Sat Feb 18 2006 Ignacio Vazquez-Abrams <ivazquez at ivazquez.net> 0.8a5-1
- Initial RPM release


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/TurboGears/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	21 Feb 2006 07:06:12 -0000	1.1
+++ .cvsignore	21 Feb 2006 07:16:42 -0000	1.2
@@ -0,0 +1 @@
+TurboGears-0.8a5.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/TurboGears/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	21 Feb 2006 07:06:12 -0000	1.1
+++ sources	21 Feb 2006 07:16:42 -0000	1.2
@@ -0,0 +1 @@
+ff1c1737fac46eb7ec931c05c461bc68  TurboGears-0.8a5.tar.gz




More information about the scm-commits mailing list