File twsgluum.spec of Package twsgluum
#
# spec file for package twsgluum
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: twsgluum
Version: 0.2.0.git37.185a2
Release: 0
Summary: Glue between IB's tws and unsermarkt
License: BSD-3-Clause
Group: Productivity/Text/Utilities
URL: https://github.com/hroptatyr/twsgluum/
Source: %{name}-%{version}.tar.xz
BuildRequires: gcc-c++
BuildRequires: libev-devel
BuildRequires: pkgconfig
BuildRequires: twsapi-devel
BuildRequires: unserding-devel
BuildRequires: unsermarkt-devel
BuildRequires: uterus-devel
BuildRequires: xz
%if 0%{?centos_version:1} || 0%{?fedora_version:1} || 0%{?rhel_version:1}
BuildRequires: expat-devel
%else
BuildRequires: libexpat-devel
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
These tools connect InteractiveBroker's TWSAPI to unserding networks
using the tick data encoders from uterus.
%prep
%setup -q
%build
# expat.pc is missing on most distros with expat < 2.1
if ! pkg-config --exists expat; then
export expat_CFLAGS=" "
export expat_LIBS="-lexpat"
fi
%configure --docdir=%{_docdir}/%{name}
make
%install
%{?make_install} %{!?make_install:make install DESTDIR=%{buildroot}}
%check
make check
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_bindir}/ox-tws
%{_bindir}/pf-tws
%{_bindir}/quo-tws
%changelog