tests/badpostun.spec
author J. Ali Harlow <ali@juiblex.co.uk>
Wed Jun 22 17:04:28 2016 +0100 (2016-06-22)
changeset 44 43ffed8669ce
permissions -rw-r--r--
Port to razor 0.6.3.60
     1 %define _source_payload w9.gzdio
     2 %define _binary_payload w9.gzdio
     3 
     4 Name:      badpostun
     5 Summary:   A package that fails in its postun script
     6 Group:     Test
     7 License:   GPL
     8 URL:       http://www.juiblex.co.uk/beach
     9 Version:   1
    10 Release:   1
    11 Source:    badpostun.tar
    12 BuildArch: noarch
    13 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
    14 Prefix:    /usr
    15 
    16 %description
    17 A package that fails in its postun script, triggering a warning on removal.
    18 
    19 %prep
    20 
    21 %build
    22 
    23 %install
    24 mkdir -p $RPM_BUILD_ROOT/usr/bin
    25 echo %{name}-%{version}-%{release} > $RPM_BUILD_ROOT/usr/bin/badpostun
    26 
    27 %clean
    28 
    29 %postun -p <lua>
    30 error("Failed after uninstall")
    31 
    32 %files
    33 /usr/bin/badpostun