Hello community, here is the log from the commit of package pstngw for openSUSE:Factory checked in at 2012-07-12 10:51:20 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/pstngw (Old) and /work/SRC/openSUSE:Factory/.pstngw.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "pstngw", Maintainer is "kkeil@novell.com" Changes: -------- --- /work/SRC/openSUSE:Factory/pstngw/pstngw.changes 2011-09-23 12:42:04.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.pstngw.new/pstngw.changes 2012-07-12 10:51:22.000000000 +0200 @@ -1,0 +2,6 @@ +Wed Jul 11 08:08:45 UTC 2012 - adrian@suse.de + +- fix builds when using a target arch (eg. armv7hl) +- drop unsafe build root removal + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ pstngw.spec ++++++ --- /var/tmp/diff_new_pack.7bCgb8/_old 2012-07-12 10:51:23.000000000 +0200 +++ /var/tmp/diff_new_pack.7bCgb8/_new 2012-07-12 10:51:23.000000000 +0200 @@ -1,7 +1,7 @@ # -# spec file for package pstngw (Version 1.3.1) +# spec file for package pstngw # -# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -15,19 +15,28 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# norootforbuild +%ifarch %ix86 +%define arch x86 +%else +%define arch %{_target_cpu} +%endif Name: pstngw -BuildRequires: SDL-devel gcc-c++ libdv openh323-devel openldap2-devel pwlib-devel speex-devel +BuildRequires: SDL-devel +BuildRequires: gcc-c++ +BuildRequires: libdv +BuildRequires: openh323-devel +BuildRequires: openldap2-devel +BuildRequires: pwlib-devel +BuildRequires: speex-devel Url: http://www.openh323.org -License: MPL-1.1 BuildRoot: %{_tmppath}/%{name}-%{version}-build -AutoReqProv: on -Group: Productivity/Telephony/H323/Servers Summary: Open H.323 PSTN (public switched telephone network) Gateway +License: MPL-1.1 +Group: Productivity/Telephony/H323/Servers Version: 1.3.1 -Release: 459 +Release: 0 Source0: pstngw-%{version}.tar.bz2 %description @@ -45,17 +54,8 @@ make PREFIX=/usr OPENH323DIR=/usr/share/openh323 OH323_LIBDIR=%{_libdir} opt %install -[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT; -export M=`uname -m` -if [ `uname -m | cut -b 3-` == "86" ]; then - export M="x86" -fi mkdir -p $RPM_BUILD_ROOT/usr/sbin -install -c obj_linux_"$M"_r/pstngw $RPM_BUILD_ROOT/usr/sbin - -%clean -# Clear up the mess -[ "$RPM_BUILD_ROOT" != "/" ] && [ -d $RPM_BUILD_ROOT ] && rm -rf $RPM_BUILD_ROOT; +install -c obj_linux_%{arch}_r/pstngw $RPM_BUILD_ROOT/usr/sbin %files %defattr(-,root,root) -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org