Author: arvenil Date: Sat Sep 29 16:01:18 2007 GMT Module: SPECS Tag: HEAD ---- Log message: - init
---- Files affected: SPECS: hawknl.spec (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: SPECS/hawknl.spec diff -u /dev/null SPECS/hawknl.spec:1.1 --- /dev/null Sat Sep 29 18:01:18 2007 +++ SPECS/hawknl.spec Sat Sep 29 18:01:13 2007 @@ -0,0 +1,99 @@ +# $Revision$, $Date$ +# TODO: +# - There are two more simlinks created by makefile: libNL.so.1 and libNL.so.1.6 +# Should they be in package? ldconfig doesn't create them. +# Someting is wrong. I give up. +# - pl summary and descryption +%define _name HawkNL +Summary: Game oriented network API +Name: hawknl +Version: 1.68 +Release: 0.1 +License: LGPL +Group: Libraries +Source0: http://www.hawksoft.com/download/files/%{_name}%(echo %{version} |tr -d .)src.tar.gz +# Source0-md5: 2e4971d422b8c5cadfe2a85527ff2fcf +Patch0: %{name}-makefile.patch +URL: http://www.hawksoft.com/hawknl/ +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +HawkNL is a game oriented network API. 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 for HawkNL library +Summary(pl.UTF-8): Pliki nagłówkowe biblioteki HawkNL +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +Header files for HawkNL library. + +%description devel -l pl.UTF-8 +Pliki nagłówkowe biblioteki HawkNL. + +%package static +Summary: Static HawkNL library +Summary(pl.UTF-8): Statyczna biblioteka HawkNL +Group: Development/Libraries +Requires: %{name}-devel = %{version}-%{release} + +%description static +Static HawkNL library. + +%description static -l pl.UTF-8 +Statyczna biblioteka HawkNL. + +%prep +%setup -q -n %{name}%{version} +%patch0 -p1 +mv -f makefile.linux Makefile + +%build +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT + +install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}} + +%{__make} install \ + LIBDIR=%{_libdir} \ + INCDIR=%{_includedir} \ + DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/libNL.so.*.*.* +%ghost %attr(755,root,root) %{_libdir}/NL.so.?.? + +%files devel +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/libNL.so +%attr(755,root,root) %{_libdir}/NL.so +%{_includedir}/nl.h + +%files static +%defattr(644,root,root,755) +%{_libdir}/libNL.a + +%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) +%changelog +* %{date} PLD Team <[EMAIL PROTECTED]> +All persons listed below can be reached at <cvs_login>@pld-linux.org + +$Log$ +Revision 1.1 2007/09/29 16:01:13 arvenil +- init + ================================================================ _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
