Author: glen                         Date: Mon Jan  7 16:21:39 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- based on spec from links2linux.de

---- Files affected:
SPECS:
   libhawknl.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/libhawknl.spec
diff -u /dev/null SPECS/libhawknl.spec:1.1
--- /dev/null   Mon Jan  7 17:21:39 2008
+++ SPECS/libhawknl.spec        Mon Jan  7 17:21:34 2008
@@ -0,0 +1,86 @@
+# $Revision$, $Date$
+Summary:       HawkNL is a free, open source, game oriented network API
+Name:          hawknl
+Version:       1.68
+Release:       0.1
+License:       LGPL
+Group:         Libraries
+URL:           http://www.hawksoft.com/hawknl/
+Source0:       http://www.sonic.net/~philf/download/HawkNL168src.tar.gz
+# Source0-md5: 2e4971d422b8c5cadfe2a85527ff2fcf
+Patch0:                %{name}-64bit.patch
+BuildRequires: dos2unix
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+HawkNL is a free, open source, game oriented network API released
+under the GNU Library General Public License (LGPL). 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:       DInclude Files and Libraries mandatory for development with 
hawknl
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+
+%description -n libhawknl-devel
+The hawknl-devel package contains libraries and header files for
+developing applications that use hawknl.
+
+%prep
+%setup -q -n %{name}%{version}
+%patch0 -p1
+
+dos2unix src/*.txt
+chmod 644 src/*.txt
+
+# some fixups
+%{__sed} -i 's|ln -s $(LIBDIR)/$(OUTPUT)|ln -s $(OUTPUT)|g' \
+       src/makefile.linux
+%{__sed} -i 's|-soname,NL.so|-soname,libNL.so|' \
+       src/makefile.linux
+
+%build
+%{__make} -f makefile.linux \
+       OPTFLAGS="$RPM_OPT_FLAGS -D_XOPEN_SOURCE=500"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -dm 755 $RPM_BUILD_ROOT%{_libdir}
+install -dm 755 $RPM_BUILD_ROOT%{_includedir}/hawknl
+%{__make} -f makefile.linux install \
+       LIBDIR=$RPM_BUILD_ROOT%{_libdir} \
+       INCDIR=$RPM_BUILD_ROOT%{_includedir}/hawknl
+
+rm $RPM_BUILD_ROOT%{_libdir}/NL.so
+
+%clean
+rm -rf  $RPM_BUILD_ROOT
+
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc src/readme.txt src/nlchanges.txt
+%attr(755,root,root) %{_libdir}/libNL.so.*
+
+%files -n libhawknl-devel
+%defattr(644,root,root,755)
+%dir %{_includedir}/hawknl
+%{_includedir}/hawknl/*
+%{_libdir}/libNL.a
+%{_libdir}/libNL.so
+
+%define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} RPM Team <[EMAIL PROTECTED]>
+All persons listed below can be reached at <cvs_login>@cvs.delfi.ee
+
+$Log$
+Revision 1.1  2008-01-07 16:21:34  glen
+- based on spec from links2linux.de
+
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to