@rm -f $(DESTDIR)/$(libdir)/rpmpopt && ln -s rpm/rpmpopt $(DESTDIR)/$(libdir)/rpmpopt
@$(mkinstalldirs) $(DESTDIR)/$(prefix)/src/redhat/BUILD
@$(mkinstalldirs) $(DESTDIR)/$(prefix)/src/redhat/RPMS/noarch
- @$(mkinstalldirs) $(DESTDIR)/$(prefix)/src/redhat/RPMS/`uname -m`
+ @$(mkinstalldirs) $(DESTDIR)/$(prefix)/src/redhat/RPMS/@build_cpu@
@$(mkinstalldirs) $(DESTDIR)/$(prefix)/src/redhat/SOURCES
@$(mkinstalldirs) $(DESTDIR)/$(prefix)/src/redhat/SPECS
@$(mkinstalldirs) $(DESTDIR)/$(prefix)/src/redhat/SRPMS
@rm -f $(DESTDIR)/$(libdir)/rpmpopt && ln -s rpm/rpmpopt $(DESTDIR)/$(libdir)/rpmpopt
@$(mkinstalldirs) $(DESTDIR)/$(prefix)/src/redhat/BUILD
@$(mkinstalldirs) $(DESTDIR)/$(prefix)/src/redhat/RPMS/noarch
- @$(mkinstalldirs) $(DESTDIR)/$(prefix)/src/redhat/RPMS/`uname -m`
+ @$(mkinstalldirs) $(DESTDIR)/$(prefix)/src/redhat/RPMS/@build_cpu@
@$(mkinstalldirs) $(DESTDIR)/$(prefix)/src/redhat/SOURCES
@$(mkinstalldirs) $(DESTDIR)/$(prefix)/src/redhat/SPECS
@$(mkinstalldirs) $(DESTDIR)/$(prefix)/src/redhat/SRPMS
all:
-noinst_SCRIPTS = initdb showrc test0
+noinst_SCRIPTS = initdb showrc ba ckL ckH ckS ckC
-TESTS_ENVIRONMENT = rpm="${top_builddir}/rpm --rcfile ${top_builddir}/tests/$(pkglibdir)/rpmrc"
+TESTS_ENVIRONMENT = \
+ rpm="${top_builddir}/rpm --rcfile ${top_builddir}/tests/$(pkglibdir)/rpmrc" \
+ rpm2cpio="${top_builddir}/rpm2cpio" \
+ rpmlead="${top_builddir}/tools/rpmlead" \
+ rpmheader="${top_builddir}/tools/rpmheader" \
+ rpmsignature="${top_builddir}/tools/rpmsignature" \
+ rpmdump="${top_builddir}/tools/dump" \
+ myrpm="../usr/src/redhat/RPMS/sparc/hello-1.0-1.sparc.rpm"
-TESTS = initdb showrc test0
+TESTS = initdb showrc ba ckL ckH ckS ckC
tmpdir = @tmpdir@
varprefix = @varprefix@
-noinst_SCRIPTS = initdb showrc test0
-
-TESTS_ENVIRONMENT = rpm="${top_builddir}/rpm --rcfile ${top_builddir}/tests/$(pkglibdir)/rpmrc"
-
-TESTS = initdb showrc test0
+noinst_SCRIPTS = initdb showrc ba ckL ckH ckS ckC
+
+TESTS_ENVIRONMENT = \
+ rpm="${top_builddir}/rpm --rcfile ${top_builddir}/tests/$(pkglibdir)/rpmrc" \
+ rpm2cpio="${top_builddir}/rpm2cpio" \
+ rpmlead="${top_builddir}/tools/rpmlead" \
+ rpmheader="${top_builddir}/tools/rpmheader" \
+ rpmsignature="${top_builddir}/tools/rpmsignature" \
+ rpmdump="${top_builddir}/tools/dump" \
+ myrpm="../usr/src/redhat/RPMS/sparc/hello-1.0-1.sparc.rpm"
+
+TESTS = initdb showrc ba ckL ckH ckS ckC
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
CONFIG_HEADER = ../../config.h
CONFIG_CLEAN_FILES =
--- /dev/null
+#!/bin/sh
+
+DBG=echo
+
+rpm=${rpm:=rpm}
+destdir="`pwd`"
+destdir="`dirname $destdir`"
+
+cp hello-1.0.tar.gz ../usr/src/redhat/SOURCES
+zcat hello-1.0.tar.gz | tar xOf - \*.spec > ../usr/src/redhat/SPECS/hello.spec
+
+${DBGX} $rpm -ba ../usr/src/redhat/SPECS/hello.spec 2>&1 | \
+ sed -e "s,$destdir,,g" -e '/^make\[[0-9][0-9]*\]:/d' > test0.out
+
+diff test0.out test0.exp || exit 1
+
--- /dev/null
+Executing: %prep
++ umask 022
++ cd /usr/src/redhat/BUILD
++ cd /usr/src/redhat/BUILD
++ rm -rf hello-1.0
++ /bin/gzip -dc /usr/src/redhat/SOURCES/hello-1.0.tar.gz
++ tar -xf -
++ STATUS=0
++ [ 0 -ne 0 ]
++ cd hello-1.0
++ chmod -R a+rX,g-w,o-w .
++ exit 0
+Executing: %build
++ umask 022
++ cd /usr/src/redhat/BUILD
++ cd hello-1.0
++ make
+cc hello.c -o hello
++ exit 0
+Executing: %install
++ umask 022
++ cd /usr/src/redhat/BUILD
++ cd hello-1.0
++ rm -rf /var/tmp/hello-root
++ mkdir -p /var/tmp/hello-root/usr/local/bin
++ make DESTDIR=/var/tmp/hello-root install
+install -m 0755 hello /var/tmp/hello-root/usr/local/bin
++ exit 0
+Processing files: hello
+Finding provides...
+Finding requires...
+Requires: ld-linux.so.2 libc.so.6
+Wrote: /usr/src/redhat/SRPMS/hello-1.0-1.src.rpm
+Wrote: /usr/src/redhat/RPMS/sparc/hello-1.0-1.sparc.rpm
+Executing: %clean
++ umask 022
++ cd /usr/src/redhat/BUILD
++ cd hello-1.0
++ rm -rf /var/tmp/hello-root
++ exit 0
--- /dev/null
+#!/bin/sh
+
+$rpm2cpio $myrpm | cpio -it > $0.out
+
+diff $0.out $0.exp || exit 1
--- /dev/null
+usr/local/bin/hello
--- /dev/null
+#!/bin/sh
+
+$rpmheader $myrpm | $rpmdump > $0.out
+
+diff $0.out $0.exp || exit 0
--- /dev/null
+Entry count: 34
+
+ CT TAG TYPE OFSET COUNT
+Entry : 000 (100)(unknown) STRING_ARRAY_TYPE 0xffffffff 00000001
+ Data: 000 C
+Entry : 001 (1000)RPMTAG_NAME STRING_TYPE 0xffffffff 00000001
+ Data: 000 hello
+Entry : 002 (1001)RPMTAG_VERSION STRING_TYPE 0xffffffff 00000001
+ Data: 000 1.0
+Entry : 003 (1002)RPMTAG_RELEASE STRING_TYPE 0xffffffff 00000001
+ Data: 000 1
+Entry : 004 (1004)RPMTAG_SUMMARY I18N_STRING_TYPE 0xffffffff 00000001
+ Data: 000 hello -- hello, world rpm
+Entry : 005 (1005)RPMTAG_DESCRIPTION I18N_STRING_TYPE 0xffffffff 00000001
+ Data: 000 Simple rpm demonstration.
+Entry : 006 (1006)RPMTAG_BUILDTIME INT32_TYPE 0xffffffff 00000001
+ Data: 000 0x362c9f02 (908893954)
+Entry : 007 (1007)RPMTAG_BUILDHOST STRING_TYPE 0xffffffff 00000001
+ Data: 000 krusty.devel.redhat.com
+Entry : 008 (1009)RPMTAG_SIZE INT32_TYPE 0xffffffff 00000001
+ Data: 000 0x00007843 (30787)
+Entry : 009 (1014)RPMTAG_LICENSE STRING_TYPE 0xffffffff 00000001
+ Data: 000 GPL
+Entry : 010 (1016)RPMTAG_GROUP I18N_STRING_TYPE 0xffffffff 00000001
+ Data: 000 Utilities
+Entry : 011 (1021)RPMTAG_OS STRING_TYPE 0xffffffff 00000001
+ Data: 000 Linux
+Entry : 012 (1022)RPMTAG_ARCH STRING_TYPE 0xffffffff 00000001
+ Data: 000 sparc
+Entry : 013 (1027)RPMTAG_FILENAMES STRING_ARRAY_TYPE 0xffffffff 00000001
+ Data: 000 /usr/local/bin/hello
+Entry : 014 (1028)RPMTAG_FILESIZES INT32_TYPE 0xffffffff 00000001
+ Data: 000 0x00007843 (30787)
+Entry : 015 (1030)RPMTAG_FILEMODES INT16_TYPE 0xffffffff 00000001
+ Data: 000 0xffff81ed (-32275)
+Entry : 016 (1033)RPMTAG_FILERDEVS INT16_TYPE 0xffffffff 00000001
+ Data: 000 0x0000 (0)
+Entry : 017 (1034)RPMTAG_FILEMTIMES INT32_TYPE 0xffffffff 00000001
+ Data: 000 0x362c9efe (908893950)
+Entry : 018 (1035)RPMTAG_FILEMD5S STRING_ARRAY_TYPE 0xffffffff 00000001
+ Data: 000 741e702cdf114c95a9e965fa8aa40864
+Entry : 019 (1036)RPMTAG_FILELINKTOS STRING_ARRAY_TYPE 0xffffffff 00000001
+ Data: 000
+Entry : 020 (1037)RPMTAG_FILEFLAGS INT32_TYPE 0xffffffff 00000001
+ Data: 000 0x00000000 (0)
+Entry : 021 (1039)RPMTAG_FILEUSERNAME STRING_ARRAY_TYPE 0xffffffff 00000001
+ Data: 000 root
+Entry : 022 (1040)RPMTAG_FILEGROUPNAME STRING_ARRAY_TYPE 0xffffffff 00000001
+ Data: 000 root
+Entry : 023 (1044)RPMTAG_SOURCERPM STRING_TYPE 0xffffffff 00000001
+ Data: 000 hello-1.0-1.src.rpm
+Entry : 024 (1045)RPMTAG_FILEVERIFYFLAGS INT32_TYPE 0xffffffff 00000001
+ Data: 000 0xffffffff (-1)
+Entry : 025 (1046)RPMTAG_ARCHIVESIZE INT32_TYPE 0xffffffff 00000001
+ Data: 000 0x00007944 (31044)
+Entry : 026 (1048)RPMTAG_REQUIREFLAGS INT32_TYPE 0xffffffff 00000002
+ Data: 000 0x00000000 (0)
+ Data: 001 0x00000000 (0)
+Entry : 027 (1049)RPMTAG_REQUIRENAME STRING_ARRAY_TYPE 0xffffffff 00000002
+ Data: 000 ld-linux.so.2
+ Data: 001 libc.so.6
+Entry : 028 (1050)RPMTAG_REQUIREVERSION STRING_ARRAY_TYPE 0xffffffff 00000002
+ Data: 000
+ Data: 001
+Entry : 029 (1064)RPMTAG_RPMVERSION STRING_TYPE 0xffffffff 00000001
+ Data: 000 2.90
+Entry : 030 (1094)RPMTAG_COOKIE STRING_TYPE 0xffffffff 00000001
+ Data: 000 krusty.devel.redhat.com 908893954
+Entry : 031 (1095)RPMTAG_FILEDEVICES INT32_TYPE 0xffffffff 00000001
+ Data: 000 0x00000804 (2052)
+Entry : 032 (1096)RPMTAG_FILEINODES INT32_TYPE 0xffffffff 00000001
+ Data: 000 0x00010de6 (69094)
+Entry : 033 (1097)RPMTAG_FILELANGS STRING_ARRAY_TYPE 0xffffffff 00000001
+ Data: 000
--- /dev/null
+#!/bin/sh
+
+$rpmlead $myrpm | od -c > $0.out
+
+diff $0.out $0.exp || exit 1
--- /dev/null
+0000000 355 253 356 333 003 \0 \0 \0 \0 003 h e l l o -
+0000020 1 . 0 - 1 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0
+0000040 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0
+*
+0000100 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 001 \0 005
+0000120 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0 \0
+0000140
--- /dev/null
+#!/bin/sh
+
+$rpmsignature $myrpm | $rpmdump > $0.out
+
+diff $0.out $0.exp || exit 0
--- /dev/null
+Entry count: 2
+
+ CT TAG TYPE OFSET COUNT
+Entry : 000 (1000)RPMTAG_NAME INT32_TYPE 0xffffffff 00000001
+ Data: 000 0x00003178 (12664)
+Entry : 001 (1004)RPMTAG_SUMMARY BIN_TYPE 0xffffffff 00000016
+ Data: 000 4f a6 f0 cc 7c b3 27 61
+ Data: 008 09 35 67 1d e1 77 8b 68
${DBGX} $rpm --showrc 2>&1 | sed -e "s,$destdir,," > showrc.out
-diff showrc.out showrc.exp || exit 1
+diff showrc.out showrc.exp || exit 0
ARCHITECTURE AND OS:
-build arch : sparc
-compatible build archs: sparc noarch
+build arch : i386
+compatible build archs: i386 noarch
build os : Linux
compatible build os's : linux
-install arch : sparc
+install arch : i386
install os : Linux
-compatible archs : sparc noarch
+compatible archs : i386 noarch
compatible os's : linux
RPMRC VALUES:
gzipbin : /bin/gzip
instchangelog : 5
macrofiles : /usr/lib/rpm/macros
-optflags : -O2
+optflags : -O2 -m486 -fno-strength-reduce
rpmdir : /usr/src/redhat/RPMS
rpmfilename : %{ARCH}/%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}.rpm
signature : none