diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2008-11-24 13:33:41 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2008-11-24 13:33:41 +0200 |
commit | 4662e50781d6cef4761bd34bbee7312b3012dd10 (patch) | |
tree | 14264f3b53659629512e1ddb39fe056f7bbf1384 /tests/data | |
parent | f0d61e42cf69164dca0d20e48caf1643616db2f2 (diff) | |
download | librpm-tizen-4662e50781d6cef4761bd34bbee7312b3012dd10.tar.gz librpm-tizen-4662e50781d6cef4761bd34bbee7312b3012dd10.tar.bz2 librpm-tizen-4662e50781d6cef4761bd34bbee7312b3012dd10.zip |
Add couple of tests for symlink <-> directory behavior
Diffstat (limited to 'tests/data')
-rw-r--r-- | tests/data/SPECS/symlinktest.spec | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/tests/data/SPECS/symlinktest.spec b/tests/data/SPECS/symlinktest.spec new file mode 100644 index 000000000..708ae8539 --- /dev/null +++ b/tests/data/SPECS/symlinktest.spec @@ -0,0 +1,34 @@ +%bcond_with symlink + +Name: symlinktest +Version: 1.0 +Release: %{rel} +Summary: Testing symlink behavior +Group: Testing +License: GPL +BuildArch: noarch + +%description +%{summary} + +%install +rm -rf $RPM_BUILD_ROOT +mkdir -p $RPM_BUILD_ROOT/usr/share +%if %{with symlink} +mkdir -p $RPM_BUILD_ROOT/usr/lib/%{name} +echo %{name} > $RPM_BUILD_ROOT/usr/lib/%{name}/README +ln -s ../lib/%{name} $RPM_BUILD_ROOT/usr/share/%{name} +%else +mkdir -p $RPM_BUILD_ROOT/usr/share/%{name} +echo %{name} > $RPM_BUILD_ROOT/usr/share/%{name}/README +%endif + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%if %{with symlink} +/usr/lib/%{name} +%endif +/usr/share/%{name} |