rpm-ostree/tests/common/compose/yum/test-post-rofiles-violation.spec
Colin Walters d3bf60d373 tests: Add a pkg with rofiles violation that should fail
To ensure we don't accidentally allow mutations.

Closes: #560
Approved by: jlebon
2017-01-11 18:39:25 +00:00

34 lines
500 B
RPMSpec

Summary: Test failure to install due rofiles violatiin
Name: test-posttrunc-fail
Version: 1.0
Release: 1
License: GPLv2+
Group: Development/Tools
URL: http://example.com
BuildArch: x86_64
%description
%{summary}
%prep
%build
cat > scriptpkg1 << EOF
#!/bin/sh
echo "Hello!"
EOF
chmod a+x scriptpkg1
%post
echo 'should fail' >> /usr/share/licenses/glibc/COPYING
%install
mkdir -p %{buildroot}/usr/bin
install scriptpkg1 %{buildroot}/usr/bin
%clean
rm -rf %{buildroot}
%files
/usr/bin/scriptpkg1