File libsnet.spec of Package libsnet

#
# spec file for package libsnet
#
# Copyright (c) 2014 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:           libsnet
%define lname	libsnet0
Version:        0.1+
Release:        0
Summary:        Library to the SNET kernel interface
License:        LGPL-2.1
Group:          Productivity/Networking/Security
Url:            http://www.synack.fr/project/snet/snet.html

Source:         %name-%version.tar.xz
Source2:        LICENSE
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  autoconf
BuildRequires:  automake >= 1.10
BuildRequires:  libtool
BuildRequires:  pkgconfig
BuildRequires:  xz
BuildRequires:  pkgconfig(libnl-1)

%description

%package -n %lname
Summary:        Library to the SNET kernel interface
Group:          System/Libraries

%description -n %lname

%package devel
Summary:        Development files for libsnet
Group:          Development/Libraries/C and C++
Requires:       %lname = %version

%description devel

%prep
%setup -qn %name

%build
if [ ! -e configure ]; then
	./autogen.sh;
fi;
%configure --disable-static --includedir="%_includedir/%name"
make %{?_smp_mflags};

%install
%make_install
rm -f "%buildroot/%_libdir"/*.la;

%post   -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig

%files -n %lname
%defattr(-,root,root)
%_libdir/*.so.0*

%files devel
%defattr(-,root,root)
%_includedir/libsnet*
%_libdir/libsnet.so
%_libdir/pkgconfig/*

%changelog
openSUSE Build Service is sponsored by