Skip to content

Commit

Permalink
Merge pull request logrhythm#97 from Logrhythm/2.2.2
Browse files Browse the repository at this point in the history
2.2.2
  • Loading branch information
Ben Aldrich committed Dec 17, 2013
2 parents bd29df1 + 5af189d commit 9c12120
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
13 changes: 7 additions & 6 deletions packaging/protoBuffers.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Summary: Protocol Buffers are a way of encoding structured data in an efficient yet extensible format.
Name: protoBuffers
Version: 2.4.1
Version: 2.5.0
Release: 1%{?dist}
Group: Applications/System
License: http://opensource.org/licenses/BSD-3-Clause
Expand All @@ -18,21 +18,21 @@ Protocol Buffers are a way of encoding structured data in an efficient yet exten
%prep
export PATH=/usr/local/probe/bin:$PATH
cd ~/rpmbuild/BUILD
rm -rf protobuf-2.4.1
tar -xjvf ~/rpmbuild/SOURCES/protobuf-2.4.1.tar.bz2
cd protobuf-2.4.1
rm -rf protobuf-%{version}
tar -xjvf ~/rpmbuild/SOURCES/protobuf-%{version}.tar.bz2
cd protobuf-%{version}
chmod -R a+rX,g-w,o-w .
export GLOBAL_CPP_FLAGS="-fPIC"
env CPPFLAGS="$CPPFLAGS $GLOBAL_CPP_FLAGS" ./configure --prefix=/usr/local/probe
cd ..
%build
export PATH=/usr/local/probe/bin:$PATH
cd protobuf-2.4.1
cd protobuf-%{version}
make -j8

%install
export PATH=/usr/local/probe/bin:$PATH
cd protobuf-2.4.1
cd protobuf-%{version}
make install prefix=$RPM_BUILD_ROOT/usr/local/probe

%post
Expand All @@ -45,4 +45,5 @@ make install prefix=$RPM_BUILD_ROOT/usr/local/probe
%defattr(-,dpi,dpi,-)
/usr/local/probe/lib
/usr/local/probe/include
/usr/local/probe/bin/protoc

6 changes: 3 additions & 3 deletions scripts/buildProtoBuffersRpm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,17 @@
set -e

PACKAGE=protoBuffers
VERSION=2.4
VERSION=2.5.0

PWD=`pwd`
PATH=/usr/local/probe/bin:$PATH

sh scripts/buildProtoFiles.sh

rm -rf ~/rpmbuild
rpmdev-setuptree
cp $PWD/packaging/$PACKAGE.spec ~/rpmbuild/SPECS
cp thirdParty/protobuf-2.4.1.tar.bz2 ~/rpmbuild/SOURCES
cp thirdParty/protobuf-$VERSION.tar.bz2 ~/rpmbuild/SOURCES
cd ~/rpmbuild
QA_RPATHS=$[ 0x0020|0x0002 ] rpmbuild -v -bb --target=x86_64 ~/rpmbuild/SPECS/$PACKAGE.spec

sh scripts/buildProtoFiles.sh
Binary file added thirdParty/protobuf-2.5.0.tar.bz2
Binary file not shown.

0 comments on commit 9c12120

Please sign in to comment.