Пакет rpminstall-tests: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 | Name: rpminstall-tests Version: 1.1.1 Release: alt0.M80P.1 Summary: Tests for rpm: how it interprets packages when installing License: %gpl2plus Group: Development/Tools Url: http://git.altlinux.org/people/imz/packages/rpminstall-tests.git BuildArch: noarch Requires: make rpm-build Source: %name-%version.tar BuildRequires(pre): rpm-build-licenses %description Tests for rpm: how it interprets packages when installing. Now, it tests how various forms of constraints (Requires, Conflicts, Obsoletes) are interpreted when they are installed together with packages with various forms of matching Provides. More tests can appear. %package checkinstall Summary: Immediately run %name when installing this package Group: Other Requires(pre): %name %description checkinstall Immediately run %name when installing this package. They test rpm (applied to the results of rpm-build). %prep %setup %install mkdir -p %buildroot%_datadir/%name install -m0644 Makefile HELPER *.mk -t %buildroot%_datadir/%name/ install -m0755 makeme.sh -t %buildroot%_datadir/%name/ %check # To pass the usual parallelism flags etc: %global _make_bin ./makeme.sh %make_build SKIP_RPMBUILD_DISTTAG=1 # Also test with "Epoch: 0" instead of no Epoch: %make_build SKIP_RPMBUILD_DISTTAG=1 clean %make_build SKIP_RPMBUILD_DISTTAG=1 minimal_epoch=0 %files %_datadir/%name %files checkinstall %pre checkinstall # --pidfile doesn't exist and makes it always start. /sbin/start-stop-daemon --start --pidfile /var/empty/no.pid \ --chuid nobody:nobody \ --startas /bin/sh -- -ec \ 'export TMPDIR=/tmp; \ . /usr/lib/rpm/tmpdir.sh; \ cd "$tmpdir"; \ %_datadir/%name/makeme.sh SKIP_RPMBUILD_DISTTAG=1; \ %_datadir/%name/makeme.sh SKIP_RPMBUILD_DISTTAG=1 clean; \ %_datadir/%name/makeme.sh SKIP_RPMBUILD_DISTTAG=1 minimal_epoch=0; \ ' %changelog * Wed Feb 27 2019 Ivan Zakharyaschev <imz@altlinux.org> 1.1.1-alt0.M80P.1 - Build for p8. - Unmarked XFAIL: honor-buildtime tests. Everything works with rpm-4.0.4. * Wed Feb 27 2019 Ivan Zakharyaschev <imz@altlinux.org> 1.1.1-alt1 - More complete set of tests of the upgradability order (for different releases and buildtimes, not yet disttags). * Mon Feb 25 2019 Ivan Zakharyaschev <imz@altlinux.org> 1.1-alt1 - Test the upgradable order (a package can be upgraded only to a more fresh release or buildtime). - Marked one of the new tests XFAIL: strict buildtime-based upgradability order is broken at least in rpm-4.13.0.1-alt5. * Thu Feb 21 2019 Ivan Zakharyaschev <imz@altlinux.org> 1.0-alt4 - In disttag, use xxx (instead of zzz), because rpm-build-4.0.4-alt127 now uses z as the "maximal" disttag. This makes the tests more appropriate for testing an "old" disttag-unaware rpm with packages built by the "new" rpm-build. * Wed Feb 13 2019 Ivan Zakharyaschev <imz@altlinux.org> 1.0-alt2.M80P.1 [build for p8, c8] - Unmarked XFAIL: cases with underspecified Provides (the error should be gone with rpm-4.0.4-alt101.M80P.4). * Mon Feb 11 2019 Ivan Zakharyaschev <imz@altlinux.org> 1.0-alt3 - Unmarked XFAIL: cases with underspecified Provides (the error should be gone with rpm-4.13-alt6). - Marked XFAIL: non-critical unrealistic cases when obsoleting an exact disttag. (Of course, this requires a fix, but this is not critical.) * Sun Feb 10 2019 Ivan Zakharyaschev <imz@altlinux.org> 1.0-alt1.M70P.1 - Marked XFAIL: non-critical unrealistic cases when obsoleting an exact disttag. (They are known to fail in Sisyphus in rpm-4.13-alt6. Of course, this requires a fix, but this is not critical.) - Adapt for p7 and p8. (Some tests need to be skipped unfortunately, because even if rpminstall was able to interpret disttags, rpmbuild is not yet able to produce them.) - Marked XFAIL: tests dealing with future deps with disttags (not known to the old rpm in p7 and p8.) * Sun Feb 10 2019 Ivan Zakharyaschev <imz@altlinux.org> 1.0-alt2 - Additionally test the same things, but provided as virtual Provides (dummy = ...). - Implemented a checkinstall subpackage that runs these tests immediately. - Fixed running the tests from another working dir. * Tue Feb 5 2019 Ivan Zakharyaschev <imz@altlinux.org> 1.0-alt1 - initial build for ALT Linux Sisyphus. |