SPECS: hawknl.spec - updated makefile patch, fixed symlink mess - ...

qboosh qboosh at pld-linux.org
Sun Jan 13 10:30:39 CET 2008


Author: qboosh                       Date: Sun Jan 13 09:30:39 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- updated makefile patch, fixed symlink mess
- use optflags

---- Files affected:
SPECS:
   hawknl.spec (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SPECS/hawknl.spec
diff -u SPECS/hawknl.spec:1.2 SPECS/hawknl.spec:1.3
--- SPECS/hawknl.spec:1.2	Sun Jan 13 10:18:29 2008
+++ SPECS/hawknl.spec	Sun Jan 13 10:30:34 2008
@@ -1,17 +1,12 @@
 # $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.
-%define	_name	HawkNL
 Summary:	Game oriented network API
 Summary(pl.UTF-8):	API sieciowe zorientowane na gry
 Name:		hawknl
 Version:	1.68
 Release:	0.1
-License:	LGPL
+License:	LGPL v2+
 Group:		Libraries
-Source0:	http://www.hawksoft.com/download/files/%{_name}%(echo %{version} |tr -d .)src.tar.gz
+Source0:	http://www.hawksoft.com/download/files/HawkNL%(echo %{version} |tr -d .)src.tar.gz
 # Source0-md5:	2e4971d422b8c5cadfe2a85527ff2fcf
 Patch0:		%{name}-makefile.patch
 URL:		http://www.hawksoft.com/hawknl/
@@ -61,17 +56,17 @@
 %prep
 %setup -q -n %{name}%{version}
 %patch0 -p1
-mv -f makefile.linux Makefile
 
 %build
-%{__make}
+%{__make} -f makefile.linux \
+	CC="%{__cc}" \
+	OPTFLAGS="%{rpmcflags} -ffast-math%{!?debug: -fomit-frame-pointer}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
-
 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}}
 
-%{__make} install \
+%{__make} -f makefile.linux install \
 	LIBDIR=%{_libdir} \
 	INCDIR=%{_includedir} \
 	DESTDIR=$RPM_BUILD_ROOT
@@ -85,12 +80,11 @@
 %files
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libNL.so.*.*.*
-%ghost %attr(755,root,root) %{_libdir}/NL.so.?.?
+%attr(755,root,root) %ghost %{_libdir}/libNL.so.1.6
 
 %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
@@ -103,6 +97,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.3  2008-01-13 09:30:34  qboosh
+- updated makefile patch, fixed symlink mess
+- use optflags
+
 Revision 1.2  2008-01-13 09:18:29  qboosh
 - pl summary and description (but not "descryption")
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/hawknl.spec?r1=1.2&r2=1.3&f=u



More information about the pld-cvs-commit mailing list