Files
SocketW/SocketW.spec

82 lines
3.1 KiB
RPMSpec

#
# spec file for package SocketW
#
# Copyright (c) 2012 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: SocketW
Version: 031026
Release: 0
%define soname 0
Summary: It is a streaming socket C++ library designed to be easy to use
License: LGPL-2.1
Group: Development/Libraries/C and C++
Url: http://www.digitalfanatics.org/cal/socketw/
Source: %{name}%{version}.tar.bz2
# PATCH-FIX-OPENSUSE SocketW-path.patch
Patch0: %{name}-path.patch
# PATCH-FIX-UPSTREAM SocketW-gcc47.patch
Patch1: %{name}-gcc47.patch
BuildRequires: gcc-c++
BuildRequires: pkgconfig(openssl) < 1.1
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
It supports Unix sockets and TCP/IP sockets with optional SSL/TLS (OpenSSL) support. It allows you to write portable and secure network applications quickly without needing to spend time learning low-level system functions or reading OpenSSL manuals.
%package -n libSocketW%{soname}
Summary: It is a streaming socket C++ library designed to be easy to use
Group: System/Libraries
%description -n libSocketW%{soname}
It supports Unix sockets and TCP/IP sockets with optional SSL/TLS (OpenSSL) support. It allows you to write portable and secure network applications quickly without needing to spend time learning low-level system functions or reading OpenSSL manuals.
%package -n libSocketW-devel
Summary: It is a streaming socket C++ library designed to be easy to use
Group: Development/Libraries/C and C++
Requires: libSocketW%{soname} = %{version}
%description -n libSocketW-devel
It supports Unix sockets and TCP/IP sockets with optional SSL/TLS (OpenSSL) support. It allows you to write portable and secure network applications quickly without needing to spend time learning low-level system functions or reading OpenSSL manuals.
%post -n libSocketW%{soname} -p /sbin/ldconfig
%postun -n libSocketW%{soname} -p /sbin/ldconfig
%prep
%setup -q -n %{name}%{version}
%patch0 -p1
%patch1 -p1
%build
make %{?_smp_mflags} shared
%install
make DESTDIR=%{buildroot} PREFIX=%{buildroot}%{_prefix} PREFIX_H=%{buildroot}%{_includedir}/%{name} PREFIX_L=%{buildroot}%{_libdir} install
%files -n libSocketW%{soname}
%defattr(-,root,root)
%doc LICENSE README WhatsNew
%{_libdir}/libSocketW.so.%{soname}
%{_libdir}/libSocketW.so.%{soname}.*
%files -n libSocketW-devel
%defattr(-,root,root)
%{_includedir}/%{name}/
%{_libdir}/libSocketW.a
%{_libdir}/libSocketW.so
%changelog