diff options
author | Robin Lee <robinlee.sysu@gmail.com> | 2010-07-10 13:53:58 +0800 |
---|---|---|
committer | Robin Lee <robinlee.sysu@gmail.com> | 2010-07-10 13:53:58 +0800 |
commit | 0d097ef27b35f0929e2f9e4473adfe696b7e7224 (patch) | |
tree | fd8c71e97c762bb908f57aa7d630c364cc98a189 /grokproject | |
parent | 4b37e969e345418d3e57447562cd7826423cf949 (diff) | |
download | zope-rpm-0d097ef27b35f0929e2f9e4473adfe696b7e7224.tar.gz zope-rpm-0d097ef27b35f0929e2f9e4473adfe696b7e7224.tar.xz zope-rpm-0d097ef27b35f0929e2f9e4473adfe696b7e7224.zip |
python-grok 1.1.1-1, grokproject 2.0.1-1 and all their dependencies
Diffstat (limited to 'grokproject')
-rw-r--r-- | grokproject/F-13/grokproject-2.0.1-work-without-buildout.patch | 501 | ||||
-rw-r--r-- | grokproject/F-13/grokproject.spec | 69 |
2 files changed, 570 insertions, 0 deletions
diff --git a/grokproject/F-13/grokproject-2.0.1-work-without-buildout.patch b/grokproject/F-13/grokproject-2.0.1-work-without-buildout.patch new file mode 100644 index 0000000..e5b85fd --- /dev/null +++ b/grokproject/F-13/grokproject-2.0.1-work-without-buildout.patch @@ -0,0 +1,501 @@ +diff -Naru grokproject-2.0.1/grokproject/template/bin/buildout_tmpl grokproject-2.0.1.new/grokproject/template/bin/buildout_tmpl +--- grokproject-2.0.1/grokproject/template/bin/buildout_tmpl 1970-01-01 08:00:00.000000000 +0800 ++++ grokproject-2.0.1.new/grokproject/template/bin/buildout_tmpl 2010-07-09 18:19:34.535708690 +0800 +@@ -0,0 +1,6 @@ ++#!/usr/bin/env python ++ ++import zc.buildout.buildout ++ ++if __name__ == '__main__': ++ zc.buildout.buildout.main() +diff -Naru grokproject-2.0.1/grokproject/template/bin/i18ncompile_tmpl grokproject-2.0.1.new/grokproject/template/bin/i18ncompile_tmpl +--- grokproject-2.0.1/grokproject/template/bin/i18ncompile_tmpl 1970-01-01 08:00:00.000000000 +0800 ++++ grokproject-2.0.1.new/grokproject/template/bin/i18ncompile_tmpl 2010-07-09 19:06:35.343485835 +0800 +@@ -0,0 +1,11 @@ ++#!/usr/bin/env python ++ ++import sys ++sys.path[0:0] = [ ++ '${package_directory}/src', ++ ] ++ ++import z3c.recipe.i18n.i18ncompile ++ ++if __name__ == '__main__': ++ z3c.recipe.i18n.i18ncompile.main(['i18ncompile', '-l', '${package_directory}/src/${package}/locales']) +diff -Naru grokproject-2.0.1/grokproject/template/bin/i18nextract_tmpl grokproject-2.0.1.new/grokproject/template/bin/i18nextract_tmpl +--- grokproject-2.0.1/grokproject/template/bin/i18nextract_tmpl 1970-01-01 08:00:00.000000000 +0800 ++++ grokproject-2.0.1.new/grokproject/template/bin/i18nextract_tmpl 2010-07-09 19:12:58.280483462 +0800 +@@ -0,0 +1,17 @@ ++#!/usr/bin/env python ++ ++import sys ++sys.path[0:0] = [ ++ '${package_directory}/src', ++ ] ++ ++import os ++sys.argv[0] = os.path.abspath(sys.argv[0]) ++from distutils.sysconfig import get_python_lib ++os.chdir(os.path.join(get_python_lib() + '/z3c/recipe/i18n')) ++ ++ ++import z3c.recipe.i18n.i18nextract ++ ++if __name__ == '__main__': ++ z3c.recipe.i18n.i18nextract.main(['i18nextract', '-d', '${package}', '-s', '${package_directory}/parts/i18n/configure.zcml', '-o', '${package_directory}/src/${package}/locales', '-p', '${package}']) +diff -Naru grokproject-2.0.1/grokproject/template/bin/i18nmergeall_tmpl grokproject-2.0.1.new/grokproject/template/bin/i18nmergeall_tmpl +--- grokproject-2.0.1/grokproject/template/bin/i18nmergeall_tmpl 1970-01-01 08:00:00.000000000 +0800 ++++ grokproject-2.0.1.new/grokproject/template/bin/i18nmergeall_tmpl 2010-07-09 19:13:52.852484485 +0800 +@@ -0,0 +1,11 @@ ++#!/usr/bin/env python ++ ++import sys ++sys.path[0:0] = [ ++ '${package_directory}/src', ++ ] ++ ++import z3c.recipe.i18n.i18nmergeall ++ ++if __name__ == '__main__': ++ z3c.recipe.i18n.i18nmergeall.main(['i18nmergeall', '-l', '${package_directory}/src/${package}/locales']) +diff -Naru grokproject-2.0.1/grokproject/template/bin/i18nstats_tmpl grokproject-2.0.1.new/grokproject/template/bin/i18nstats_tmpl +--- grokproject-2.0.1/grokproject/template/bin/i18nstats_tmpl 1970-01-01 08:00:00.000000000 +0800 ++++ grokproject-2.0.1.new/grokproject/template/bin/i18nstats_tmpl 2010-07-09 19:14:30.422483255 +0800 +@@ -0,0 +1,11 @@ ++#!/usr/bin/env python ++ ++import sys ++sys.path[0:0] = [ ++ '${package_directory}/src', ++ ] ++ ++import z3c.recipe.i18n.i18nstats ++ ++if __name__ == '__main__': ++ z3c.recipe.i18n.i18nstats.main(['i18nstats', '-l', '${package_directory}/src/${package}/locales']) +diff -Naru grokproject-2.0.1/grokproject/template/bin/interactive_debugger_tmpl grokproject-2.0.1.new/grokproject/template/bin/interactive_debugger_tmpl +--- grokproject-2.0.1/grokproject/template/bin/interactive_debugger_tmpl 1970-01-01 08:00:00.000000000 +0800 ++++ grokproject-2.0.1.new/grokproject/template/bin/interactive_debugger_tmpl 2010-07-09 19:15:00.335483401 +0800 +@@ -0,0 +1,15 @@ ++#!/usr/bin/env python ++ ++import sys ++sys.path[0:0] = [ ++ '${package_directory}/src', ++ ] ++ ++import os ++sys.argv[0] = os.path.abspath(sys.argv[0]) ++ ++ ++import grokcore.startup.startup ++ ++if __name__ == '__main__': ++ grokcore.startup.startup.interactive_debug_prompt(zope_conf="${package_directory}/parts/etc/zope.conf") +diff -Naru grokproject-2.0.1/grokproject/template/bin/paster_tmpl grokproject-2.0.1.new/grokproject/template/bin/paster_tmpl +--- grokproject-2.0.1/grokproject/template/bin/paster_tmpl 1970-01-01 08:00:00.000000000 +0800 ++++ grokproject-2.0.1.new/grokproject/template/bin/paster_tmpl 2010-07-09 19:15:14.306483840 +0800 +@@ -0,0 +1,11 @@ ++#!/usr/bin/env python ++ ++import sys ++sys.path[0:0] = [ ++ '${package_directory}/src', ++ ] ++ ++import paste.script.command ++ ++if __name__ == '__main__': ++ paste.script.command.run() +diff -Naru grokproject-2.0.1/grokproject/template/bin/python-console_tmpl grokproject-2.0.1.new/grokproject/template/bin/python-console_tmpl +--- grokproject-2.0.1/grokproject/template/bin/python-console_tmpl 1970-01-01 08:00:00.000000000 +0800 ++++ grokproject-2.0.1.new/grokproject/template/bin/python-console_tmpl 2010-07-09 19:15:36.011485452 +0800 +@@ -0,0 +1,32 @@ ++#!/usr/bin/env python ++ ++import sys ++ ++sys.path[0:0] = [ ++ '${package_directory}/src', ++ ] ++ ++_interactive = True ++if len(sys.argv) > 1: ++ _options, _args = __import__("getopt").getopt(sys.argv[1:], 'ic:m:') ++ _interactive = False ++ for (_opt, _val) in _options: ++ if _opt == '-i': ++ _interactive = True ++ elif _opt == '-c': ++ exec _val ++ elif _opt == '-m': ++ sys.argv[1:] = _args ++ _args = [] ++ __import__("runpy").run_module( ++ _val, {}, "__main__", alter_sys=True) ++ ++ if _args: ++ sys.argv[:] = _args ++ __file__ = _args[0] ++ del _options, _args ++ execfile(__file__) ++ ++if _interactive: ++ del _interactive ++ __import__("code").interact(banner="", local=globals()) +diff -Naru grokproject-2.0.1/grokproject/template/bin/test_tmpl grokproject-2.0.1.new/grokproject/template/bin/test_tmpl +--- grokproject-2.0.1/grokproject/template/bin/test_tmpl 1970-01-01 08:00:00.000000000 +0800 ++++ grokproject-2.0.1.new/grokproject/template/bin/test_tmpl 2010-07-09 22:24:50.419609459 +0800 +@@ -0,0 +1,18 @@ ++#!/usr/bin/env python ++ ++import sys ++sys.path[0:0] = [ ++ '${package_directory}/src', ++ ] ++ ++import os ++sys.argv[0] = os.path.abspath(sys.argv[0]) ++os.chdir('${package_directory}/parts/test') ++ ++ ++import zope.testing.testrunner ++ ++if __name__ == '__main__': ++ zope.testing.testrunner.run((['--tests-pattern', '^f?tests$$', '-v']) + [ ++ '--test-path', '${package_directory}/src', ++ ]) +diff -Naru grokproject-2.0.1/grokproject/template/bin/zpasswd_tmpl grokproject-2.0.1.new/grokproject/template/bin/zpasswd_tmpl +--- grokproject-2.0.1/grokproject/template/bin/zpasswd_tmpl 1970-01-01 08:00:00.000000000 +0800 ++++ grokproject-2.0.1.new/grokproject/template/bin/zpasswd_tmpl 2010-07-09 19:16:47.964483909 +0800 +@@ -0,0 +1,15 @@ ++#!/usr/bin/env python ++ ++import sys ++sys.path[0:0] = [ ++ '${package_directory}/src', ++ ] ++ ++import os ++sys.argv[0] = os.path.abspath(sys.argv[0]) ++ ++ ++import zope.password.zpasswd ++ ++if __name__ == '__main__': ++ zope.password.zpasswd.main() +diff -Naru grokproject-2.0.1/grokproject/template/parts/etc/debug.ini_tmpl grokproject-2.0.1.new/grokproject/template/parts/etc/debug.ini_tmpl +--- grokproject-2.0.1/grokproject/template/parts/etc/debug.ini_tmpl 1970-01-01 08:00:00.000000000 +0800 ++++ grokproject-2.0.1.new/grokproject/template/parts/etc/debug.ini_tmpl 2010-07-09 20:48:45.813208002 +0800 +@@ -0,0 +1,44 @@ ++[DEFAULT] ++zope_conf = %(here)s/zope.conf ++ ++[server:main] ++use = egg:Paste#http ++host = 127.0.0.1 ++port = 8080 ++ ++[pipeline:main] ++pipeline = accesslogging evalexception grok ++ ++[filter:accesslogging] ++use = egg:Paste#translogger ++ ++[filter:evalexception] ++use = egg:z3c.evalexception#ajax ++ ++[app:grok] ++use = egg:grokcore.startup#debug ++exempt-exceptions = zope.security.interfaces.IUnauthorized ++ ++# Logging configuration ++ ++[loggers] ++keys = root ++ ++[logger_root] ++level = INFO ++handlers = console ++ ++[handlers] ++keys = console ++ ++[handler_console] ++class = StreamHandler ++args = (sys.stderr,) ++level = NOTSET ++formatter = generic ++ ++[formatters] ++keys = generic ++ ++[formatter_generic] ++format = %(asctime)s %(levelname)s [%(name)s] %(message)s +diff -Naru grokproject-2.0.1/grokproject/template/parts/etc/deploy.ini_tmpl grokproject-2.0.1.new/grokproject/template/parts/etc/deploy.ini_tmpl +--- grokproject-2.0.1/grokproject/template/parts/etc/deploy.ini_tmpl 1970-01-01 08:00:00.000000000 +0800 ++++ grokproject-2.0.1.new/grokproject/template/parts/etc/deploy.ini_tmpl 2010-07-09 20:51:04.421208097 +0800 +@@ -0,0 +1,63 @@ ++[DEFAULT] ++zope_conf = %(here)s/zope.conf ++ ++[server:main] ++use = egg:Paste#http ++host = 127.0.0.1 ++port = 8080 ++ ++[pipeline:main] ++pipeline = gzip grok ++ ++[app:grok] ++use = egg:grokcore.startup ++ ++[filter:gzip] ++use = egg:Paste#gzip ++ ++# Logging configuration ++ ++[loggers] ++keys = root, accesslogging, grok ++ ++[logger_root] ++level = INFO ++handlers = eventlog ++ ++[logger_grok] ++# Set level to WARNING or below if you want to see ++# grok template registry warnings on commandline. ++level = ERROR ++handlers = eventlog ++qualname = grok ++propagate = 0 ++ ++[logger_accesslogging] ++level = INFO ++handlers = accesslog ++qualname = wsgi ++propagate = 0 ++ ++[handlers] ++keys = eventlog, accesslog ++ ++[handler_eventlog] ++class = FileHandler ++args = (os.path.join(r'${package_directory}', 'log', 'event.log'), 'a') ++level = NOTSET ++formatter = generic ++ ++[handler_accesslog] ++class = FileHandler ++args = (os.path.join(r'${package_directory}', 'log', 'accesslog.log'), 'a') ++level = INFO ++formatter = accesslog ++ ++[formatters] ++keys = generic, accesslog ++ ++[formatter_generic] ++format = %(asctime)s %(levelname)s [%(name)s] %(message)s ++ ++[formatter_accesslog] ++format = %(message)s +diff -Naru grokproject-2.0.1/grokproject/template/parts/etc/site.zcml_tmpl grokproject-2.0.1.new/grokproject/template/parts/etc/site.zcml_tmpl +--- grokproject-2.0.1/grokproject/template/parts/etc/site.zcml_tmpl 1970-01-01 08:00:00.000000000 +0800 ++++ grokproject-2.0.1.new/grokproject/template/parts/etc/site.zcml_tmpl 2010-07-09 22:33:52.329609115 +0800 +@@ -0,0 +1,36 @@ ++<configure xmlns="http://namespaces.zope.org/zope" ++ i18n_domain="${package}"> ++ ++ <include package="${package}" /> ++ ++ <configure i18n_domain="${package}"> ++ ++ <unauthenticatedPrincipal id="zope.anybody" ++ title="Unauthenticated User" /> ++ <unauthenticatedGroup id="zope.Anybody" ++ title="Unauthenticated Users" /> ++ <authenticatedGroup id="zope.Authenticated" ++ title="Authenticated Users" /> ++ <everybodyGroup id="zope.Everybody" ++ title="All Users" /> ++ <principal id="zope.manager" ++ title="Manager" ++ login="cheese" ++ password_manager="SSHA" ++ password="{SSHA}l9E8o4oTjLPlpuQADQkkwgnKaK_D_726" ++ /> ++ ++ <!-- Replace the following directive if you do not want ++ public access --> ++ <grant permission="zope.View" ++ principal="zope.Everybody" /> ++ <grant permission="zope.app.dublincore.view" ++ principal="zope.Everybody" /> ++ ++ <role id="zope.Manager" title="Site Manager" /> ++ <role id="zope.Member" title="Site Member" /> ++ <grantAll role="zope.Manager" /> ++ <grant role="zope.Manager" ++ principal="zope.manager" /> ++ </configure> ++</configure> +diff -Naru grokproject-2.0.1/grokproject/template/parts/etc/zope.conf_tmpl grokproject-2.0.1.new/grokproject/template/parts/etc/zope.conf_tmpl +--- grokproject-2.0.1/grokproject/template/parts/etc/zope.conf_tmpl 1970-01-01 08:00:00.000000000 +0800 ++++ grokproject-2.0.1.new/grokproject/template/parts/etc/zope.conf_tmpl 2010-07-09 20:54:36.240207655 +0800 +@@ -0,0 +1,40 @@ ++# Identify the component configuration used to define the site: ++site-definition ${package_directory}/parts/etc/site.zcml ++ ++<zodb> ++ # Standard blob storage ++ <blobstorage> ++ blob-dir ${package_directory}/var/blobstorage ++ <filestorage> ++ path ${package_directory}/var/filestorage/Data.fs ++ </filestorage> ++ </blobstorage> ++ ++# Uncomment this if you want a blob-less standard file storage instead: ++# <filestorage> ++# path ${package_directory}/var/filestorage ++# </filestorage> ++ ++# Uncomment this if you want to connect to a ZEO server instead: ++# <zeoclient> ++# server localhost:8100 ++# storage 1 ++# # ZEO client cache, in bytes ++# cache-size 20MB ++# # Uncomment to have a persistent disk cache ++# #client zeo1 ++# </zeoclient> ++ ++</zodb> ++ ++<eventlog> ++# logfiles are setup in the debug.ini and deploy.ini files. ++</eventlog> ++ ++# Comment this line to disable developer mode. This should be done in ++# production ++devmode on ++ ++# Extra configuration lines can be added to zope_conf's extra option. Put for ++# instance productconf sections in here. ++ +diff -Naru grokproject-2.0.1/grokproject/template/parts/i18n/configure.zcml_tmpl grokproject-2.0.1.new/grokproject/template/parts/i18n/configure.zcml_tmpl +--- grokproject-2.0.1/grokproject/template/parts/i18n/configure.zcml_tmpl 1970-01-01 08:00:00.000000000 +0800 ++++ grokproject-2.0.1.new/grokproject/template/parts/i18n/configure.zcml_tmpl 2010-07-09 20:48:45.785481360 +0800 +@@ -0,0 +1,7 @@ ++<configure xmlns='http://namespaces.zope.org/zope' ++ xmlns:meta="http://namespaces.zope.org/meta" ++ > ++ ++ ++ ++</configure> +diff -Naru grokproject-2.0.1/grokproject/templates.py grokproject-2.0.1.new/grokproject/templates.py +--- grokproject-2.0.1/grokproject/templates.py 2010-05-31 04:11:48.000000000 +0800 ++++ grokproject-2.0.1.new/grokproject/templates.py 2010-07-10 12:15:20.531392557 +0800 +@@ -11,6 +11,10 @@ + from grokproject.utils import get_ssha_encoded_string + from grokproject.utils import create_buildout_default_file + from grokproject.utils import exist_buildout_default_file ++# three more needed by the Fedora patch ++from pkg_resources import get_distribution ++from shutil import rmtree ++import stat + + GROK_RELEASE_URL_DEFAULT = 'http://grok.zope.org/releaseinfo/' + +@@ -29,8 +33,9 @@ + default='false', should_ask=False, + getter=get_boolean_value_for_option), + ask_var('run_buildout', +- "After creating the project area, run the buildout.", +- default=True, should_ask=False, ++ "After creating the project area, run the buildout." ++ " (The default value is True upstream but False in Fedora)", ++ default=False, should_ask=False, + getter=get_boolean_value_for_option), + ask_var('eggs_dir', + 'Location where zc.buildout will look for and place packages', +@@ -73,10 +78,15 @@ + version = vars.get('grokversion') + if version is None: + print "Determining current grok version..." +- # if no version was specified, we look up the current version first +- current_info_url = urlparse.urljoin(grok_release_url, 'current') +- version = self.download(current_info_url).strip().replace( +- 'grok-', '').replace('.cfg', '') ++ if vars['run_buildout']: ++ # if no version was specified, we look up the current version ++ # first ++ current_info_url = urlparse.urljoin(grok_release_url, ++ 'current') ++ version = self.download(current_info_url).strip().replace( ++ 'grok-', '').replace('.cfg', '') ++ else: ++ version = get_distribution('grok').version + + if not grok_release_url.endswith('/'): + grok_release_url += '/' +@@ -124,9 +134,22 @@ + return contents + + def post(self, command, output_dir, vars): +- if not vars['run_buildout']: +- return + original_dir = os.getcwd() + os.chdir(vars['project']) +- run_buildout(command.verbose) ++ if not vars['run_buildout']: ++ print "Making make scripts executable properly..." ++ os.chdir('bin') ++ for f in os.listdir('.'): ++ mode = stat.S_IMODE(os.stat(f).st_mode) ++ if mode & stat.S_IRUSR: ++ mode = mode | stat.S_IXUSR ++ if mode & stat.S_IRGRP: ++ mode = mode | stat.S_IXGRP ++ if mode & stat.S_IROTH: ++ mode = mode | stat.S_IXOTH ++ os.chmod(f, mode) ++ else: ++ rmtree('bin') ++ rmtree('parts') ++ run_buildout(command.verbose) + os.chdir(original_dir) +diff -Naru grokproject-2.0.1/grokproject.egg-info/SOURCES.txt grokproject-2.0.1.new/grokproject.egg-info/SOURCES.txt +--- grokproject-2.0.1/grokproject.egg-info/SOURCES.txt 2010-07-09 22:13:44.930613198 +0800 ++++ grokproject-2.0.1.new/grokproject.egg-info/SOURCES.txt 2010-07-09 22:12:47.046608239 +0800 +@@ -22,6 +22,16 @@ + grokproject.egg-info/not-zip-safe + grokproject.egg-info/requires.txt + grokproject.egg-info/top_level.txt ++grokproject/template/bin/buildout_tmpl ++grokproject/template/bin/i18nextract_tmpl ++grokproject/template/bin/interactive_debugger_tmpl ++grokproject/template/bin/zpasswd_tmpl ++grokproject/template/bin/i18ncompile_tmpl ++grokproject/template/bin/python-console_tmpl ++grokproject/template/bin/paster_tmpl ++grokproject/template/bin/i18nmergeall_tmpl ++grokproject/template/bin/i18nstats_tmpl ++grokproject/template/bin/test_tmpl + grokproject/template/bootstrap.py + grokproject/template/buildout.cfg_tmpl + grokproject/template/setup.py_tmpl +@@ -32,6 +42,11 @@ + grokproject/template/etc/zope.conf.in_tmpl + grokproject/template/extends-cache/.directory + grokproject/template/log/.directory ++grokproject/template/parts/i18n/configure.zcml_tmpl ++grokproject/template/parts/etc/site.zcml_tmpl ++grokproject/template/parts/etc/debug.ini_tmpl ++grokproject/template/parts/etc/deploy.ini_tmpl ++grokproject/template/parts/etc/zope.conf_tmpl + grokproject/template/src/+package+/__init__.py + grokproject/template/src/+package+/app.py_tmpl + grokproject/template/src/+package+/app.txt_tmpl diff --git a/grokproject/F-13/grokproject.spec b/grokproject/F-13/grokproject.spec new file mode 100644 index 0000000..867e421 --- /dev/null +++ b/grokproject/F-13/grokproject.spec @@ -0,0 +1,69 @@ +%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())")} +%endif +%global modname grokproject + +Summary: Script that sets up a grok project directory +Name: grokproject +Version: 2.0.1 +Release: 1%{?dist} +Source0: http://pypi.python.org/packages/source/g/%{modname}/%{modname}-%{version}.tar.gz +# Patch to make it work without running buildout +Patch0: grokproject-2.0.1-work-without-buildout.patch +License: ZPLv2.1 +Group: Development/Libraries +BuildArch: noarch +URL: https://launchpad.net/grok + +BuildRequires: python2-devel +BuildRequires: python-setuptools +Requires: python-paste-script > 1.6 +# not listed by upstream +Requires: python-setuptools +# from the template +Requires: python-setuptools +Requires: python-grok +Requires: python-grokui-admin +Requires: python-z3c-testsetup +Requires: python-grokcore-startup +Requires: python-z3c-recipe-i18n + +%description +grokproject provides an easy way to get started with a Grok application. + +%prep +%setup -q -n %{modname}-%{version} +%patch0 -p1 +chmod a+x grokproject/template/bin/* + +%build +python setup.py build + +%install +rm -rf $RPM_BUILD_ROOT +python setup.py install --root=$RPM_BUILD_ROOT +# make some directories in the template +mkdir -p $RPM_BUILD_ROOT%{python_sitelib}/%{modname}/template/{parts/test,var/{filestorage,blobstoage}} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc LICENSE.txt CHANGES.txt upgrading.txt README-shorttests.txt README.txt tests_alternative_release_url.txt TODO.txt tests_paste.txt +%{_bindir}/%{name} +%{python_sitelib}/%{modname}/ +# exclude some empty files +%exclude %{python_sitelib}/%{modname}/template/log/.directory +%exclude %{python_sitelib}/%{modname}/template/extends-cache/.directory +# exclude byte-compiled files in the template +%exclude %{python_sitelib}/%{modname}/template/bootstrap.pyo +%exclude %{python_sitelib}/%{modname}/template/bootstrap.pyc +%exclude %{python_sitelib}/%{modname}/template/src/+package+/__init__.pyo +%exclude %{python_sitelib}/%{modname}/template/src/+package+/__init__.pyc +%{python_sitelib}/%{modname}-*.egg-info + + +%changelog +* Sun Jul 4 2010 Robin Lee <robinlee.sysu@gmail.com> - 2.0.1-1 +- Initial packaging |