5a62c3c
Name:           nodejs-mapnik
824147d
Version:        3.5.14
824147d
Release:        1%{?dist}
5a62c3c
Summary:        Bindings to Mapnik tile rendering library for Node.js
5a62c3c
5a62c3c
License:        BSD
5a62c3c
URL:            https://github.com/mapnik/node-mapnik
36df313
Source0:        https://github.com/mapnik/node-mapnik/archive/v%{version}/%{name}-%{version}.tar.gz
2168be5
# Disable use of binary builds via pre-gyp
eaef427
Patch0:         nodejs-mapnik-pregyp.patch
824147d
# Build against system protozero
824147d
Patch1:         nodejs-mapnik-protozero.patch
eaef427
# Relax some tests (https://github.com/mapnik/node-mapnik/issues/569)
824147d
Patch2:         nodejs-mapnik-relax-tests.patch
90fffbf
5a62c3c
ExclusiveArch:  %{nodejs_arches}
5a62c3c
eaef427
# Bundled version is forked, and includes patches that only work
eaef427
# when it is compiled as part of another project with defines that
eaef427
# change types to match those in the surrounding project
eaef427
Provides:       bundled(polyclipping) = 6.4.0
eaef427
5a62c3c
BuildRequires:  nodejs-devel
5a62c3c
BuildRequires:  node-gyp
824147d
BuildRequires:  mapnik-devel >= 3.0.12
824147d
BuildRequires:  mapnik-static >= 3.0.12
824147d
BuildRequires:  protozero-devel >= 1.4.2
5a62c3c
BuildRequires:  boost-devel
5a62c3c
BuildRequires:  libicu-devel
5a62c3c
BuildRequires:  freetype-devel
5a62c3c
BuildRequires:  sparsehash-devel
5a62c3c
BuildRequires:  cairo-devel
5a62c3c
BuildRequires:  polyclipping-devel
5a62c3c
BuildRequires:  protobuf-lite-devel
5a62c3c
BuildRequires:  libtool-ltdl-devel
1784b82
BuildRequires:  libxml2-devel
824147d
BuildRequires:  npm(mapnik-vector-tile) >= 1.2.2
5a62c3c
eaef427
BuildRequires:  mapnik-utils
5a62c3c
BuildRequires:  npm(mocha)
5a62c3c
BuildRequires:  npm(sphericalmercator)
824147d
BuildRequires:  npm(nan) >= 2.4.0
5a62c3c
1e66c68
%{?nodejs_default_filter}
1e66c68
5a62c3c
%description
5a62c3c
%summary
5a62c3c
5a62c3c
5a62c3c
%prep
7d2f64f
%autosetup -p 1 -n node-mapnik-%{version}
e54ca5a
%nodejs_fixdep --remove protozero
6ab055d
%nodejs_fixdep --dev --move nan
6ab055d
%nodejs_fixdep --dev --move mapnik-vector-tile
eaef427
rm -rf deps/protozero node_modules
4434a31
echo '{}' > common.gypi
5a62c3c
5a62c3c
5a62c3c
%build
78581f1
%nodejs_symlink_deps --build
824147d
ls -l node_modules
cf18d9f
%ifarch aarch64
cf18d9f
export CXXFLAGS="%{optflags} -O1"
cf18d9f
%else
6ab055d
export CXXFLAGS="%{optflags}"
cf18d9f
%endif
eaef427
export LDFLAGS="%{?__global_ldflags}"
5ec76d3
node-gyp configure -- -Dmodule_name=mapnik -Dmodule_path=lib/binding
5ec76d3
node-gyp build
5a62c3c
5a62c3c
5a62c3c
%install
5a62c3c
mkdir -p %{buildroot}/%{nodejs_sitearch}/mapnik
5a62c3c
cp -pr package.json bin lib %{buildroot}/%{nodejs_sitearch}/mapnik
5a62c3c
mkdir -p %{buildroot}/%{_bindir}
5a62c3c
ln -s  %{nodejs_sitelib}/mapnik/bin/mapnik-inspect.js %{buildroot}/%{_bindir}/mapnik-inspect
5a62c3c
%nodejs_symlink_deps
5a62c3c
5a62c3c
eaef427
%check
eaef427
%nodejs_symlink_deps --check
e54ca5a
%{nodejs_sitelib}/mocha/bin/mocha -R spec -t 10000
b2e45cb
b2e45cb
5a62c3c
%files
824147d
%doc README.md CHANGELOG.md CONTRIBUTING.md docs
eaef427
%license LICENSE.txt
5a62c3c
%{nodejs_sitearch}/mapnik
5a62c3c
%{_bindir}/mapnik-*
5a62c3c
5a62c3c
5a62c3c
%changelog
824147d
* Sat Sep 10 2016 Tom Hughes <tom@compton.nu> - 3.5.14-1
824147d
- Update to 3.5.14 upstream release
824147d
2c42283
* Mon Aug 29 2016 Tom Hughes <tom@compton.nu> - 3.5.12-3
2c42283
- Rebuild for Node.js 6.5.0
2c42283
3ba0bf3
* Mon Aug 22 2016 Tom Hughes <tom@compton.nu> - 3.5.12-2
216c52b
- Rebuild for Node.js 6.1.0 upgrade
216c52b
36df313
* Tue Apr 19 2016 Tom Hughes <tom@compton.nu> - 3.5.12-1
36df313
- Update to 3.5.12 upstream release
36df313
641a009
* Sat Apr 16 2016 Tom Hughes <tom@compton.nu> - 3.5.11-1
641a009
- Update to 3.5.11 upstream release
641a009
194f141
* Thu Apr 14 2016 Tom Hughes <tom@compton.nu> - 3.5.10-1
194f141
- Update to 3.5.10 upstream release
194f141
65ca52d
* Sun Apr 10 2016 Tom Hughes <tom@compton.nu> - 3.5.8-1
65ca52d
- Update to 3.5.8 upstream release
65ca52d
8492055
* Tue Mar 29 2016 Tom Hughes <tom@compton.nu> - 3.5.6-2
8492055
- Rebuild for Node.js 5.x
8492055
ff6252a
* Tue Mar 29 2016 Tom Hughes <tom@compton.nu> - 3.5.6-1
ff6252a
- Update to 3.5.6 upstream release
ff6252a
a023eb1
* Thu Mar 24 2016 Tom Hughes <tom@compton.nu> - 3.5.5-1
a023eb1
- Update to 3.5.5 upstream release
a023eb1
6370973
* Wed Mar 23 2016 Tom Hughes <tom@compton.nu> - 3.5.4-2
6370973
- Rebuild for Node.js 4.4.x
6370973
933be03
* Tue Mar 22 2016 Tom Hughes <tom@compton.nu> - 3.5.4-1
933be03
- Update to 3.5.4 upstream release
933be03
74ce2ef
* Thu Mar  3 2016 Tom Hughes <tom@compton.nu> - 3.5.2-1
74ce2ef
- Update to 3.5.2 upstream release
74ce2ef
e54ca5a
* Wed Mar  2 2016 Tom Hughes <tom@compton.nu> - 3.5.1-1
e54ca5a
- Update to 3.5.1 upstream release
e54ca5a
7d2f64f
* Sat Feb 13 2016 Tom Hughes <tom@compton.nu> - 3.4.16-5
7d2f64f
- Remove architecture specific test disablements
7d2f64f
1e4c9ab
* Wed Feb 10 2016 Tom Hughes <tom@compton.nu> - 3.4.16-4
1e4c9ab
- Rebuild for Node.js 4.3.x
1e4c9ab
6ab055d
* Tue Feb  2 2016 Tom Hughes <tom@compton.nu> - 3.4.16-3
6ab055d
- Remove -fno-if-conversion and patch floating point comparisons
6ab055d
9ba3262
* Sat Jan 30 2016 Tom Hughes <tom@compton.nu> - 3.4.16-2
9ba3262
- Add -fno-if-conversion to avoid gcc 6 bug
9ba3262
3f717d5
* Sat Jan 23 2016 Tom Hughes <tom@compton.nu> - 3.4.16-1
3f717d5
- Update to 3.4.16 upstream release
3f717d5
973d958
* Fri Jan 22 2016 Tom Hughes <tom@compton.nu> - 3.4.15-1
973d958
- Update to 3.4.15 upstream release
973d958
01c4457
* Thu Jan 21 2016 Tom Hughes <tom@compton.nu> - 3.4.14-1
01c4457
- Update to 3.4.14 upstream release
01c4457
4537f64
* Wed Jan 20 2016 Tom Hughes <tom@compton.nu> - 3.4.13-3
4537f64
- Rebuild for nodejs 4
4537f64
7ae92d3
* Fri Jan  8 2016 Tom Hughes <tom@compton.nu> - 3.4.13-2
7ae92d3
- Patch out node-pre-gyp correctly
7ae92d3
d6f037b
* Fri Jan  8 2016 Tom Hughes <tom@compton.nu> - 3.4.13-1
d6f037b
- Update to 3.4.13 upstream release
d6f037b
57ea5f5
* Wed Dec 30 2015 Tom Hughes <tom@compton.nu> - 3.4.12-3
57ea5f5
- Update expected output for libwebp 0.5.x
57ea5f5
294e0c6
* Wed Dec 23 2015 Tom Hughes <tom@compton.nu> - 3.4.12-2
294e0c6
- Rebuild for mapnik-vector-tile 0.14.2
294e0c6
da3bb9b
* Sat Dec 19 2015 Tom Hughes <tom@compton.nu> - 3.4.12-1
da3bb9b
- Update to 3.4.12 upstream release
da3bb9b
a9d5936
* Sun Dec  6 2015 Tom Hughes <tom@compton.nu> - 3.4.11-2
a9d5936
- Drop mapnik-render from bindir as mapnik now provides it
a9d5936
eaef427
* Sun Dec  6 2015 Tom Hughes <tom@compton.nu> - 3.4.11-1
eaef427
- Update to 3.4.11 upstream release
eaef427
ff3a387
* Fri Oct 30 2015 Tom Hughes <tom@compton.nu> - 1.4.17-11
ff3a387
- Rebuild for ICU 56.1
ff3a387
9d28fa1
* Wed Jul 29 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.17-10
9d28fa1
- Rebuilt for https://fedoraproject.org/wiki/Changes/F23Boost159
9d28fa1
6334175
* Fri Jul 24 2015 Tom Hughes <tom@compton.nu> - 1.4.17-9
6334175
- Rebuild for boost 1.58.0
6334175
458a528
* Sat Jul 18 2015 Tom Hughes <tom@compton.nu> - 1.4.17-8
458a528
- Rebuild for boost 1.58.0
458a528
7bd2eda
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.17-7
7bd2eda
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
7bd2eda
76610d3
* Wed Apr 29 2015 Kalev Lember <kalevlember@gmail.com> - 1.4.17-6
76610d3
- Rebuilt for protobuf soname bump
76610d3
c0ee43d
* Wed Jan 28 2015 Tom Hughes <tom@compton.nu> - 1.4.17-5
c0ee43d
- Fixed to build with nan 1.6
c0ee43d
e42d715
* Wed Jan 28 2015 Tom Hughes <tom@compton.nu> - 1.4.17-4
e42d715
- Rebuild for boost 1.57.0
e42d715
Petr Machata cb556dc
* Tue Jan 27 2015 Petr Machata <pmachata@redhat.com> - 1.4.17-3
Petr Machata cb556dc
- Rebuild for boost 1.57.0
Petr Machata cb556dc
a7e44a3
* Tue Oct 28 2014 Tom Hughes <tom@compton.nu> - 1.4.17-2
a7e44a3
- Loosen mapnik-vector-tile dependency
a7e44a3
90fffbf
* Tue Sep 30 2014 Tom Hughes <tom@compton.nu> - 1.4.17-1
90fffbf
- Update to 1.4.17 upstream release
90fffbf
cea974f
* Tue Aug 26 2014 Tom Hughes <tom@compton.nu> - 1.4.13-1
cea974f
- Update to 1.4.13 upstream release
cea974f
2168be5
* Mon Aug 18 2014 Tom Hughes <tom@compton.nu> - 1.4.12-1
2168be5
- Update to 1.4.12 upstream release
2168be5
092a468
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.10-2
092a468
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
092a468
78581f1
* Sun Jun 22 2014 Tom Hughes <tom@compton.nu> - 1.4.10-1
78581f1
- Update to 1.4.10 upstream release
78581f1
524c1b1
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.5-2
524c1b1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
524c1b1
4e8f6b5
* Mon May 26 2014 Tom Hughes <tom@compton.nu> - 1.4.5-1
4e8f6b5
- Update to 1.4.5 upstream release
4e8f6b5
Petr Machata be7f0e9
* Sat May 24 2014 Petr Machata <pmachata@redhat.com> - 1.4.4-2
Petr Machata be7f0e9
- Rebuild for boost 1.55.0
Petr Machata be7f0e9
7bd038c
* Fri May 23 2014 Tom Hughes <tom@compton.nu> - 1.4.4-1
7bd038c
- Update to 1.4.4 upstream release
7bd038c
5ec76d3
* Fri May  9 2014 Tom Hughes <tom@compton.nu> - 1.4.3-1
5ec76d3
- Update to 1.4.3 upstream release
5ec76d3
4674f8f
* Thu Apr  3 2014 Tom Hughes <tom@compton.nu> - 1.4.2-1
4674f8f
- Update to 1.4.2 upstream release
4674f8f
9b99e2a
* Mon Mar  3 2014 Tom Hughes <tom@compton.nu> - 1.4.0-2
9b99e2a
- Remove nodejs-pre-gyp dependency
9b99e2a
1c51fd0
* Sun Mar  2 2014 Tom Hughes <tom@compton.nu> - 1.4.0-1
1c51fd0
- Update to 1.4.0 upstream release
1c51fd0
- Switch to source from github as npm no longer includes tests
1c51fd0
a7c5861
* Fri Feb 28 2014 Tom Hughes <tom@compton.nu> - 1.3.4-1
a7c5861
- Update to 1.3.4 upstream release
a7c5861
219ce92
* Wed Feb 26 2014 Tom Hughes <tom@compton.nu> - 1.3.2-1
219ce92
- Update to 1.3.2 upstream release
219ce92
ffdc4a2
* Sat Feb 22 2014 Tom Hughes <tom@compton.nu> - 1.3.1-1
ffdc4a2
- Update to 1.3.1 upstream release
ffdc4a2
08b04d5
* Wed Feb 19 2014 Tom Hughes <tom@compton.nu> - 1.3.0-1
08b04d5
- Update to 1.3.0 upstream release
08b04d5
T.C. Hollingsworth c44d8f9
* Fri Feb 14 2014 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.2.3-2
T.C. Hollingsworth c44d8f9
- rebuild for icu-53 (via v8)
T.C. Hollingsworth c44d8f9
d1e4152
* Fri Jan 10 2014 Tom Hughes <tom@compton.nu> - 1.2.3-1
d1e4152
- Update to 1.2.3 upstream release
d1e4152
aa6a58d
* Fri Nov  8 2013 Tom Hughes <tom@compton.nu> - 1.2.2-1
aa6a58d
- Update to 1.2.2 upstream release
aa6a58d
e7416a0
* Fri Sep 27 2013 Tom Hughes <tom@compton.nu> - 1.2.1-1
e7416a0
- Update to 1.2.1 upstream release
e7416a0
1e66c68
* Tue Sep 10 2013 Tom Hughes <tom@compton.nu> - 1.2.0-1
1e66c68
- Update to 1.2.0 upstream release
1e66c68
4434a31
* Mon Aug 26 2013 Tom Hughes <tom@compton.nu> - 1.1.3-2
4434a31
- Don't strip the compiled extension module
4434a31
0cc1b7a
* Fri Aug 16 2013 Tom Hughes <tom@compton.nu> - 1.1.3-1
0cc1b7a
- Update to 1.1.3 upstream release
0cc1b7a
4895371
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.2-2
4895371
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
4895371
4caf7fc
* Tue Jul 30 2013 Tom Hughes <tom@compton.nu> - 1.1.2-1
4caf7fc
- Update to 1.1.2 upstream release
4caf7fc
Petr Machata e9e4118
* Tue Jul 30 2013 Petr Machata <pmachata@redhat.com> - 1.1.0-3
Petr Machata e9e4118
- Rebuild for boost 1.54.0
Petr Machata e9e4118
da93c96
* Tue Jul 16 2013 Tom Hughes <tom@compton.nu> - 1.1.0-2
da93c96
- Correct system font paths
da93c96
53c1bdf
* Mon Jul 15 2013 Tom Hughes <tom@compton.nu> - 1.1.0-1
53c1bdf
- Update to 1.1.0 upstream release
53c1bdf
- Remove mapnik-vector-tile from run time dependencies
53c1bdf
b2e45cb
* Tue Jul  9 2013 Tom Hughes <tom@compton.nu> - 1.0.0-2
b2e45cb
- Add upstream patch for numeric precision issue
b2e45cb
5a62c3c
* Fri Jul  5 2013 Tom Hughes <tom@compton.nu> - 1.0.0-1
5a62c3c
- Update to 1.0.0 upstream release
5a62c3c
5a62c3c
* Sun Feb 10 2013 Tom Hughes <tom@compton.nu> - 0.7.22-1
5a62c3c
- Initial build of 0.7.22