diff options
Diffstat (limited to 't/data/SPECS')
39 files changed, 774 insertions, 0 deletions
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} |