]> git.pld-linux.org Git - packages/mapnik.git/commitdiff
- new package
authorJacek Konieczny <jajcus@pld-linux.org>
Fri, 8 May 2009 20:12:33 +0000 (20:12 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    mapnik-boost_lib_names.patch -> 1.1
    mapnik.spec -> 1.1

mapnik-boost_lib_names.patch [new file with mode: 0644]
mapnik.spec [new file with mode: 0644]

diff --git a/mapnik-boost_lib_names.patch b/mapnik-boost_lib_names.patch
new file mode 100644 (file)
index 0000000..f3c5747
--- /dev/null
@@ -0,0 +1,20 @@
+--- mapnik-0.6.0/SConstruct~   2009-04-01 17:32:53.000000000 +0200
++++ mapnik-0.6.0/SConstruct    2009-05-08 21:31:52.000000000 +0200
+@@ -588,10 +588,6 @@
+     # which goes <toolset>-<threading>-<abi>-<version>. See:
+     #  http://www.boost.org/doc/libs/1_35_0/more/getting_started/unix-variants.html#library-naming
+     append_params = ['']
+-    if env['BOOST_TOOLKIT']: append_params.append(env['BOOST_TOOLKIT'])
+-    if thread_flag: append_params.append(thread_flag)
+-    if env['BOOST_ABI']: append_params.append(env['BOOST_ABI'])
+-    if env['BOOST_VERSION']: append_params.append(env['BOOST_VERSION'])
+     
+     # if the user is not setting custom boost configuration
+     # enforce boost version greater than or equal to 1.33
+@@ -885,4 +881,4 @@
+     SConscript('bindings/python/SConscript')
+ # Configure fonts and if requested install the bundled DejaVu fonts
+-SConscript('fonts/SConscript')
+\ No newline at end of file
++SConscript('fonts/SConscript')
diff --git a/mapnik.spec b/mapnik.spec
new file mode 100644 (file)
index 0000000..c9b7a05
--- /dev/null
@@ -0,0 +1,127 @@
+#
+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]
This page took 0.051831 seconds and 4 git commands to generate.