Пакет libnl1: Specfile

%define _name libnl

Name: libnl1
Version: 1.1
Release: alt4

Summary: library for applications dealing with netlink sockets
License: LGPL
Group: System/Legacy libraries
Url: http://www.suug.ch/~tgr/libnl/
Packager: Alex V. Myltsev <avm@altlinux.ru>

Source: %_name-%version.tar
Source1: %_name.ver

Patch1: %_name-1.1-alt-version-script.patch

Provides: libnl = %version-%release
Obsoletes: libnl < %version-%release

%description
libnl is a library for applications dealing with netlink sockets. The library
provides an interface for raw netlink messaging and various netlink family
specific interfaces.

%package devel
Summary: header files for libnl1, a netlink sockets library
Group: System/Legacy libraries
Requires: %name = %version
Conflicts: libnl-devel

%description devel
libnl is a library for applications dealing with netlink sockets.

This package contains header files for libnl.

%prep
%setup -n %_name-%version
%patch1 -p2
cp %SOURCE1 lib/%_name.ver

%build
%configure
%make

%install
%makeinstall

%files
%_libdir/libnl.so.*

%files devel
%_libdir/libnl.so
%_includedir/netlink
%_pkgconfigdir/%_name-1.pc

%changelog
* Sun Mar 24 2013 Igor Vlasenko <viy@altlinux.ru> 1.1-alt4
- restored libnl1-devel (required for lldpad)

* Wed Feb 13 2013 Mikhail Efremov <sem@altlinux.org> 1.1-alt3
- Renamed libnl -> libnl1 and drop libnl-devel subpackage.
- Package as legacy library.

* Mon Mar 21 2011 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.1-alt2.qa2
- Rebuilt for debuginfo

* Wed Nov 03 2010 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.1-alt2.qa1.1
- Rebuilt for soname set-versions

* Tue Nov 10 2009 Repocop Q. A. Robot <repocop@altlinux.org> 1.1-alt2.qa1
- NMU (by repocop): the following fixes applied:
  * post_ldconfig for libnl
  * postun_ldconfig for libnl
  * postclean-05-filetriggers for spec file

* Wed Oct 29 2008 Alexander Myltsev <avm@altlinux.ru> 1.1-alt2
- fix building with glibc-2.8.

* Sat Mar 01 2008 Alex V. Myltsev <avm@altlinux.ru> 1.1-alt1
- new version as requested by altbug #14504.
- WARNING: upstream developers do not maintain their API/ABI,
  and I am not motivated enough to do anything about it.
  Use this package at your own risk.

* Sun Aug 13 2006 Alex V. Myltsev <avm@altlinux.ru> 1.0-alt1.svn30
- SVN version: builds on x86_64, etc.

* Sat Aug 12 2006 Alex V. Myltsev <avm@altlinux.ru> 1.0-alt0.pre5
- Initial build for Sisyphus.