Blame nodejs-mapnik.spec

5a62c3c
Name:           nodejs-mapnik
3f717d5
Version:        3.4.16
9ba3262
Release:        2%{?dist}
5a62c3c
Summary:        Bindings to Mapnik tile rendering library for Node.js
5a62c3c
5a62c3c
License:        BSD
5a62c3c
URL:            https://github.com/mapnik/node-mapnik
eaef427
Source0:        https://github.com/mapnik/node-mapnik/archive/%{version}/%{name}-%{version}.tar.gz
2168be5
# Disable use of binary builds via pre-gyp
eaef427
Patch0:         nodejs-mapnik-pregyp.patch
eaef427
# Relax some tests (https://github.com/mapnik/node-mapnik/issues/569)
eaef427
Patch1:         nodejs-mapnik-relax-tests.patch
eaef427
# Disable some tests that fail on non-x86_64 platforms
eaef427
Patch2:         nodejs-mapnik-failing-tests-otherarchs.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
eaef427
BuildRequires:  mapnik-devel >= 3.0.0
eaef427
BuildRequires:  mapnik-static >= 3.0.0
eaef427
BuildRequires:  protozero-devel >= 1.0.0
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
973d958
BuildRequires:  npm(mapnik-vector-tile) = 0.14.3
5a62c3c
eaef427
BuildRequires:  mapnik-utils
5a62c3c
BuildRequires:  npm(mocha)
5a62c3c
BuildRequires:  npm(sphericalmercator)
973d958
BuildRequires:  npm(nan) >= 2.2.0
5a62c3c
1e66c68
%{?nodejs_default_filter}
1e66c68
5a62c3c
%description
5a62c3c
%summary
5a62c3c
5a62c3c
5a62c3c
%prep
eaef427
%setup -q -n node-mapnik-%{version}
4caf7fc
%patch0 -p1
4caf7fc
%patch1 -p1
eaef427
%ifnarch x86_64
4caf7fc
%patch2 -p1
eaef427
%endif
eaef427
%nodejs_fixdep -r nan
eaef427
%nodejs_fixdep --dev nan "^2.1.0"
294e0c6
%nodejs_fixdep -r mapnik-vector-tile
294e0c6
%nodejs_fixdep --dev mapnik-vector-tile "0.14.2"
eaef427
rm -rf deps/protozero node_modules
4434a31
echo '{}' > common.gypi
5a62c3c
5a62c3c
5a62c3c
%build
78581f1
%nodejs_symlink_deps --build
9ba3262
export CXXFLAGS="%{optflags} -fno-if-conversion"
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
477e144
%ifnarch armv7hl
eaef427
%check
eaef427
%nodejs_symlink_deps --check
eaef427
%{nodejs_sitelib}/mocha/bin/mocha -R spec -t 5000
477e144
%endif
b2e45cb
b2e45cb
5a62c3c
%files
eaef427
%doc README.md CHANGELOG.md CONTRIBUTING.md docs documentation
eaef427
%license LICENSE.txt
5a62c3c
%{nodejs_sitearch}/mapnik
5a62c3c
%{_bindir}/mapnik-*
5a62c3c
5a62c3c
5a62c3c
%changelog
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