19c513d
Name:           carto
df4710b
Version:        0.15.3
Jared K. Smith 8791528
Release:        5%{?dist}
19c513d
Summary:        Mapnik style sheet compiler
19c513d
19c513d
License:        ASL 2.0
19c513d
URL:            https://github.com/mapbox/carto
4aa267e
Source0:        https://github.com/mapbox/carto/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
8b517b7
# https://github.com/mapbox/carto/pull/406
8b517b7
Patch0:         carto-underscore.patch
19c513d
BuildArch:      noarch
9c1ccee
ExclusiveArch:  %{nodejs_arches} noarch
19c513d
19c513d
Requires:       npm(millstone)
19c513d
9c1ccee
BuildRequires:  nodejs-packaging
19c513d
19c513d
BuildRequires:  npm(mocha)
5ac647d
BuildRequires:  npm(mapnik-reference) >= 7.0.0
7e2124a
BuildRequires:  npm(optimist)
19c513d
BuildRequires:  npm(sax)
19c513d
BuildRequires:  npm(underscore)
19c513d
19c513d
%description
19c513d
Carto is a style sheet compiler for Mapnik. It's an evolution of
19c513d
the Cascadenik idea and language, with an emphasis on speed and
19c513d
flexibility.
19c513d
19c513d
19c513d
%prep
7e2124a
%autosetup -p 1 -n carto-%{version}
Jared K. Smith 8791528
%nodejs_fixdep optimist
19c513d
rm -rf node_modules
19c513d
19c513d
19c513d
%build
19c513d
19c513d
19c513d
%install
19c513d
mkdir -p %{buildroot}/%{nodejs_sitelib}/carto
19c513d
cp -pr package.json bin lib %{buildroot}/%{nodejs_sitelib}/carto
19c513d
mkdir -p %{buildroot}/%{nodejs_sitelib}/carto/bin
19c513d
mkdir -p %{buildroot}/%{_bindir}
19c513d
ln -s %{nodejs_sitelib}/carto/bin/carto %{buildroot}/%{_bindir}/carto
19c513d
mkdir -p %{buildroot}%{_mandir}/man1
9c1ccee
cp -p man/*.1 %{buildroot}%{_mandir}/man1
19c513d
%nodejs_symlink_deps
19c513d
19c513d
9c1ccee
%check
9c1ccee
%nodejs_symlink_deps --check
eaeff52
%{nodejs_sitelib}/mocha/bin/mocha -R spec -t 30000 test/*.test.js
9c1ccee
9c1ccee
19c513d
%files
aef05fb
%doc README.md CHANGELOG.md
aef05fb
%license LICENSE
19c513d
%{nodejs_sitelib}/carto
19c513d
%{_bindir}/carto
19c513d
%{_mandir}/man1/carto.1*
19c513d
19c513d
19c513d
%changelog
Jared K. Smith 8791528
* Wed Feb 17 2016 Jared Smith <jsmith@fedoraproject.org> - 0.15.3-5
Jared K. Smith 8791528
- Relax dependency on npm(optimist)
Jared K. Smith 8791528
7e2124a
* Thu Feb 11 2016 Tom Hughes <tom@compton.nu> - 0.15.3-4
7e2124a
- Add BR on optimist
7e2124a
06f71f5
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.15.3-3
06f71f5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
06f71f5
eaeff52
* Wed Jan 20 2016 Tom Hughes <tom@compton.nu> - 0.15.3-2
eaeff52
- Increase timeout for tests
eaeff52
df4710b
* Fri Oct  9 2015 Tom Hughes <tom@compton.nu> - 0.15.3-1
df4710b
- Update to 0.15.3 upstream release
df4710b
8b517b7
* Tue Oct  6 2015 Tom Hughes <tom@compton.nu> - 0.15.2-2
8b517b7
- Fix underscore dependency
8b517b7
8a3ab25
* Wed Sep 23 2015 Tom Hughes <tom@compton.nu> - 0.15.2-1
8a3ab25
- Update to 0.15.2 upstream release
8a3ab25
55d11e6
* Sat Sep 12 2015 Tom Hughes <tom@compton.nu> - 0.15.1-1
55d11e6
- Update to 0.15.1 upstream release
55d11e6
4aa267e
* Mon Aug 24 2015 Tom Hughes <tom@compton.nu> - 0.15.0-1
4aa267e
- Update to 0.15.0 upstream release
4aa267e
74f5f2f
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14.1-3
74f5f2f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
74f5f2f
aef05fb
* Sat Jun 13 2015 Tom Hughes <tom@compton.nu> - 0.14.1-2
aef05fb
- Update mapnik-reference dependency
aef05fb
- Switch to %%license for the license file
aef05fb
5ac647d
* Mon Jan 19 2015 Tom Hughes <tom@compton.nu> - 0.14.1-1
5ac647d
- Update to 0.14.1 upstream release
5ac647d
885edf6
* Fri Sep 26 2014 Tom Hughes <tom@compton.nu> - 0.14.0-1
885edf6
- Update to 0.14.0 upstream release
885edf6
474b56d
* Fri Sep  5 2014 Tom Hughes <tom@compton.nu> - 0.13.0-1
474b56d
- Update to 0.13.0 upstream release
474b56d
b626c50
* Mon Aug  4 2014 Tom Hughes <tom@compton.nu> - 0.12.1-1
b626c50
- Update to 0.12.1 upstream release
b626c50
4e1c805
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.11.0-2
4e1c805
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
4e1c805
4268ae4
* Thu May 22 2014 Tom Hughes <tom@compton.nu> - 0.11.0-1
4268ae4
- Update to 0.11.0 upstream release
4268ae4
a964759
* Tue Apr 29 2014 Tom Hughes <tom@compton.nu> - 0.9.6-4
a964759
- Fix mapnik-reference dependency properly
a964759
313efcc
* Mon Apr 28 2014 Tom Hughes <tom@compton.nu> - 0.9.6-3
313efcc
- Fix mapnik-reference dependency
313efcc
c029001
* Fri Apr 18 2014 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.9.6-2
c029001
- fix version of npm(underscore) dependency
c029001
24ec1f0
* Wed Apr 16 2014 Tom Hughes <tom@compton.nu> - 0.9.6-1
24ec1f0
- Update to 0.9.6 upstream release
24ec1f0
- Switch to source from github to get tests
24ec1f0
T.C. Hollingsworth c3046b7
* Sun Jan 19 2014 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.9.5-4
T.C. Hollingsworth c3046b7
- fix underscore for 1.5.1
T.C. Hollingsworth c3046b7
317eb50
* Thu Dec  5 2013 Tom Hughes <tom@compton.nu> - 0.9.5-3
317eb50
- Fix xml2js dependency
317eb50
725f883
* Wed Oct 30 2013 Tom Hughes <tom@compton.nu> - 0.9.5-2
725f883
- Fix dependencies
725f883
9c1ccee
* Wed Oct 30 2013 Tom Hughes <tom@compton.nu> - 0.9.5-1
9c1ccee
- Update to 0.9.5 upstream release
9c1ccee
- Update to latest nodejs packaging standards
9c1ccee
- Enable tests
9c1ccee
a279482
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.4-2
a279482
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
a279482
19c513d
* Sun Feb 10 2013 Tom Hughes <tom@compton.nu> - 0.9.4-1
19c513d
- Initial build of 0.9.4