[erlang-jiffy] Import erlang-jiffy-0.8.5-3.el7.src.rpm
Lubomir Rintel
lkundrak at fedoraproject.org
Thu Mar 13 06:57:30 UTC 2014
commit 1ea286fac311d178c7b85814b311a91de9d88069
Author: Lubomir Rintel <lkundrak at v3.sk>
Date: Thu Mar 13 07:57:08 2014 +0100
Import erlang-jiffy-0.8.5-3.el7.src.rpm
.gitignore | 1 +
erlang-jiffy.spec | 92 +++++++++++++++++++++++++++++++++++
jiffy-cxxflags.patch | 26 ++++++++++
jiffy-setting-a-fixed-version.patch | 27 ++++++++++
sources | 1 +
5 files changed, 147 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..9a11f1e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/0.8.5.tar.gz
diff --git a/erlang-jiffy.spec b/erlang-jiffy.spec
new file mode 100644
index 0000000..a4e7138
--- /dev/null
+++ b/erlang-jiffy.spec
@@ -0,0 +1,92 @@
+%global realname jiffy
+
+Name: erlang-%{realname}
+Version: 0.8.5
+Release: 3%{?dist}
+Summary: Erlang JSON parser
+Group: Development/Libraries
+License: MIT
+URL: https://github.com/davisp/jiffy
+Source0: https://github.com/davisp/jiffy/archive/%{version}.tar.gz
+Patch0: jiffy-setting-a-fixed-version.patch
+Patch1: jiffy-cxxflags.patch
+
+BuildRequires: erlang >= R14B
+BuildRequires: erlang-rebar
+BuildRequires: gcc-c++
+
+Requires: erlang-kernel%{?_isa}
+
+Provides: %{realname} = %{version}
+Obsoletes: %{realname} < %{version}
+
+%description
+A JSON parser for Erlang implemented as a NIF.
+
+
+%prep
+%setup -q -n %{realname}-%{version}
+%patch0 -p1 -b .version
+%patch1 -p1 -b .cxxflags
+
+
+%build
+CXXFLAGS="%{optflags}" CFLAGS="%{optflags}" rebar compile -vv
+
+
+%install
+install -d $RPM_BUILD_ROOT%{_libdir}/erlang/lib/%{realname}-%{version}
+install -d $RPM_BUILD_ROOT%{_libdir}/erlang/lib/%{realname}-%{version}/priv
+install -d $RPM_BUILD_ROOT%{_libdir}/erlang/lib/%{realname}-%{version}/ebin
+
+install -pm644 ebin/jiffy.beam $RPM_BUILD_ROOT%{_libdir}/erlang/lib/%{realname}-%{version}/ebin
+install -pm644 ebin/jiffy_utf8.beam $RPM_BUILD_ROOT%{_libdir}/erlang/lib/%{realname}-%{version}/ebin
+install -pm644 ebin/jiffy.app $RPM_BUILD_ROOT%{_libdir}/erlang/lib/%{realname}-%{version}/ebin
+install -p priv/jiffy.so $RPM_BUILD_ROOT%{_libdir}/erlang/lib/%{realname}-%{version}/priv
+
+
+%files
+%{_libdir}/erlang/lib/%{realname}-%{version}
+%doc LICENSE README.md
+
+
+%changelog
+* Wed Mar 12 2014 Lubomir Rintel (GoodData) <lubo.rintel at gooddata.com> - 0.8.5-3
+- Fix version number in version patch
+
+* Wed Mar 12 2014 Lubomir Rintel (GoodData) <lubo.rintel at gooddata.com> - 0.8.5-2
+- Bring back Filip's version patch
+- Rename to erlang-jiffy
+- Adjust c++ requirement, as suggested by sir Andres
+
+* Tue Mar 11 2014 Lubomir Rintel (GoodData) <lubo.rintel at gooddata.com> - 0.8.5-1
+- New version
+- Remove the plt file
+- Remove empty scriptlets
+- Use correct compiler flags
+- Remove artifacts not used by modern RPM
+- Own the module directory
+- Do not use bundled rebar
+- No need for explicit GCC dependency
+- Relax dependency on complete Erlang distribution
+- Remove deproper patch
+- Add documentation
+- Fix library file mode
+
+* Thu Jul 18 2013 Filip Andres <filip.andres at gooddata.com> - 0.8.3-1.gdc2
+* Correcting the version inside jiffy.app and including jiffy_utf8
+
+* Fri May 17 2013 Filip Andres <filip.andres at gooddata.com> - 0.8.3-1.gdc1
+* Updating to 0.8.3
+
+* Thu Jan 03 2013 Filip Andres <filip.andres at gooddata.com> - 0.6.1-1.gdc3
+- Packaging the plt file with the rest of jiffy
+
+* Wed Jan 02 2013 Filip Andres <filip.andres at gooddata.com> - 0.6.1-1.gdc2
+- Building plt
+
+* Mon Dec 10 2012 Filip Andres <filip.andres at gooddata.com> - 0.6.1-1.gdc1
+- Imported version 0.6.1
+
+* Mon Apr 16 2012 Filip Andres <filip.andres at gooddata.com> - 0.4.1
+- Initial packaging
diff --git a/jiffy-cxxflags.patch b/jiffy-cxxflags.patch
new file mode 100644
index 0000000..c59fae5
--- /dev/null
+++ b/jiffy-cxxflags.patch
@@ -0,0 +1,26 @@
+From f82fcc0398807f5c2bb15ea79fbd3b45a069c3c4 Mon Sep 17 00:00:00 2001
+From: Lubomir Rintel <lkundrak at v3.sk>
+Date: Mon, 10 Mar 2014 16:09:06 +0100
+Subject: [PATCH] Do not override CFLAGS
+
+We don't like Werror there.
+---
+ rebar.config | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/rebar.config b/rebar.config
+index f992d04..2c1c9df 100644
+--- a/rebar.config
++++ b/rebar.config
+@@ -7,8 +7,6 @@
+ ]}.
+
+ {port_env, [
+- {".*", "CXXFLAGS", "$CXXFLAGS -g -Wall -Werror -O3"},
+-
+ {"(linux|solaris|freebsd|netbsd|openbsd|dragonfly|darwin)",
+ "LDFLAGS", "$LDFLAGS -lstdc++"},
+
+--
+1.8.3.1
+
diff --git a/jiffy-setting-a-fixed-version.patch b/jiffy-setting-a-fixed-version.patch
new file mode 100644
index 0000000..9a477fb
--- /dev/null
+++ b/jiffy-setting-a-fixed-version.patch
@@ -0,0 +1,27 @@
+From 12faef1459c2447925edbd5806d61b59be1734a5 Mon Sep 17 00:00:00 2001
+From: Filip Andres <filip.andres at gooddata.com>
+Date: Mon, 16 Apr 2012 10:57:13 +0200
+Subject: [PATCH] setting a fixed version
+
+[lubo.rintel at gooddata.com: Otherwise rebar tries to determine it using git
+describe, which won't work for a tarred tree.]
+
+---
+ src/jiffy.app.src | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/src/jiffy.app.src b/src/jiffy.app.src
+index 4ea304a..a0f6af3 100644
+--- a/src/jiffy.app.src
++++ b/src/jiffy.app.src
+@@ -1,6 +1,6 @@
+ {application, jiffy, [
+ {description, "JSON Decoder/Encoder."},
+- {vsn, git},
++ {vsn, "0.8.5"},
+ {registered, []},
+ {applications, [kernel]}
+ ]}.
+--
+1.7.8.4
+
diff --git a/sources b/sources
index e69de29..8514fd4 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+19fb2adcb37423b59534f08787298d17 0.8.5.tar.gz
More information about the scm-commits
mailing list