From 4df7583caa71a35d6d68c373fc0c62d1be6d955b Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 24 Apr 2007 19:34:32 +0000 Subject: re-sync after the big svn loss --- t/data/SPECS/README-urpmi/a.spec | 22 ++++++++++++ t/data/SPECS/README-urpmi/b.spec | 23 +++++++++++++ t/data/SPECS/README-urpmi/b_2.spec | 23 +++++++++++++ t/data/SPECS/README-urpmi/c.spec | 24 +++++++++++++ t/data/SPECS/README-urpmi/d.spec | 22 ++++++++++++ t/data/SPECS/README-urpmi/d_.spec | 25 ++++++++++++++ t/data/SPECS/arch_to_noarch_1.spec | 28 +++++++++++++++ t/data/SPECS/arch_to_noarch_2.spec | 28 +++++++++++++++ t/data/SPECS/arch_to_noarch_3.spec | 29 ++++++++++++++++ t/data/SPECS/arch_to_noarch_4.spec | 28 +++++++++++++++ t/data/SPECS/handle-conflict-deps/a-sup.spec | 14 ++++++++ t/data/SPECS/handle-conflict-deps/a.spec | 14 ++++++++ t/data/SPECS/handle-conflict-deps/b-sub.spec | 13 +++++++ t/data/SPECS/handle-conflict-deps/b.spec | 15 ++++++++ t/data/SPECS/obsolete-and-conflict/a.spec | 24 +++++++++++++ t/data/SPECS/obsolete-and-conflict/b.spec | 26 ++++++++++++++ t/data/SPECS/obsolete-and-conflict/c.spec | 24 +++++++++++++ t/data/SPECS/ordering-scriptlets/ash_1.spec | 24 +++++++++++++ t/data/SPECS/ordering-scriptlets/ash_2.spec | 13 +++++++ .../SPECS/ordering-scriptlets/requires_post_1.spec | 16 +++++++++ .../SPECS/ordering-scriptlets/requires_post_2.spec | 13 +++++++ .../ordering-scriptlets/requires_postun_1.spec | 16 +++++++++ .../ordering-scriptlets/requires_postun_2.spec | 13 +++++++ .../SPECS/ordering-scriptlets/requires_pre_1.spec | 16 +++++++++ .../SPECS/ordering-scriptlets/requires_pre_2.spec | 13 +++++++ .../ordering-scriptlets/requires_preun_1.spec | 16 +++++++++ .../ordering-scriptlets/requires_preun_2.spec | 13 +++++++ t/data/SPECS/priority-upgrade-1/a-strict_1.spec | 14 ++++++++ t/data/SPECS/priority-upgrade-1/a_1.spec | 14 ++++++++ t/data/SPECS/priority-upgrade-1/b_1.spec | 13 +++++++ t/data/SPECS/priority-upgrade-2/a-strict_2.spec | 14 ++++++++ t/data/SPECS/priority-upgrade-2/a_2.spec | 14 ++++++++ t/data/SPECS/priority-upgrade-2/b_2.spec | 14 ++++++++ t/data/SPECS/priority-upgrade-2/bb1_2.spec | 14 ++++++++ t/data/SPECS/priority-upgrade-2/bb2_2.spec | 14 ++++++++ t/data/SPECS/srpm-bootstrapping.spec | 14 ++++++++ t/data/SPECS/various.spec | 38 +++++++++++++++++++++ t/data/SPECS/various2.spec | 38 +++++++++++++++++++++ t/data/SPECS/various3.spec | 38 +++++++++++++++++++++ t/data/media.cfg | 26 ++++++++++++++ t/data/rpm-buggy/invalid-signature.rpm | Bin 0 -> 3965 bytes t/data/rpm-buggy/not-a-rpm.rpm | 1 + t/data/rpm-buggy/weird-header.rpm | Bin 0 -> 3965 bytes t/data/rpm-v3/libtermcap-2.0.8-2.i386.rpm | Bin 0 -> 7159 bytes t/data/rpm-v3/nls-1.0-2.i386.rpm | Bin 0 -> 2688 bytes t/data/rpm-v3/p2c-1.20-7.i386.rpm | Bin 0 -> 8004 bytes 46 files changed, 801 insertions(+) create mode 100644 t/data/SPECS/README-urpmi/a.spec create mode 100644 t/data/SPECS/README-urpmi/b.spec create mode 100644 t/data/SPECS/README-urpmi/b_2.spec create mode 100644 t/data/SPECS/README-urpmi/c.spec create mode 100644 t/data/SPECS/README-urpmi/d.spec create mode 100644 t/data/SPECS/README-urpmi/d_.spec create mode 100644 t/data/SPECS/arch_to_noarch_1.spec create mode 100644 t/data/SPECS/arch_to_noarch_2.spec create mode 100644 t/data/SPECS/arch_to_noarch_3.spec create mode 100644 t/data/SPECS/arch_to_noarch_4.spec create mode 100644 t/data/SPECS/handle-conflict-deps/a-sup.spec create mode 100644 t/data/SPECS/handle-conflict-deps/a.spec create mode 100644 t/data/SPECS/handle-conflict-deps/b-sub.spec create mode 100644 t/data/SPECS/handle-conflict-deps/b.spec create mode 100644 t/data/SPECS/obsolete-and-conflict/a.spec create mode 100644 t/data/SPECS/obsolete-and-conflict/b.spec create mode 100644 t/data/SPECS/obsolete-and-conflict/c.spec create mode 100644 t/data/SPECS/ordering-scriptlets/ash_1.spec create mode 100644 t/data/SPECS/ordering-scriptlets/ash_2.spec create mode 100644 t/data/SPECS/ordering-scriptlets/requires_post_1.spec create mode 100644 t/data/SPECS/ordering-scriptlets/requires_post_2.spec create mode 100644 t/data/SPECS/ordering-scriptlets/requires_postun_1.spec create mode 100644 t/data/SPECS/ordering-scriptlets/requires_postun_2.spec create mode 100644 t/data/SPECS/ordering-scriptlets/requires_pre_1.spec create mode 100644 t/data/SPECS/ordering-scriptlets/requires_pre_2.spec create mode 100644 t/data/SPECS/ordering-scriptlets/requires_preun_1.spec create mode 100644 t/data/SPECS/ordering-scriptlets/requires_preun_2.spec create mode 100644 t/data/SPECS/priority-upgrade-1/a-strict_1.spec create mode 100644 t/data/SPECS/priority-upgrade-1/a_1.spec create mode 100644 t/data/SPECS/priority-upgrade-1/b_1.spec create mode 100644 t/data/SPECS/priority-upgrade-2/a-strict_2.spec create mode 100644 t/data/SPECS/priority-upgrade-2/a_2.spec create mode 100644 t/data/SPECS/priority-upgrade-2/b_2.spec create mode 100644 t/data/SPECS/priority-upgrade-2/bb1_2.spec create mode 100644 t/data/SPECS/priority-upgrade-2/bb2_2.spec create mode 100644 t/data/SPECS/srpm-bootstrapping.spec create mode 100644 t/data/SPECS/various.spec create mode 100644 t/data/SPECS/various2.spec create mode 100644 t/data/SPECS/various3.spec create mode 100644 t/data/media.cfg create mode 100644 t/data/rpm-buggy/invalid-signature.rpm create mode 100644 t/data/rpm-buggy/not-a-rpm.rpm create mode 100644 t/data/rpm-buggy/weird-header.rpm create mode 100644 t/data/rpm-v3/libtermcap-2.0.8-2.i386.rpm create mode 100644 t/data/rpm-v3/nls-1.0-2.i386.rpm create mode 100644 t/data/rpm-v3/p2c-1.20-7.i386.rpm (limited to 't/data') diff --git a/t/data/SPECS/README-urpmi/a.spec b/t/data/SPECS/README-urpmi/a.spec new file mode 100644 index 00000000..d15019af --- /dev/null +++ b/t/data/SPECS/README-urpmi/a.spec @@ -0,0 +1,22 @@ +Summary: a +Name: a +Version: 1 +Release: 1 +License: x +Group: x +Url: x +BuildRoot: %{_tmppath}/%{name} + +%description +x + +%build +rm -rf $RPM_BUILD_ROOT +echo "installing/upgrading %name" > README.urpmi + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +%doc README.urpmi diff --git a/t/data/SPECS/README-urpmi/b.spec b/t/data/SPECS/README-urpmi/b.spec new file mode 100644 index 00000000..5c7cb4f4 --- /dev/null +++ b/t/data/SPECS/README-urpmi/b.spec @@ -0,0 +1,23 @@ +Summary: b +Name: b +Version: 1 +Release: 1 +License: x +Group: x +Url: x +BuildRoot: %{_tmppath}/%{name} + +%description +x + +%build +rm -rf $RPM_BUILD_ROOT +echo "installing %name" > README.install.urpmi +echo "upgrading %name" > README.upgrade.urpmi + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +%doc README.install.urpmi README.upgrade.urpmi diff --git a/t/data/SPECS/README-urpmi/b_2.spec b/t/data/SPECS/README-urpmi/b_2.spec new file mode 100644 index 00000000..15a63678 --- /dev/null +++ b/t/data/SPECS/README-urpmi/b_2.spec @@ -0,0 +1,23 @@ +Summary: b +Name: b +Version: 2 +Release: 1 +License: x +Group: x +Url: x +BuildRoot: %{_tmppath}/%{name} + +%description +x + +%build +rm -rf $RPM_BUILD_ROOT +echo "installing %name" > README.install.urpmi +echo "upgrading %name" > README.upgrade.urpmi + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +%doc README.install.urpmi README.upgrade.urpmi diff --git a/t/data/SPECS/README-urpmi/c.spec b/t/data/SPECS/README-urpmi/c.spec new file mode 100644 index 00000000..25f4df37 --- /dev/null +++ b/t/data/SPECS/README-urpmi/c.spec @@ -0,0 +1,24 @@ +Summary: c +Name: c +Version: 1 +Release: 1 +License: x +Group: x +Url: x +BuildRoot: %{_tmppath}/%{name} +Conflicts: a + +%description +x + +%build +rm -rf $RPM_BUILD_ROOT +echo "installing %name" > README.install.urpmi +echo "upgrading %name" > README.upgrade.urpmi + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +%doc README.install.urpmi README.upgrade.urpmi diff --git a/t/data/SPECS/README-urpmi/d.spec b/t/data/SPECS/README-urpmi/d.spec new file mode 100644 index 00000000..2f7d40de --- /dev/null +++ b/t/data/SPECS/README-urpmi/d.spec @@ -0,0 +1,22 @@ +Summary: d +Name: d +Version: 1 +Release: 1 +License: x +Group: x +Url: x +BuildRoot: %{_tmppath}/%{name} + +%description +x + +%build +rm -rf $RPM_BUILD_ROOT +echo "installing/upgrading %name" > README.urpmi + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +%doc README.urpmi diff --git a/t/data/SPECS/README-urpmi/d_.spec b/t/data/SPECS/README-urpmi/d_.spec new file mode 100644 index 00000000..c24aadcb --- /dev/null +++ b/t/data/SPECS/README-urpmi/d_.spec @@ -0,0 +1,25 @@ +Summary: d_ +Name: d_ +Version: 1 +Release: 1 +License: x +Group: x +Url: x +BuildRoot: %{_tmppath}/%{name} +Obsoletes: d <= 1 +Provides: d > 1 + +%description +x + +%build +rm -rf $RPM_BUILD_ROOT +echo "installing %name" > README.install.urpmi +echo "upgrading %name" > README.upgrade.urpmi + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +%doc README.install.urpmi README.upgrade.urpmi diff --git a/t/data/SPECS/arch_to_noarch_1.spec b/t/data/SPECS/arch_to_noarch_1.spec new file mode 100644 index 00000000..05cff446 --- /dev/null +++ b/t/data/SPECS/arch_to_noarch_1.spec @@ -0,0 +1,28 @@ +Summary: arch_to_noarch +Name: arch_to_noarch +Version: 1 +Release: 1 +License: x +Group: x +Url: x +BuildRoot: %{_tmppath}/%{name} + +%prep + +%build + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT/usr/lib/test-%{name} +cp /sbin/ldconfig $RPM_BUILD_ROOT/usr/lib/test-%{name} + +%clean +rm -rf $RPM_BUILD_ROOT + +%description +this pkg own a binary file + +%files +%defattr(-,root,root) +%config(noreplace) /usr/lib/test-%{name} + diff --git a/t/data/SPECS/arch_to_noarch_2.spec b/t/data/SPECS/arch_to_noarch_2.spec new file mode 100644 index 00000000..7be6925b --- /dev/null +++ b/t/data/SPECS/arch_to_noarch_2.spec @@ -0,0 +1,28 @@ +Summary: arch_to_noarch +Name: arch_to_noarch +Version: 2 +Release: 1 +License: x +Group: x +Url: x +BuildRoot: %{_tmppath}/%{name} + +%prep + +%build + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT/usr/lib/test-%{name} +cp /sbin/ldconfig $RPM_BUILD_ROOT/usr/lib/test-%{name} + +%clean +rm -rf $RPM_BUILD_ROOT + +%description +this pkg still owns a binary file + +%files +%defattr(-,root,root) +%config(noreplace) /usr/lib/test-%{name} + diff --git a/t/data/SPECS/arch_to_noarch_3.spec b/t/data/SPECS/arch_to_noarch_3.spec new file mode 100644 index 00000000..be9cdb4d --- /dev/null +++ b/t/data/SPECS/arch_to_noarch_3.spec @@ -0,0 +1,29 @@ +Summary: arch_to_noarch +Name: arch_to_noarch +Version: 3 +Release: 1 +License: x +Group: x +Url: x +BuildRoot: %{_tmppath}/%{name} +BuildArch: noarch + +%prep + +%build + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT/usr/lib/test-%{name} +echo foo > $RPM_BUILD_ROOT/usr/lib/test-%{name}/foo + +%clean +rm -rf $RPM_BUILD_ROOT + +%description +this pkg is now a noarch + +%files +%defattr(-,root,root) +%config(noreplace) /usr/lib/test-%{name} + diff --git a/t/data/SPECS/arch_to_noarch_4.spec b/t/data/SPECS/arch_to_noarch_4.spec new file mode 100644 index 00000000..7eb32705 --- /dev/null +++ b/t/data/SPECS/arch_to_noarch_4.spec @@ -0,0 +1,28 @@ +Summary: arch_to_noarch +Name: arch_to_noarch +Version: 4 +Release: 1 +License: x +Group: x +Url: x +BuildRoot: %{_tmppath}/%{name} + +%prep + +%build + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT/usr/lib/test-%{name} +cp /sbin/ldconfig $RPM_BUILD_ROOT/usr/lib/test-%{name} + +%clean +rm -rf $RPM_BUILD_ROOT + +%description +this pkg is now a binary again + +%files +%defattr(-,root,root) +%config(noreplace) /usr/lib/test-%{name} + diff --git a/t/data/SPECS/handle-conflict-deps/a-sup.spec b/t/data/SPECS/handle-conflict-deps/a-sup.spec new file mode 100644 index 00000000..ce10bcdf --- /dev/null +++ b/t/data/SPECS/handle-conflict-deps/a-sup.spec @@ -0,0 +1,14 @@ +Summary: a-sup +Name: a-sup +Version: 1 +Release: 1 +License: x +Group: x +Url: x +BuildRoot: %{_tmppath}/%{name} +Requires: a + +%description +x + +%files diff --git a/t/data/SPECS/handle-conflict-deps/a.spec b/t/data/SPECS/handle-conflict-deps/a.spec new file mode 100644 index 00000000..96dd9e7a --- /dev/null +++ b/t/data/SPECS/handle-conflict-deps/a.spec @@ -0,0 +1,14 @@ +Summary: a +Name: a +Version: 1 +Release: 1 +License: x +Group: x +Url: x +BuildRoot: %{_tmppath}/%{name} +Conflicts: b + +%description +x + +%files diff --git a/t/data/SPECS/handle-conflict-deps/b-sub.spec b/t/data/SPECS/handle-conflict-deps/b-sub.spec new file mode 100644 index 00000000..908d2b8f --- /dev/null +++ b/t/data/SPECS/handle-conflict-deps/b-sub.spec @@ -0,0 +1,13 @@ +Summary: b-sub +Name: b-sub +Version: 1 +Release: 1 +License: x +Group: x +Url: x +BuildRoot: %{_tmppath}/%{name} + +%description +x + +%files diff --git a/t/data/SPECS/handle-conflict-deps/b.spec b/t/data/SPECS/handle-conflict-deps/b.spec new file mode 100644 index 00000000..c10a64ac --- /dev/null +++ b/t/data/SPECS/handle-conflict-deps/b.spec @@ -0,0 +1,15 @@ +Summary: b +Name: b +Version: 1 +Release: 1 +License: x +Group: x +Url: x +BuildRoot: %{_tmppath}/%{name} +Conflicts: a +Requires: b-sub + +%description +x + +%files diff --git a/t/data/SPECS/obsolete-and-conflict/a.spec b/t/data/SPECS/obsolete-and-conflict/a.spec new file mode 100644 index 00000000..9be9bda4 --- /dev/null +++ b/t/data/SPECS/obsolete-and-conflict/a.spec @@ -0,0 +1,24 @@ +Summary: a +Name: a +Version: 1 +Release: 1 +License: x +Group: x +Url: x +BuildRoot: %{_tmppath}/%{name} + +%description +x + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT/etc +echo foo > $RPM_BUILD_ROOT/etc/foo +echo bar > $RPM_BUILD_ROOT/etc/bar + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +/etc/* diff --git a/t/data/SPECS/obsolete-and-conflict/b.spec b/t/data/SPECS/obsolete-and-conflict/b.spec new file mode 100644 index 00000000..30413107 --- /dev/null +++ b/t/data/SPECS/obsolete-and-conflict/b.spec @@ -0,0 +1,26 @@ +Summary: b +Name: b +Version: 1 +Release: 1 +License: x +Group: x +Url: x +BuildRoot: %{_tmppath}/%{name} +Provides: a > 1 +Obsoletes: a <= 1 +Requires: c + +%description +x + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT/etc +echo foo > $RPM_BUILD_ROOT/etc/foo + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +/etc/* diff --git a/t/data/SPECS/obsolete-and-conflict/c.spec b/t/data/SPECS/obsolete-and-conflict/c.spec new file mode 100644 index 00000000..c40bb3b6 --- /dev/null +++ b/t/data/SPECS/obsolete-and-conflict/c.spec @@ -0,0 +1,24 @@ +Summary: c +Name: c +Version: 1 +Release: 1 +License: x +Group: x +Url: x +BuildRoot: %{_tmppath}/%{name} +Conflicts: a <= 1 + +%description +x + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT/etc +echo bar > $RPM_BUILD_ROOT/etc/bar + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +/etc/* diff --git a/t/data/SPECS/ordering-scriptlets/ash_1.spec b/t/data/SPECS/ordering-scriptlets/ash_1.spec new file mode 100644 index 00000000..343a6e66 --- /dev/null +++ b/t/data/SPECS/ordering-scriptlets/ash_1.spec @@ -0,0 +1,24 @@ +Summary: ordering_ash +Name: ordering_ash +Version: 1 +Release: 1 +License: x +Group: x +Url: x +Provides: /bin/ash +BuildRequires: ash +BuildRoot: %{_tmppath}/%{name} + +%install +rm -rf $RPM_BUILD_ROOT +install -D /bin/ash $RPM_BUILD_ROOT/bin/ash + +%clean +rm -rf $RPM_BUILD_ROOT + +%description +x + +%files +%defattr(-,root,root) +/bin/* diff --git a/t/data/SPECS/ordering-scriptlets/ash_2.spec b/t/data/SPECS/ordering-scriptlets/ash_2.spec new file mode 100644 index 00000000..a6dbebad --- /dev/null +++ b/t/data/SPECS/ordering-scriptlets/ash_2.spec @@ -0,0 +1,13 @@ +Summary: ordering_ash +Name: ordering_ash +Version: 2 +Release: 1 +License: x +Group: x +Url: x +BuildRoot: %{_tmppath}/%{name} + +%description +x + +%files diff --git a/t/data/SPECS/ordering-scriptlets/requires_post_1.spec b/t/data/SPECS/ordering-scriptlets/requires_post_1.spec new file mode 100644 index 00000000..3603f6a6 --- /dev/null +++ b/t/data/SPECS/ordering-scriptlets/requires_post_1.spec @@ -0,0 +1,16 @@ +Summary: requires_post +Name: requires_post +Version: 1 +Release: 1 +License: x +Group: x +Url: x +BuildRoot: %{_tmppath}/%{name} + +%description +x + +%post -p /bin/ash +echo "%post is running ok" + +%files diff --git a/t/data/SPECS/ordering-scriptlets/requires_post_2.spec b/t/data/SPECS/ordering-scriptlets/requires_post_2.spec new file mode 100644 index 00000000..bf31cabd --- /dev/null +++ b/t/data/SPECS/ordering-scriptlets/requires_post_2.spec @@ -0,0 +1,13 @@ +Summary: requires_post +Name: requires_post +Version: 2 +Release: 1 +License: x +Group: x +Url: x +BuildRoot: %{_tmppath}/%{name} + +%description +x + +%files diff --git a/t/data/SPECS/ordering-scriptlets/requires_postun_1.spec b/t/data/SPECS/ordering-scriptlets/requires_postun_1.spec new file mode 100644 index 00000000..8a9dc0fb --- /dev/null +++ b/t/data/SPECS/ordering-scriptlets/requires_postun_1.spec @@ -0,0 +1,16 @@ +Summary: requires_postun +Name: requires_postun +Version: 1 +Release: 1 +License: x +Group: x +Url: x +BuildRoot: %{_tmppath}/%{name} + +%description +x + +%postun -p /bin/ash +echo "%postun is running ok" + +%files diff --git a/t/data/SPECS/ordering-scriptlets/requires_postun_2.spec b/t/data/SPECS/ordering-scriptlets/requires_postun_2.spec new file mode 100644 index 00000000..d3a14355 --- /dev/null +++ b/t/data/SPECS/ordering-scriptlets/requires_postun_2.spec @@ -0,0 +1,13 @@ +Summary: requires_postun +Name: requires_postun +Version: 2 +Release: 1 +License: x +Group: x +Url: x +BuildRoot: %{_tmppath}/%{name} + +%description +x + +%files diff --git a/t/data/SPECS/ordering-scriptlets/requires_pre_1.spec b/t/data/SPECS/ordering-scriptlets/requires_pre_1.spec new file mode 100644 index 00000000..cc5e9430 --- /dev/null +++ b/t/data/SPECS/ordering-scriptlets/requires_pre_1.spec @@ -0,0 +1,16 @@ +Summary: requires_pre +Name: requires_pre +Version: 1 +Release: 1 +License: x +Group: x +Url: x +BuildRoot: %{_tmppath}/%{name} + +%description +x + +%pre -p /bin/ash +echo "%pre is running ok" + +%files diff --git a/t/data/SPECS/ordering-scriptlets/requires_pre_2.spec b/t/data/SPECS/ordering-scriptlets/requires_pre_2.spec new file mode 100644 index 00000000..93ce9f0d --- /dev/null +++ b/t/data/SPECS/ordering-scriptlets/requires_pre_2.spec @@ -0,0 +1,13 @@ +Summary: requires_pre +Name: requires_pre +Version: 2 +Release: 1 +License: x +Group: x +Url: x +BuildRoot: %{_tmppath}/%{name} + +%description +x + +%files diff --git a/t/data/SPECS/ordering-scriptlets/requires_preun_1.spec b/t/data/SPECS/ordering-scriptlets/requires_preun_1.spec new file mode 100644 index 00000000..9b0d6d90 --- /dev/null +++ b/t/data/SPECS/ordering-scriptlets/requires_preun_1.spec @@ -0,0 +1,16 @@ +Summary: requires_preun +Name: requires_preun +Version: 1 +Release: 1 +License: x +Group: x +Url: x +BuildRoot: %{_tmppath}/%{name} + +%description +x + +%preun -p /bin/ash +echo "%preun is running ok" + +%files diff --git a/t/data/SPECS/ordering-scriptlets/requires_preun_2.spec b/t/data/SPECS/ordering-scriptlets/requires_preun_2.spec new file mode 100644 index 00000000..619f3576 --- /dev/null +++ b/t/data/SPECS/ordering-scriptlets/requires_preun_2.spec @@ -0,0 +1,13 @@ +Summary: requires_preun +Name: requires_preun +Version: 2 +Release: 1 +License: x +Group: x +Url: x +BuildRoot: %{_tmppath}/%{name} + +%description +x + +%files diff --git a/t/data/SPECS/priority-upgrade-1/a-strict_1.spec b/t/data/SPECS/priority-upgrade-1/a-strict_1.spec new file mode 100644 index 00000000..7c81849d --- /dev/null +++ b/t/data/SPECS/priority-upgrade-1/a-strict_1.spec @@ -0,0 +1,14 @@ +Summary: a-strict +Name: a-strict +Version: 1 +Release: 1 +License: x +Group: x +Url: x +Requires: b +BuildRoot: %{_tmppath}/%{name} + +%description +x + +%files diff --git a/t/data/SPECS/priority-upgrade-1/a_1.spec b/t/data/SPECS/priority-upgrade-1/a_1.spec new file mode 100644 index 00000000..8a997f9e --- /dev/null +++ b/t/data/SPECS/priority-upgrade-1/a_1.spec @@ -0,0 +1,14 @@ +Summary: a +Name: a +Version: 1 +Release: 1 +License: x +Group: x +Url: x +Requires: b +BuildRoot: %{_tmppath}/%{name} + +%description +x + +%files diff --git a/t/data/SPECS/priority-upgrade-1/b_1.spec b/t/data/SPECS/priority-upgrade-1/b_1.spec new file mode 100644 index 00000000..fa346315 --- /dev/null +++ b/t/data/SPECS/priority-upgrade-1/b_1.spec @@ -0,0 +1,13 @@ +Summary: b +Name: b +Version: 1 +Release: 1 +License: x +Group: x +Url: x +BuildRoot: %{_tmppath}/%{name} + +%description +x + +%files diff --git a/t/data/SPECS/priority-upgrade-2/a-strict_2.spec b/t/data/SPECS/priority-upgrade-2/a-strict_2.spec new file mode 100644 index 00000000..0a44113d --- /dev/null +++ b/t/data/SPECS/priority-upgrade-2/a-strict_2.spec @@ -0,0 +1,14 @@ +Summary: a-strict +Name: a-strict +Version: 2 +Release: 1 +License: x +Group: x +Url: x +Requires: b >= 2 +BuildRoot: %{_tmppath}/%{name} + +%description +x + +%files diff --git a/t/data/SPECS/priority-upgrade-2/a_2.spec b/t/data/SPECS/priority-upgrade-2/a_2.spec new file mode 100644 index 00000000..5048eed1 --- /dev/null +++ b/t/data/SPECS/priority-upgrade-2/a_2.spec @@ -0,0 +1,14 @@ +Summary: a +Name: a +Version: 2 +Release: 1 +License: x +Group: x +Url: x +Requires: b +BuildRoot: %{_tmppath}/%{name} + +%description +x + +%files diff --git a/t/data/SPECS/priority-upgrade-2/b_2.spec b/t/data/SPECS/priority-upgrade-2/b_2.spec new file mode 100644 index 00000000..929014ad --- /dev/null +++ b/t/data/SPECS/priority-upgrade-2/b_2.spec @@ -0,0 +1,14 @@ +Summary: b +Name: b +Version: 2 +Release: 1 +License: x +Group: x +Url: x +Requires: bb +BuildRoot: %{_tmppath}/%{name} + +%description +x + +%files diff --git a/t/data/SPECS/priority-upgrade-2/bb1_2.spec b/t/data/SPECS/priority-upgrade-2/bb1_2.spec new file mode 100644 index 00000000..2b10a21a --- /dev/null +++ b/t/data/SPECS/priority-upgrade-2/bb1_2.spec @@ -0,0 +1,14 @@ +Summary: bb1 +Name: bb1 +Version: 2 +Release: 1 +License: x +Group: x +Url: x +Provides: bb +BuildRoot: %{_tmppath}/%{name} + +%description +x + +%files diff --git a/t/data/SPECS/priority-upgrade-2/bb2_2.spec b/t/data/SPECS/priority-upgrade-2/bb2_2.spec new file mode 100644 index 00000000..1732f9cd --- /dev/null +++ b/t/data/SPECS/priority-upgrade-2/bb2_2.spec @@ -0,0 +1,14 @@ +Summary: bb2 +Name: bb2 +Version: 2 +Release: 1 +License: x +Group: x +Url: x +Provides: bb +BuildRoot: %{_tmppath}/%{name} + +%description +x + +%files diff --git a/t/data/SPECS/srpm-bootstrapping.spec b/t/data/SPECS/srpm-bootstrapping.spec new file mode 100644 index 00000000..771b6226 --- /dev/null +++ b/t/data/SPECS/srpm-bootstrapping.spec @@ -0,0 +1,14 @@ +Summary: x +Name: srpm-bootstrapping +Version: 1 +Release: 1 +License: x +Group: x +Url: x +BuildRequires: %{name} +BuildRoot: %{_tmppath}/%{name} + +%description +x + +%files diff --git a/t/data/SPECS/various.spec b/t/data/SPECS/various.spec new file mode 100644 index 00000000..b7d62e8f --- /dev/null +++ b/t/data/SPECS/various.spec @@ -0,0 +1,38 @@ +Summary: various +Name: various +Version: 1 +Release: 1 +License: x +Group: x +Url: x +BuildRoot: %{_tmppath}/%{name} + +%prep +echo foo > foo + +%build + +%install +rm -rf $RPM_BUILD_ROOT +for i in /etc/test-%{name} \ + /var/lib/test-%{name}/foo1 /var/lib/test-%{name}/foo2 /var/lib/test-%{name}/foo3 \ + /usr/share/locale/fr/LC_MESSAGES/test-%{name}.mo \ + /usr/test-%{name}/foo; do + install -d `dirname $RPM_BUILD_ROOT$i` + echo foo > $RPM_BUILD_ROOT$i +done + +%find_lang test-%{name} + +%clean +rm -rf $RPM_BUILD_ROOT + +%description +x + +%files -f test-%{name}.lang +%defattr(-,root,root) +%doc foo +%config(noreplace) /etc/* +/var/lib/* +/usr/test-%{name} diff --git a/t/data/SPECS/various2.spec b/t/data/SPECS/various2.spec new file mode 100644 index 00000000..bcc16c5b --- /dev/null +++ b/t/data/SPECS/various2.spec @@ -0,0 +1,38 @@ +Summary: various2 +Name: various2 +Version: 1 +Release: 1 +License: x +Group: x +Url: x +BuildRoot: %{_tmppath}/%{name} + +%prep +echo foo > foo + +%build + +%install +rm -rf $RPM_BUILD_ROOT +for i in /etc/test-%{name} \ + /var/lib/test-%{name}/foo1 /var/lib/test-%{name}/foo2 /var/lib/test-%{name}/foo3 \ + /usr/share/locale/fr/LC_MESSAGES/test-%{name}.mo \ + /usr/test-%{name}/foo; do + install -d `dirname $RPM_BUILD_ROOT$i` + echo foo > $RPM_BUILD_ROOT$i +done + +%find_lang test-%{name} + +%clean +rm -rf $RPM_BUILD_ROOT + +%description +x + +%files -f test-%{name}.lang +%defattr(-,root,root) +%doc foo +%config(noreplace) /etc/* +/var/lib/* +/usr/test-%{name} diff --git a/t/data/SPECS/various3.spec b/t/data/SPECS/various3.spec new file mode 100644 index 00000000..5d147f75 --- /dev/null +++ b/t/data/SPECS/various3.spec @@ -0,0 +1,38 @@ +Summary: various3 +Name: various3 +Version: 1 +Release: 1 +License: x +Group: x +Url: x +BuildRoot: %{_tmppath}/%{name} + +%prep +echo foo > foo + +%build + +%install +rm -rf $RPM_BUILD_ROOT +for i in /etc/test-%{name} \ + /var/lib/test-%{name}/foo1 /var/lib/test-%{name}/foo2 /var/lib/test-%{name}/foo3 \ + /usr/share/locale/fr/LC_MESSAGES/test-%{name}.mo \ + /usr/test-%{name}/foo; do + install -d `dirname $RPM_BUILD_ROOT$i` + echo foo > $RPM_BUILD_ROOT$i +done + +%find_lang test-%{name} + +%clean +rm -rf $RPM_BUILD_ROOT + +%description +x + +%files -f test-%{name}.lang +%defattr(-,root,root) +%doc foo +%config(noreplace) /etc/* +/var/lib/* +/usr/test-%{name} diff --git a/t/data/media.cfg b/t/data/media.cfg new file mode 100644 index 00000000..49a0a1d7 --- /dev/null +++ b/t/data/media.cfg @@ -0,0 +1,26 @@ +[media_info] +version=2007.0 +mediacfg_version=2 + +[various] +hdlist=hdlist_various.cz +name=Various +size=1m + +[various2] +hdlist=hdlist_various2.cz +name=Various II +size=1m + +[various3] +hdlist=hdlist_various3.cz +name=Various III +size=1m +noauto=1 + +[various_bis] +hdlist=hdlist_bis.cz +name=Various Bis +size=1m +debug_for=various +noauto=1 diff --git a/t/data/rpm-buggy/invalid-signature.rpm b/t/data/rpm-buggy/invalid-signature.rpm new file mode 100644 index 00000000..20944405 Binary files /dev/null and b/t/data/rpm-buggy/invalid-signature.rpm differ diff --git a/t/data/rpm-buggy/not-a-rpm.rpm b/t/data/rpm-buggy/not-a-rpm.rpm new file mode 100644 index 00000000..d00491fd --- /dev/null +++ b/t/data/rpm-buggy/not-a-rpm.rpm @@ -0,0 +1 @@ +1 diff --git a/t/data/rpm-buggy/weird-header.rpm b/t/data/rpm-buggy/weird-header.rpm new file mode 100644 index 00000000..51561037 Binary files /dev/null and b/t/data/rpm-buggy/weird-header.rpm differ diff --git a/t/data/rpm-v3/libtermcap-2.0.8-2.i386.rpm b/t/data/rpm-v3/libtermcap-2.0.8-2.i386.rpm new file mode 100644 index 00000000..390524dc Binary files /dev/null and b/t/data/rpm-v3/libtermcap-2.0.8-2.i386.rpm differ diff --git a/t/data/rpm-v3/nls-1.0-2.i386.rpm b/t/data/rpm-v3/nls-1.0-2.i386.rpm new file mode 100644 index 00000000..c05d7f85 Binary files /dev/null and b/t/data/rpm-v3/nls-1.0-2.i386.rpm differ diff --git a/t/data/rpm-v3/p2c-1.20-7.i386.rpm b/t/data/rpm-v3/p2c-1.20-7.i386.rpm new file mode 100644 index 00000000..a0fd4e41 Binary files /dev/null and b/t/data/rpm-v3/p2c-1.20-7.i386.rpm differ -- cgit v1.2.1