[nodejs-mapnik-reference] Initial import of nodejs-mapnik-reference

Tom Hughes tomh at fedoraproject.org
Mon Mar 4 14:10:26 UTC 2013


commit 08680c54fa9965ca9d73798458988f29b71a677f
Author: Tom Hughes <tom at compton.nu>
Date:   Mon Mar 4 14:10:05 2013 +0000

    Initial import of nodejs-mapnik-reference

 .gitignore                          |    1 +
 nodejs-mapnik-reference-paths.patch |    9 +++++
 nodejs-mapnik-reference.spec        |   63 +++++++++++++++++++++++++++++++++++
 sources                             |    1 +
 4 files changed, 74 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..074fb94 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/mapnik-reference-5.0.4.tgz
diff --git a/nodejs-mapnik-reference-paths.patch b/nodejs-mapnik-reference-paths.patch
new file mode 100644
index 0000000..b445c1f
--- /dev/null
+++ b/nodejs-mapnik-reference-paths.patch
@@ -0,0 +1,9 @@
+--- index.js.orig	2013-02-10 12:46:47.756099013 +0000
++++ index.js	2013-02-10 12:47:00.195484506 +0000
+@@ -7,5 +7,5 @@
+ ['2.0.0', '2.0.1', '2.0.2', '2.1.0', '2.1.1', 'latest'].map(function(version) {
+     module.exports.version[version] = JSON.parse(
+         fs.readFileSync(
+-            path.join(__dirname, version, 'reference.json'), 'utf8'));
++            path.join('/usr/share/nodejs-mapnik-reference', version, 'reference.json'), 'utf8'));
+ });
diff --git a/nodejs-mapnik-reference.spec b/nodejs-mapnik-reference.spec
new file mode 100644
index 0000000..b5c442f
--- /dev/null
+++ b/nodejs-mapnik-reference.spec
@@ -0,0 +1,63 @@
+Name:           nodejs-mapnik-reference
+Version:        5.0.4
+Release:        2%{?dist}
+Summary:        Reference for Mapnik Styling Options
+
+# License file added upstream:
+# https://github.com/mapnik/mapnik-reference/commit/fcc41b3fda18242bf9609709e3038e40f9e48b61
+License:        Public Domain
+URL:            https://github.com/mapnik/mapnik-reference
+Source0:        http://registry.npmjs.org/mapnik-reference/-/mapnik-reference-%{version}.tgz
+# Fix paths for auxilliary data to match packaging guidelines
+Patch0:         nodejs-mapnik-reference-paths.patch
+BuildArch:      noarch
+
+BuildRequires:  nodejs-devel
+BuildRequires:  python
+BuildRequires:  python-simplejson
+
+%description
+Provides a parseable spec of what Mapnik can do - what main structures
+it supports (like layers, styles, and symbolizers) and the properties
+they can contain. It's useful for building parsers, tests, compilers, and
+syntax highlighting/checking for languages
+
+
+%prep
+%setup -q -n package
+cp -pr ./ ../package-copy
+%patch0 -p0 -b .paths
+rm -rf node_modules
+
+
+%build
+
+
+%check
+pushd ../package-copy
+%{__python} test/test.py
+popd
+
+
+%install
+mkdir -p %{buildroot}/%{nodejs_sitelib}/mapnik-reference
+cp -pr package.json index.js %{buildroot}/%{nodejs_sitelib}/mapnik-reference
+mkdir -p %{buildroot}/%{_datadir}/%{name}
+cp -pr 2.* latest %{buildroot}/%{_datadir}/%{name}
+%nodejs_symlink_deps
+
+
+%files
+%doc README.md CHANGELOG.md
+%{nodejs_sitelib}/mapnik-reference
+%{_datadir}/%{name}
+
+
+%changelog
+* Sat Mar  2 2013 Tom Hughes <tom at compton.nu> - 5.0.4-2
+- Use %%{__python} instead of %%{__python2}
+- Run tests against an unpatched copy of the package
+- Removed hyphen from parseable in description
+
+* Sun Feb 10 2013 Tom Hughes <tom at compton.nu> - 5.0.4-1
+- Initial build of 5.0.4
diff --git a/sources b/sources
index e69de29..a0c80a2 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+592b356876a4e559e14295448ec0ae12  mapnik-reference-5.0.4.tgz


More information about the scm-commits mailing list