[python-tilecache/f13/master] Inital import of python-tilecache

Viji V Nair viji at fedoraproject.org
Thu Nov 11 17:49:23 UTC 2010


commit 706d911766084e25a59cdaf97980acb1b64c6122
Author: Viji V Nair <viji at viji.novatelesec.com>
Date:   Thu Nov 11 23:23:57 2010 +0530

    Inital import of python-tilecache

 .gitignore                  |    1 +
 python-tilecache.spec       |   89 +++++++++++++++++++++++++++++++++++++++++++
 sources                     |    1 +
 tilecache-2.11-fedora.patch |   24 +++++++++++
 4 files changed, 115 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..dbc6dfe 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/tilecache-2.11.zip
diff --git a/python-tilecache.spec b/python-tilecache.spec
new file mode 100644
index 0000000..b9e2d98
--- /dev/null
+++ b/python-tilecache.spec
@@ -0,0 +1,89 @@
+Name:			python-tilecache
+Version:		2.11
+Release:		5%{?dist}
+Summary:		A web map tile caching system
+Group:			Development/Languages
+# TileCache/Caches/S3.py is MIT-licensed"
+License:		BSD and MIT
+URL:			http://tilecache.org/
+Source0:		http://tilecache.org/tilecache-%{version}.zip
+BuildRequires:		python-setuptools
+BuildArch:		noarch
+Patch0:			tilecache-2.11-fedora.patch
+
+%description
+TileCache is a BSD licensed tile caching mechanism. The goal is 
+to make it easy to set up a WMS or TMS front-end to any back-end 
+data services you might be interested in, using a pluggable 
+caching and rendering mechanism.
+
+TileCache was developed by MetaCarta Labs as a companion to OpenLayers. 
+This TileCache client supports multiple different rendering back-ends 
+(Mapserver, Mapnik etc). Each rendering back-end also supports the 
+ability to draw 'meta-tiles', where a large tile is rendered, and then 
+chopped into smaller tiles using the Python Imaging library.
+
+%prep
+%setup -q -n tilecache-%{version}
+%patch0 -p1
+chmod -x docs/Example.py.txt
+
+%build
+%{__python} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
+cp -p tilecache.cfg $RPM_BUILD_ROOT%{python_sitelib}/TileCache/
+chmod 755  $RPM_BUILD_ROOT%{python_sitelib}/TileCache/Service.py
+chmod 755  $RPM_BUILD_ROOT%{python_sitelib}/TileCache/Client.py
+
+%check
+#make the just-installed TileCache module visible to the test suite
+export PYTHONPATH=$PYTHONPATH:$RPM_BUILD_ROOT%{python_sitelib}
+
+# run test suite. this does not return an error value so we need
+# to save the output and grep it for the magic "OK" string
+python tests/tests.py 2>&1 | tee testlog.txt
+tail -n 2 testlog.txt | grep "^OK"
+
+%files
+%defattr(-,root,root,-)
+%doc docs/* tests
+%{python_sitelib}/*
+%{_bindir}/tilecache.cgi
+%{_bindir}/tilecache.fcgi
+%{_bindir}/tilecache_clean.py
+%{_bindir}/tilecache_http_server.py
+%{_bindir}/tilecache_install_config.py
+%{_bindir}/tilecache_seed.py
+%dir %{_sysconfdir}/TileCache
+%config(noreplace) %{_sysconfdir}/TileCache/tilecache.cfg
+%config(noreplace) %{_sysconfdir}/TileCache/dev.ini
+
+%changelog
+* Thu Nov 11 2010 Viji Nair <viji [AT] fedoraproject DOT org> - 2.11-5
+- Added test suite
+- Changed the license to "BSD and MIT"
+- Updated the URL and Source
+- Removed traget RHEL 6
+
+* Mon Nov 8 2010 Viji Nair <viji [AT] fedoraproject DOT org> - 2.11-4
+- Added newline between the changelog entries.
+- Removed execute permission of Example.py.txt as it is coming under the documenation.
+- Fixed the macro issue in changelog by adding double-comment.
+- Moved to %%dir macro for sysconfigdir
+
+* Sun Nov 7 2010 Viji Nair <viji [AT] fedoraproject DOT org> - 2.11-3
+- Fixed the permission issues.
+- Proper macros for documentation.
+
+* Sun Nov 5 2010 Viji Nair <viji [AT] fedoraproject DOT org> - 2.11-2
+- Removed CFLAGS, noarch package.
+- Added noreplace option for files in sysconfigdir.
+- Removed BuidRoot and %%clean, targeted systems are Fedora 13 and above.
+- Timestamp fix.
+- Minor fixes ralted to patch and changelog entries.
+
+* Tue Nov 2 2010 Viji Nair <viji [AT] fedoraproject DOT org> - 2.11-1
+- Initial build
diff --git a/sources b/sources
index e69de29..6a48a74 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+0299f95cb07e05a94fca3dfbab24a0aa  tilecache-2.11.zip
diff --git a/tilecache-2.11-fedora.patch b/tilecache-2.11-fedora.patch
new file mode 100644
index 0000000..19506f1
--- /dev/null
+++ b/tilecache-2.11-fedora.patch
@@ -0,0 +1,24 @@
+diff -uNrp tilecache-2.11.orig/setup.py tilecache-2.11/setup.py
+--- tilecache-2.11.orig/setup.py	2010-10-15 16:27:57.000000000 +0530
++++ tilecache-2.11/setup.py	2010-11-04 20:46:31.060389802 +0530
+@@ -29,7 +29,7 @@ if "--debian" in sys.argv:
+    extra['data_files']=[('/etc', ['tilecache.cfg']),('.',['dev.ini'])]
+    sys.argv.remove("--debian")
+ else:
+-   extra['data_files']=[('TileCache', ['tilecache.cfg']),('.',['dev.ini'])]
++   extra['data_files']=[('/etc/TileCache', ['tilecache.cfg']),('/etc/TileCache',['dev.ini'])]
+     
+ setup(name='TileCache',
+       version='2.11',
+diff -uNrp tilecache-2.11.orig/tilecache_install_config.py tilecache-2.11/tilecache_install_config.py
+--- tilecache-2.11.orig/tilecache_install_config.py	2007-12-22 21:13:42.000000000 +0530
++++ tilecache-2.11/tilecache_install_config.py	2010-11-04 20:45:41.027221978 +0530
+@@ -31,7 +31,7 @@ if __name__ == "__main__":
+ This script is a helper script designed to install the default TileCache
+ configuration when TileCache is installed from an egg.""")
+     
+-    parser.add_option('-d', '--dest', dest="dest", help="install to FILE. Default is /etc/tilecache.cfg", default="/etc/tilecache.cfg", metavar="FILE") 
++    parser.add_option('-d', '--dest', dest="dest", help="install to FILE. Default is /etc/TileCache/tilecache.cfg", default="/etc/TileCache/tilecache.cfg", metavar="FILE") 
+     
+     (options, args) = parser.parse_args()
+     install(options.dest)


More information about the scm-commits mailing list