[suggest] .spec for new package: HawkNL 1.68 (network library)

Vincent Knecht vknecht at club-internet.fr
Sun Jul 30 21:45:54 CEST 2006


  here's a .spec for HawkNL 1.68.
It's a bit clumsy since HawkNL doesn't support autoconfig/automake,
but it works for me...
I had to comment the symbolic linking stuff in src/makefile.linux which
create symlinks for libNL.so.1.6.8 to libNL.so.1.6 and libNL.so.1.
Not sure that's important...

-------------- next part --------------
# Authority:
# Upstream: Phil Frisbie Jr <phil$hawksoft,com>

%define usr   /usr

Summary: HawkNL, a portable network library.
Name: HawkNL
Version: 1.68
Release: 1.rf
License: LGPL
Group: Development/Libraries
URL: http://www.hawksoft.com/

Source: http://www.hawksoft.com/download/files/HawkNL168src.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: gcc

HawkNL (NL) is a fairly low level API, a wrapper over Berkeley/Unix Sockets
and Winsock. But NL also provides other features including support for many
OSs, groups of sockets, socket statistics, high accuracy timer, CRC functions,
macros to read and write data to packets with endian conversion, and support
for multiple network transports.

%package devel
Summary: Header files, libraries and development documentation for %{name}.
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}

%description devel
This package contains the header files, static libraries and development
documentation for %{name}. If you like to develop programs using %{name},
you will need to install %{name}-devel.

%setup -n hawknl%{version}
%{__cp} makefile.linux Makefile
sed -i 's;/usr/local;%{buildroot}/%{usr};g' src/makefile.linux
sed -i 's;ln -s;#ln -s;g' src/makefile.linux

%{__make} %{?_smp_mflags}

%{__rm} -rf %{buildroot}
%{__mkdir} -p %{buildroot}/%{usr}/lib
%{__mkdir} -p %{buildroot}/%{usr}/include

%{__rm} -rf %{buildroot}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%defattr(-, root, root, 0755)

%files devel
%defattr(-, root, root, 0755)
%doc samples/*

* Sun Jul 30 2006 Vincent Knecht <vknecht at users.sourceforge.net> - 1.68-1
- Initial packaging.

More information about the users mailing list