File wvstreams.spec of Package wvstreams
#
# spec file for package wvstreams
#
# Copyright (c) 2015 SUSE LINUX 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: wvstreams
Url: http://alumnit.ca/wiki/?WvStreams
BuildRequires: gcc-c++
BuildRequires: openssl-devel
BuildRequires: pam-devel
BuildRequires: pkgconfig
BuildRequires: zlib-devel
Version: 4.4.1
Release: 0
Summary: Network Programming Library in C++
License: LGPL-2.1+
Group: Development/Libraries/Other
Source0: http://open.nit.ca/download/%{name}-%{version}.tar.bz2
Patch0: set-empty.diff
Patch1: sentinel.diff
Patch2: 73045.diff
Patch4: wvcrash.diff
Patch5: wvstreams-wvmodem-iotcl.patch
Patch8: wvstreams-gcc43.patch
Patch9: wvstreams-openssl.patch
Patch10: wvstreams-headers.patch
Patch11: wvstreams-gcc47.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
A network programming library in C++. It aims to be an efficient,
secure, easy to use, and OS-independent library for network application
development.
Authors:
--------
Net Integration Technologies, Inc.
%package devel
Summary: Network Programming Library in C++
Group: Development/Libraries/Other
Requires: libstdc++-devel
Requires: openssl-devel
Requires: wvstreams = %{version}
%description devel
A network programming library in C++. It aims to be an efficient,
secure, easy to use, and OS-independent library for network application
development.
Authors:
--------
Net Integration Technologies, Inc.
%prep
%setup -q
%patch0
%patch1
%patch2
%patch4
%patch5
%patch8
%patch9 -p1
%patch10 -p1
%patch11 -p1
%build
# This package failed when testing with -Wl,-as-needed being default.
# So we disable it here, if you want to retest, just delete this comment and the line below.
export SUSE_ASNEEDED=0
export CFLAGS="$RPM_OPT_FLAGS -fgnu89-inline -fPIC -DOPENSSL_LOAD_CONF"
export COPTS="$CFLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS -DOPENSSL_LOAD_CONF -fPIC -fno-strict-aliasing -fno-tree-dce -fno-optimize-sibling-calls -fvisibility-inlines-hidden"
export CXXOPTS="$CXXFLAGS"
%configure --disable-static --enable-verbose
make %{?_smp_mflags}
%install
export SUSE_ASNEEDED=0
make install DESTDIR=%{buildroot}
rm %{buildroot}/%_libdir/valgrind/wvstreams.supp
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr (-, root, root)
%doc COPYING.LIB README
%{_libdir}/*.so.*
/usr/bin/uni
/usr/sbin/uniconfd
/usr/bin/wvtesthelper
/usr/bin/wvtestmeter
%doc %{_mandir}/man8/*
%config(noreplace) /etc/uniconf.conf
%config /var/lib/uniconf
%files devel
%defattr (-, root, root)
/usr/include/wvstreams
%{_libdir}/pkgconfig/*.pc
%exclude %{_libdir}/libuniconf.a
%exclude %{_libdir}/libwvbase.a
%exclude %{_libdir}/libwvstreams.a
%exclude %{_libdir}/libwvutils.a
%{_libdir}/*.a
%{_libdir}/*.so
%changelog