%global checkout 589 %global date 20160916 Name: libsbw Summary: C++ Broker library Version: 2.11.1 Release: 13.%{date}svn%{checkout}%{?dist} URL: http://sourceforge.net/projects/sbw/ ## Source archive from svn #{checkout}; obtained by: ## svn checkout http://svn.code.sf.net/p/sbw/code/trunk/core sbw-core ## rm -rf sbw-core/.svn ## tar -czvf libsbw-svn{checkout}.tar.gz sbw-core Source0: libsbw-svn%{checkout}.tar.gz License: BSD BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: zlib-devel BuildRequires: tcp_wrappers-devel BuildRequires: libxml2-devel BuildRequires: dos2unix BuildRequires: help2man %description The Systems Biology Workbench (SBW) is a framework for application intercommunications. It uses a broker-based, distributed, message-passing architecture, supports many languages including Java, C++, Perl & Python, and runs under Linux,OSX & Win32. By default, the Broker opens a port for inter-Broker communications by searching for the first free port in the range 10102 through 10202, inclusive. By default, in Fedora this port range is not opened. See man-page for further informations. libSBW is the C++ Broker port from the original SBW Broker (written in Java) to C++. The current version implements all the functionality for the local side. Meaning if you will just use the Broker on a single machine you should be fine using the C++ Broker. %package devel Summary: Development files of libSBW Requires: %{name}%{?_isa} = %{version}-%{release} %description devel This package provides header files, shared and static library files of libSBW. ##Static library may be useful for COPASI build %package static Summary: Static library of libSBW Requires: %{name}-devel%{?_isa} = %{version}-%{release} %description static This package provides static library file of libSBW. %prep %setup -n sbw-core -q dos2unix ReadMe.txt rm -rf VisualStudio ##Remove bundled/pre-compiled files rm -rf bin/* rm -rf include/libxml include/iconv.h include/libcharset.h include/localcharset.h %build mkdir -p build && cd build export CXXFLAGS="%{optflags} -Wl,-z,now -Wno-deprecated" export LDFLAGS="%{__global_ldflags} -Wl,-z,now -Wl,--as-needed" %cmake -Wno-cpp \ -DLIBXML_INCLUDE_DIR:PATH=%{_includedir}/libxml2 -DLIBXML_LIBRARY:FILEPATH="-L%{_libdir} -lxml2" \ -DCMAKE_BUILD_TYPE:STRING=Release -DCMAKE_INSTALL_LIBDIR:PATH=%{_libdir} -DWITH_STRICT_INCLUDES:BOOL=ON \ -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} -DWITH_BUILD_BROKER:BOOL=ON -DWITH_BUILD_SHARED:BOOL=ON \ -DCMAKE_VERBOSE_MAKEFILE:BOOL=TRUE -DCMAKE_COLOR_MAKEFILE:BOOL=ON -DWITH_BUILD_STATIC:BOOL=ON \ -DCPACK_BINARY_TZ:BOOL=OFF -DCPACK_BINARY_TGZ:BOOL=OFF -DCPACK_SOURCE_TBZ2:BOOL=OFF \ -DCPACK_SOURCE_TGZ:BOOL=OFF -DCPACK_SOURCE_TZ:BOOL=OFF \ -DCMAKE_SKIP_INSTALL_RPATH:BOOL=YES -DCMAKE_SKIP_RPATH:BOOL=YES .. make %{?_smp_mflags} %install export LIBDIR=%{_libdir} make -C build DESTDIR=$RPM_BUILD_ROOT install ## Make Broker man page cd build/SBWBroker help2man ./Broker -o Broker.1 --version-string=%{version} mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 install -pm 644 Broker.1 $RPM_BUILD_ROOT%{_mandir}/man1 %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %doc ReadMe.txt VERSION %license LICENSE %{_bindir}/Broker %{_libdir}/libSBW.so.* %{_mandir}/man1/Broker.1* %files devel %{_libdir}/libSBW.so %{_includedir}/SBW/ %files static %{_libdir}/libSBW-static.a %changelog * Wed Nov 02 2016 Antonio Trande - 2.11.1-13.20160916svn589 - Update to latest commit (#589) * Sun Apr 10 2016 Antonio Trande - 2.11.1-12.20160105svn582 - Update to latest commit (#582) * Thu Feb 04 2016 Fedora Release Engineering - 2.11.1-11.20150414svn579 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Sun Nov 01 2015 Antonio Trande 2.11.1-10.20150414svn579 - Hardened builds on - 2.11.1-9.20150414svn579 - Rebuild for cmake 3.4.0 * Wed Jun 17 2015 Fedora Release Engineering - 2.11.1-8.20150414svn579 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Tue Jun 09 2015 Antonio Trande - 2.11.1-7.20150414svn579 - 'static' sub-package requires the 'devel' one * Tue Jun 09 2015 Antonio Trande - 2.11.1-6.20150414svn579 - Make a standalone package for static library * Tue Jun 09 2015 Antonio Trande - 2.11.1-5.20150414svn579 - Removed iconv.h bundled file - Description improved * Sun May 31 2015 Antonio Trande - 2.11.1-4.20150414svn579 - Update to svn post-release #579 - Packaged Broker manpage * Fri Jan 09 2015 Antonio Trande - 2.11.1-3 - Added SKIP_INSTALL_RPATH/CMAKE_SKIP_RPATH options - Static file packaged again; seems necessary at building time * Thu Jan 01 2015 Antonio Trande - 2.11.1-2 - Excluded static library packaging * Wed Dec 31 2014 Antonio Trande - 2.11.1-1 - Update to 2.11.1 * Sun Dec 28 2014 Antonio Trande - 2.10.0-1 - First package