131 lines
3.9 KiB
RPMSpec
131 lines
3.9 KiB
RPMSpec
Name: libmapnik
|
|
Version: 3.0.15
|
|
Release: 1mamba
|
|
Summary: A Free Toolkit for developing mapping applications
|
|
Group: System/Tools
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: http://mapnik.org/
|
|
Source: https://github.com/mapnik/mapnik/releases/download/v%{version}/mapnik-v%{version}.tar.bz2
|
|
#Source: https://mapnik.s3.amazonaws.com/dist/v%{version}/mapnik-v%{version}.tar.bz2
|
|
Patch0: libmapnik-3.0.9-boost-mt.patch
|
|
Patch1: libmapnik-3.0.15-icu-59.patch
|
|
License: LGPL
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: libboost-devel
|
|
BuildRequires: libcairo-devel
|
|
BuildRequires: libfreetype-devel
|
|
BuildRequires: libgcc
|
|
BuildRequires: libgdal-devel
|
|
BuildRequires: libharfbuzz-devel
|
|
BuildRequires: libicu-devel
|
|
BuildRequires: libjpeg-devel
|
|
BuildRequires: libpng-devel
|
|
BuildRequires: libpostgresql-devel
|
|
BuildRequires: libproj-devel
|
|
BuildRequires: libsqlite-devel
|
|
BuildRequires: libstdc++6-devel
|
|
BuildRequires: libtiff-devel
|
|
BuildRequires: libwebp-devel
|
|
BuildRequires: libz-devel
|
|
## AUTOBUILDREQ-END
|
|
BuildRequires: libgdal-devel >= 2.0.1
|
|
Provides: mapnik
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
%description
|
|
Mapnik is a Free Toolkit for developing mapping applications. Above all Mapnik is about making beautiful maps. It is easily extensible and suitable for both desktop and web development.
|
|
|
|
%package devel
|
|
Group: Development/Libraries
|
|
Summary: Devel package for libmapnik
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
%description devel
|
|
Mapnik is a Free Toolkit for developing mapping applications. Above all Mapnik is about making beautiful maps. It is easily extensible and suitable for both desktop and web development.
|
|
This is the devel package.
|
|
|
|
%prep
|
|
%setup -q -n mapnik-v%{version}
|
|
#-D -T
|
|
#:<< _EOF
|
|
%patch1 -p1
|
|
|
|
%build
|
|
#:<< _EOF
|
|
%{__python} scons/scons.py configure \
|
|
PREFIX=%{_prefix} \
|
|
LIBDIR_SCHEMA=%{_lib} \
|
|
THREADING=multi \
|
|
CUSTOM_LDFLAGS="-L%{_libdir} -ldl"
|
|
|
|
%make
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
sed -i "s|max-drift=1 install|max-drift=1 install DESTDIR=%{buildroot}|" Makefile
|
|
%makeinstall
|
|
#%{__python} scons/scons.py install \
|
|
# DESTDIR=%{buildroot} %{_smp_mflags}
|
|
|
|
%post -p /sbin/ldconfig
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_bindir}/mapnik-*
|
|
%{_bindir}/shapeindex
|
|
%{_libdir}/libmapnik.so.*
|
|
%dir %{_libdir}/mapnik
|
|
%{_libdir}/mapnik/fonts
|
|
%{_libdir}/mapnik/input
|
|
#%dir %{python_sitearch}/mapnik
|
|
#%{python_sitearch}/mapnik/*
|
|
#%dir %{python_sitearch}/mapnik2
|
|
#%{python_sitearch}/mapnik2/*
|
|
%doc COPYING
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%{_bindir}/mapnik-config
|
|
%dir %{_includedir}/mapnik
|
|
%{_includedir}/mapnik/*
|
|
%{_libdir}/libmapnik-json.a
|
|
%{_libdir}/libmapnik-wkt.a
|
|
%{_libdir}/libmapnik.so
|
|
#%doc README
|
|
|
|
%changelog
|
|
* Sat Oct 21 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 3.0.15-1mamba
|
|
- update to 3.0.15
|
|
|
|
* Tue Nov 22 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 3.0.12-1mamba
|
|
- update to 3.0.12
|
|
|
|
* Sun Jul 10 2016 Automatic Build System <autodist@mambasoft.it> 3.0.10-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Thu Dec 17 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 3.0.9-1mamba
|
|
- update to 3.0.9
|
|
- rebuilt with libgdal 2.0.1
|
|
|
|
* Thu Jun 20 2013 Automatic Build System <autodist@mambasoft.it> 2.2.0-1mamba
|
|
- update to 2.2.0
|
|
|
|
* Mon Dec 17 2012 Automatic Build System <autodist@mambasoft.it> 2.1.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Mon Nov 14 2011 Automatic Build System <autodist@mambasoft.it> 2.0.0-1mamba
|
|
- automatic version update by autodist
|
|
|
|
* Tue Dec 14 2010 Automatic Build System <autodist@mambasoft.it> 0.7.1-2mamba
|
|
- automatic rebuild by autodist
|
|
|
|
* Fri Nov 05 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 0.7.1-1mamba
|
|
- package created by autospec
|