File skstream.spec of Package skstream

#
# spec file for package skstream
#
# 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/
#

%define libsuffix 0.3
%define soname 0_3-7
Name:           skstream
Version:        0.3.9
Release:        0
Summary:        An iostream socket library
License:        GPL-2.0
Group:          Development/Languages/C and C++
Url:            http://www.worldforge.org/dev/eng/libraries/skstream
Source:         %{name}-%{version}.tar.bz2
BuildRequires:  automake
BuildRequires:  gcc-c++
BuildRequires:  libstdc++-devel
BuildRequires:  libtool
BuildRequires:  pkg-config
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Skstream is an iostream based socket library in C++. It is based on
the Freesockets library, and has been packaged for use by WorldForge.

%package -n lib%{name}-%{soname}
Summary:        An iostream socket library headers and static libs
Group:          Development/Languages/C and C++

%description -n lib%{name}-%{soname}
%{name} is an iostream based socket library in C++. It is based on
the Freesockets library, and has been packaged for use by WorldForge.

%package devel
Summary:        An iostream socket library headers and static libs
Group:          Development/Languages/C and C++
Requires:       lib%{name}-%{soname} = %{version}

%description devel
%{name} is an iostream based socket library in C++. It is based on
the Freesockets library, and has been packaged for use by WorldForge.

%prep
%setup -q

%build
autoreconf -fi
export CFLAGS="%{optflags} -fno-strict-aliasing"
export CPPFLAGS="$CFLAGS"
%configure
make %{?_smp_mflags}

%install
make DESTDIR=%{buildroot} install

%post -n lib%{name}-%{soname} -p /sbin/ldconfig

%postun -n lib%{name}-%{soname} -p /sbin/ldconfig

%files -n lib%{name}-%{soname}
%defattr(-,root,root)
%doc AUTHORS COPYING
%{_libdir}/lib*.so.*

%files devel
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README
%{_libdir}/lib*.so
%{_libdir}/lib*.la
%{_libdir}/pkgconfig/*
%{_includedir}/%{name}-%{libsuffix}
%{_libdir}/%{name}-%{libsuffix}

%changelog
openSUSE Build Service is sponsored by