Author: qboosh                       Date: Fri Jan  4 11:21:02 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- use optflags
- lib64-aware install

---- Files affected:
SPECS:
   Sockets.spec (1.3 -> 1.4) 

---- Diffs:

================================================================
Index: SPECS/Sockets.spec
diff -u SPECS/Sockets.spec:1.3 SPECS/Sockets.spec:1.4
--- SPECS/Sockets.spec:1.3      Fri Jan  4 11:37:41 2008
+++ SPECS/Sockets.spec  Fri Jan  4 12:20:57 2008
@@ -1,7 +1,6 @@
 # $Revision$, $Date$
 #
 # TODO:
-#      - pass CFLAGS
 #      - package docs
 #      - build shared library
 #
@@ -24,6 +23,7 @@
 URL:           http://www.alhem.net/Sockets/
 BuildRequires: libstdc++-devel
 BuildRequires: openssl-devel
+BuildRequires: sed >= 4.0
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -40,8 +40,12 @@
 %prep
 %setup -q
 
+sed -i -e 's,\$(PREFIX)/lib$,$(PREFIX)/%{_lib},' Makefile
+
 %build
-%{__make}
+%{__make} \
+       CXX="%{__cxx}" \
+       CFLAGS='%{rpmcxxflags} -Wall $(INCLUDE) -MD -D_VERSION=\"$(VERSION)\" 
-DLINUX'
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -57,9 +61,9 @@
 
 %files
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_bindir}/Sockets-config
 %{_includedir}/Sockets
-%{_libdir}/lib*.a
+%{_libdir}/libSockets.a
 %{_examplesdir}/%{name}-%{version}
 
 %define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -68,6 +72,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.4  2008-01-04 11:20:57  qboosh
+- use optflags
+- lib64-aware install
+
 Revision 1.3  2008-01-04 10:37:41  qboosh
 - pl
 
================================================================

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

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to