packages (PTLIB_2_8): ptlib/ptlib.spec - better passing of %{rpmcflags} and...
jajcus
jajcus at pld-linux.org
Thu Apr 28 13:13:08 CEST 2011
Author: jajcus Date: Thu Apr 28 11:13:08 2011 GMT
Module: packages Tag: PTLIB_2_8
---- Log message:
- better passing of %{rpmcflags} and %{rpmldflags}
- use verbose build so the flags used are visible
- do not include all static libraries from the build system
- set executable bit on shared libraries, so their debuginfo is extracted
---- Files affected:
packages/ptlib:
ptlib.spec (1.25 -> 1.25.2.1)
---- Diffs:
================================================================
Index: packages/ptlib/ptlib.spec
diff -u packages/ptlib/ptlib.spec:1.25 packages/ptlib/ptlib.spec:1.25.2.1
--- packages/ptlib/ptlib.spec:1.25 Mon Jan 3 09:57:39 2011
+++ packages/ptlib/ptlib.spec Thu Apr 28 13:13:03 2011
@@ -1,6 +1,4 @@
# $Revision$, $Date$
-# TODO:
-# IPv6 support disabled ('NULL' undeclared)
#
# Conditional build:
%bcond_without http # Disable http support
@@ -197,9 +195,11 @@
dir=$(pwd)
%{__make} %{?debug:debugshared}%{!?debug:optshared} \
+ V=1 \
PTLIBMAKEDIR="$dir/make" \
PTLIBDIR="$dir" \
- OPTCCFLAGS="%{rpmcflags} %{!?debug:-DNDEBUG}"\
+ CFLAGS="%{rpmcflags} %{!?debug:-DNDEBUG} -DUSE_GCC" \
+ LDFLAGS="%{rpmcflags} %{rpmldflags} %{!?debug:-DNDEBUG}" \
CXX="%{__cxx}"
@@ -210,13 +210,16 @@
dir=$(pwd)
%{__make} install \
+ V=1 \
DESTDIR=$RPM_BUILD_ROOT
-cp -d %{_libdir}/lib*.a $RPM_BUILD_ROOT%{_libdir}
cp version.h $RPM_BUILD_ROOT%{_includedir}/%{name}
sed -i -e 's#PTLIBDIR=.*#PTLIBDIR=%{_datadir}/ptlib#g' $RPM_BUILD_ROOT%{_datadir}/ptlib/make/plugins.mak
+chmod a+x $RPM_BUILD_ROOT%{_libdir}/lib*.so.*
+find $RPM_BUILD_ROOT%{_libdir}/ptlib-* -name '*.so' | xargs chmod a+x
+
%clean
rm -rf $RPM_BUILD_ROOT
@@ -282,6 +285,12 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.25.2.1 2011/04/28 11:13:03 jajcus
+- better passing of %{rpmcflags} and %{rpmldflags}
+- use verbose build so the flags used are visible
+- do not include all static libraries from the build system
+- set executable bit on shared libraries, so their debuginfo is extracted
+
Revision 1.25 2011/01/03 08:57:39 caleb
- Up to 2.8.3
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/ptlib/ptlib.spec?r1=1.25&r2=1.25.2.1&f=u
More information about the pld-cvs-commit
mailing list