summaryrefslogtreecommitdiffstats
path: root/t/SPECS/arch_to_noarch_3.spec
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2006-11-30 13:28:03 +0000
committerPascal Rigaux <pixel@mandriva.com>2006-11-30 13:28:03 +0000
commit37b66b6b34d29c9e628c4a0bbf5babdb5e1340fe (patch)
tree9847ca49d51ce41e951fcabcd0ed6344a3e5009a /t/SPECS/arch_to_noarch_3.spec
parente15d45cca3d34d223927cf37f497de3a9703fb78 (diff)
downloadurpmi-37b66b6b34d29c9e628c4a0bbf5babdb5e1340fe.tar
urpmi-37b66b6b34d29c9e628c4a0bbf5babdb5e1340fe.tar.gz
urpmi-37b66b6b34d29c9e628c4a0bbf5babdb5e1340fe.tar.bz2
urpmi-37b66b6b34d29c9e628c4a0bbf5babdb5e1340fe.tar.xz
urpmi-37b66b6b34d29c9e628c4a0bbf5babdb5e1340fe.zip
using --urpmi-root, create some tests using urpmi.addmedia, urpmi, urpme
one drawback of the superuser--*.t is the need to be root (the rpmlib needs it to install in a root partition), so for now "make test" tests *.t but superuser--*.t are skipped. Then as root, run "sudo make test TEST_FILES='t/superuser--*.t'"
Diffstat (limited to 't/SPECS/arch_to_noarch_3.spec')
-rw-r--r--t/SPECS/arch_to_noarch_3.spec29
1 files changed, 29 insertions, 0 deletions
diff --git a/t/SPECS/arch_to_noarch_3.spec b/t/SPECS/arch_to_noarch_3.spec
new file mode 100644
index 00000000..be9cdb4d
--- /dev/null
+++ b/t/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}
+