Fix and update rippled.spec for rpm builds

This commit is contained in:
wilsonianb
2015-09-25 13:57:10 -07:00
committed by Nik Bougalis
parent d6b9cfcc34
commit c475b23c7d

View File

@@ -1,14 +1,18 @@
%define rippled_branch %(echo $RIPPLED_BRANCH)
Name: rippled Name: rippled
Version: 0.29.1-rc1 # Version must be limited to MAJOR.MINOR.PATCH
Release: 1%{?dist} Version: 0.29.1
# Release should include either the build or hotfix number (ex: hf1%{?dist} or b2%{?dist})
# If there is no b# or hf#, then use 1%{?dist}
Release: rc1%{?dist}
Summary: Ripple peer-to-peer network daemon Summary: Ripple peer-to-peer network daemon
Group: Applications/Internet Group: Applications/Internet
License: ISC License: ISC
URL: https://github.com/ripple/rippled URL: https://github.com/ripple/rippled
# curl -L -o SOURCES/rippled-release.zip https://github.com/ripple/rippled/archive/release.zip # curl -L -o SOURCES/rippled-release.zip https://github.com/ripple/rippled/archive/${RIPPLED_BRANCH}.zip
Source0: rippled-release.zip Source0: rippled-%{rippled_branch}.zip
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: gcc-c++ scons openssl-devel protobuf-devel BuildRequires: gcc-c++ scons openssl-devel protobuf-devel
@@ -20,13 +24,11 @@ Rippled is the server component of the Ripple network.
%prep %prep
%setup -n rippled-release %setup -n rippled-%{rippled_branch}
%build %build
# Assume boost is manually installed scons -j `grep -c processor /proc/cpuinfo`
export RIPPLED_BOOST_HOME=/usr/local/boost_1_55_0
scons -j `grep -c processor /proc/cpuinfo` build/rippled
%install %install
@@ -49,4 +51,4 @@ rm -rf %{buildroot}
%defattr(-,root,root,-) %defattr(-,root,root,-)
/usr/bin/rippled /usr/bin/rippled
/usr/share/rippled/LICENSE /usr/share/rippled/LICENSE
/etc/rippled/rippled-example.cfg %config(noreplace) /etc/rippled/rippled.cfg