Files
wvstreams/wvstreams.spec

115 lines
3.6 KiB
RPMSpec

#
# spec file for package wvstreams
#
# Copyright (c) 2022 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%global _lto_cflags %{?_lto_cflags} -ffat-lto-objects
Name: wvstreams
Version: 4.6.1
Release: 0
Summary: Network Programming Library in C++
License: LGPL-2.1-or-later
Group: Development/Libraries/Other
#Git-Clone: https://github.com/apenwarr/wvstreams.git
URL: https://web.archive.org/web/20110504183753/http://alumnit.ca:80/wiki/index.php?page=WvDial
Source: https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/wvstreams/%{name}-%{version}.tar.gz
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: pam-devel
BuildRequires: pkgconfig
BuildRequires: zlib-devel
BuildRequires: libopenssl-1_0_0-devel
#fixed multilib issue
Patch1: wvstreams-4.6.1-multilib.patch
#install-xplc target was missing
Patch2: wvstreams-4.5-noxplctarget.patch
#Fix parallel build
Patch3: wvstreams-4.6.1-make.patch
#sys/stat.h is missing some files
Patch4: wvstreams-4.6.1-statinclude.patch
Patch5: wvstreams-openssl.patch
# fix missing unistd.h header for gcc 4.7
Patch6: wvstreams-4.6.1-gcc47.patch
Patch7: wvstreams-4.6.1-magic.patch
Patch8: 0001-Use-explicit-cast-and-prevent-compiler-error.patch
Patch9: wvstreams-4.6.1-fix-stack-size.patch
Patch10: 0001-Fix-narrowing-conversion-error.patch
Patch11: wvstreams-4.6.1-use_DEFAULT_SOURCE.patch
%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.
%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.
%prep
%autosetup -p1
%build
export CXXFLAGS="%{optflags} -fPIC -fpermissive -fno-strict-aliasing -fno-tree-dce -fno-optimize-sibling-calls"
export CFLAGS="%{optflags} -fPIC -fno-strict-aliasing"
touch configure
%configure --with-dbus=no \
--with-pam \
--with-openssl \
--without-tcl \
--with-qt=no \
--disable-optimization \
--enable-verbose
%make_build %{?_smp_mflags}
%install
%make_install
rm %{buildroot}/%{_libdir}/valgrind/wvstreams.supp
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%license LICENSE
%doc README
%{_libdir}/*.so.*
%{_bindir}/uni
%{_sbindir}/uniconfd
%{_bindir}/wvtestrun
%{_mandir}/man8/*
%config(noreplace) %{_sysconfdir}/uniconf.conf
%config %{_localstatedir}/lib/uniconf
%files devel
%{_includedir}/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