packages: mapnik/mapnik.spec (NEW) - new package

jajcus jajcus at pld-linux.org
Fri May 8 22:12:38 CEST 2009


Author: jajcus                       Date: Fri May  8 20:12:38 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new package

---- Files affected:
packages/mapnik:
   mapnik.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/mapnik/mapnik.spec
diff -u /dev/null packages/mapnik/mapnik.spec:1.1
--- /dev/null	Fri May  8 22:12:38 2009
+++ packages/mapnik/mapnik.spec	Fri May  8 22:12:33 2009
@@ -0,0 +1,138 @@
+# $Revision$, $Date$
+#
+Summary:	Toolkit for developing GIS (Geographic Information Systems) applications.
+Name:		mapnik
+Version:	0.6.0
+Release:	1
+License:	LGPL v2.1
+Group:		Applications
+Source0:	http://download.berlios.de/mapnik/%{name}-%{version}.tar.bz2
+# Source0-md5:	981271ac1cd1432314a963809c245fe1
+Patch0:		%{name}-boost_lib_names.patch
+URL:		http://prdownload.berlios.de/
+BuildRequires:	boost-devel
+BuildRequires:	boost-python-devel
+BuildRequires:	cairomm-devel
+BuildRequires:	curl-devel
+BuildRequires:	freetype-devel
+BuildRequires:	libicu-devel
+BuildRequires:	libjpeg-devel
+BuildRequires:	libpng-devel
+BuildRequires:	libtiff-devel
+BuildRequires:	libxml2-devel
+BuildRequires:	ogdi-devel
+BuildRequires:	postgresql-devel
+BuildRequires:	proj-devel
+BuildRequires:	python-devel
+BuildRequires:	python-pycairo-devel
+BuildRequires:	scons
+BuildRequires:	sqlite3-devel
+BuildRequires:	zlib-devel
+Requires:	%{name}-libs = %{name}-%{release}
+Suggests:	fonts-TTF-DejaVu
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Mapnik is a Free Toolkit for developing mapping applications. It's written in
+C++ and there are Python bindings to facilitate fast-paced agile development.
+It can comfortably be used for both desktop and web development, which was
+something I wanted from the beginning.
+
+Mapnik is about making beautiful maps. It uses the AGG library and offers world
+class anti-aliasing rendering with subpixel accuracy for geographic data. It is
+written from scratch in modern C++ and doesn't suffer from design decisions
+made a decade ago.
+
+%package -n python-%{name}
+Summary:	Python bindings for Mapnik
+Group:		Libraries/Python
+Requires:	%{name} = %{name}-%{release}
+
+%description -n python-%{name}
+Python binding for Mapnik, the toolkit for developing GIS (Geographic
+Information Systems) applications.
+
+%package devel
+Summary:	Header files for Mapnik
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki Mapnik
+Group:		Development/Libraries
+Requires:	%{name} = %{name}-%{release}
+
+%description devel
+Header files for Mapnik.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki Mapnik.
+
+%package static
+Summary:	Static ... library
+Summary(pl.UTF-8):	Statyczna biblioteka ...
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static ... library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka ....
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%scons \
+	PREFIX=%{_prefix} \
+	BOOST_TOOLKIT=gcc43
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%scons install \
+	PREFIX=%{_prefix} \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
+%py_comp $RPM_BUILD_ROOT%{py_sitedir}
+%py_postclean
+
+# DejaVu fonts are available in a separate package
+rm -rf $RPM_BUILD_ROOT%{_libdir}/%{name}/fonts
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS CHANGELOG INSTALL README
+%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_libdir}/lib*.so.*.*
+%dir %{_libdir}/%{name}
+%dir %{_libdir}/%{name}/input
+%attr(755,root,root) %{_libdir}/%{name}/input/*.input
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/lib*.so
+%{_includedir}/*
+
+%files -n python-%{name}
+%defattr(644,root,root,755)
+%dir %{py_sitedir}/%{name}
+%{py_sitedir}/%{name}/*.py[co]
+%attr(755,root,root) %{py_sitedir}/%{name}/*.so
+%dir %{py_sitedir}/%{name}/ogcserver
+%{py_sitedir}/%{name}/ogcserver/*.py[co]
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2009/05/08 20:12:33  jajcus
+- new package
+
================================================================


More information about the pld-cvs-commit mailing list