Commit a25392aa authored by Geoff Simmons's avatar Geoff Simmons

libactivemq-cpp packaging more robust about version numbers

parent d79f986d
......@@ -16,9 +16,9 @@ BuildRequires: openldap-devel
BuildRequires: openssl-devel
%endif
Name: activemq-cpp-library
Version: 3.8.1
Version: %{?version}
Source0: %{name}-%{version}-src.tar.bz2
Release: 1
Release: %{?build_number}
Summary: A C++ library to interact with Apache ActiveMQ
Group: Development/Libraries/C and C++
License: Apache
......@@ -72,7 +72,7 @@ rm -rf $RPM_BUILD_ROOT
%defattr(-, root, root)
%{_bindir}/activemqcpp-config
%{_includedir}/activemq-cpp-3.8.1
%{_includedir}/activemq-cpp-%{version}
%{_libdir}/pkgconfig/*.pc
%{_libdir}/*.a
%{_libdir}/*.la
......
#/bin/sh
GLOBAL_STATUS=0
VERSION=3.8.1
VERSION=3.8.2
URL=http://apache.openmirror.de/activemq/activemq-cpp/source
URL=http://apache.openmirror.de/activemq/activemq-cpp/$VERSION
TARBALL=activemq-cpp-library-$VERSION-src.tar.bz2
for DIR in BUILD BUILDROOT RPMS SOURCES SRPMS SPECS
......@@ -25,4 +25,6 @@ BUILDROOTPATH=$BUILDROOTPREFIX/$PKGNAME
cd $WORKSPACE/libactivemq/rpmbuild
rpmbuild \
--define '_topdir '$WORKSPACE/libactivemq/rpmbuild \
--define 'version '$VERSION \
--define 'build_number '$BUILD_NUMBER \
--buildroot $BUILDROOTPATH -bb SPECS/activemq-cpp.spec
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment