Commit 747c665c authored by Vitaly Lipatov's avatar Vitaly Lipatov

fix replacements for gcc*, drop last spaces in list repl, add test for pkgrepl

parent 702446c1
po/etersoft-build-utils.mo po/etersoft-build-utils.mo
tests/specpkgr.spec
*~ *~
...@@ -45,11 +45,12 @@ clean_pkgreq() ...@@ -45,11 +45,12 @@ clean_pkgreq()
local i VAR local i VAR
VAR=`cat | sort -u` VAR=`cat | sort -u`
for i in $VAR ; do for i in $VAR ; do
echo "$i" | egrep "gcc|cpp|gcc-c++" >/dev/null && continue echo "$i" | egrep "gcc[0-9]|cpp[0-9]|gcc-c++[0-9]" >/dev/null && continue
echo "$i" | egrep "gcc\$|cpp\$|gcc-c++\$" >/dev/null && continue
echo "$i" | grep "[()<=>]" >/dev/null && continue echo "$i" | grep "[()<=>]" >/dev/null && continue
echo "$i" | grep "^ *[0-9]\.[0-9]" >/dev/null && continue echo "$i" | grep "^ *[0-9]\.[0-9]" >/dev/null && continue
echo -n "$i " echo -n "$i "
done done | filter_strip_spaces
} }
# Print list of all build requires in ALT notation # Print list of all build requires in ALT notation
......
Name: specpkgr
Version: 0.7.4
Release: alt18
Summary: Freenx application/thin-client server
Group: Networking/Remote access
License: GPLv2
Url: http://freenx.berlios.de
Packager: Boris Savelev <boris@altlinux.org>
Obsoletes: freenx
Provides: freenx = %version
Requires: nx
Requires: openssl
Requires: netcat
Requires: expect
Requires: foomatic-db-engine
%if %_vendor == "alt"
Requires: dbus-tools-gui
Requires: binutils
Requires: Xdialog
Requires: /usr/bin/xvt
%endif
BuildPreReq: rpm-build-compat gcc4.1 gcc
BuildRequires: imake xorg-cf-files gccmakedep
Source: %name.source
%description
Freenx is an application/thin-client server based on nx technology.
NoMachine nx is the next-generation X compression and roundtrip suppression
scheme. It can operate remote X11 sessions over 56k modem dialup links
or anything better. This package contains a free (GPL) implementation
of the nxserver component.
%prep
%setup
%changelog
* Tue Sep 22 2009 Boris Savelev <boris@altlinux.org> 0.7.4-alt18.12
- fix CUPSLogLevel config parser
#!/bin/sh
. `dirname $0`/../share/eterbuild/functions/common
load_mod repl
SPECNAME=specpkgr.spec
cp -f specpkgr.spec.in $SPECNAME
touch ~/RPM/SOURCES/specpkgr.source
export VERBOSE=1
export IGNOREGEAR=1
#sh ../bin/rpmbph -n -M51 specpkgr.spec
export ROOTDIR=/net/os/stable/SUSE/11.3
#sh ../bin/rpmbph -n specpkgr.spec
check()
{
[ "$2" != "$3" ] && echo "FATAL with '$1': result
'$3' do not match with
'$2'" || echo "OK for '$1' with '$2'"
}
LISTBUILDDEP=`print_buildreq $SPECNAME`
check "BuildDep" "imake xorg-cf-files gccmakedep rpm-build-compat" "$LISTBUILDDEP"
echo -
LISTREQDEP=`print_pkgreq $SPECNAME`
check "Reqs" "binutils dbus-tools-gui expect foomatic-db-engine netcat nx openssl /usr/bin/xvt Xdialog" "$LISTREQDEP"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment