tests/uninstallable.spec
changeset 73 2ba231a7973e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/tests/uninstallable.spec	Thu Jun 07 15:56:09 2018 +0100
     1.3 @@ -0,0 +1,30 @@
     1.4 +%define _source_payload w9.gzdio
     1.5 +%define _binary_payload w9.gzdio
     1.6 +
     1.7 +Name:      uninstallable
     1.8 +Summary:   A package that cannot be installed
     1.9 +Group:     Test
    1.10 +License:   GPL
    1.11 +URL:       http://www.juiblex.co.uk/beach
    1.12 +Version:   1
    1.13 +Release:   1
    1.14 +Source:    uninstallable.tar
    1.15 +BuildArch: noarch
    1.16 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
    1.17 +Prefix:    /usr
    1.18 +
    1.19 +%description
    1.20 +A package that cannot be installed because its pre script always fails.
    1.21 +
    1.22 +%prep
    1.23 +
    1.24 +%build
    1.25 +
    1.26 +%install
    1.27 +
    1.28 +%clean
    1.29 +
    1.30 +%pre -p <lua>
    1.31 +error("Package is uninstallable")
    1.32 +
    1.33 +%files