test/zsh2.spec
author J. Ali Harlow <ali@juiblex.co.uk>
Fri Jun 12 16:59:11 2009 +0100 (2009-06-12)
changeset 369 f8c27fe9fe63
child 393 d16ac3fb05fa
permissions -rw-r--r--
Add basic support for uninstall scripts.
RPM_INSTALL_PREFIX{n} is not yet supported and upgrading a package
where an uninstall script changes may need more work to ensure the
old script doesn't get included in the merged set (when it is too
late to remove). I haven't yet tested whether this is a real problem.
ali@363
     1
Name:      zsh2
ali@363
     2
Summary:   Test package
ali@363
     3
Group:     Test
ali@363
     4
License:   GPL
ali@363
     5
Version:   1
ali@363
     6
Release:   1
ali@363
     7
Source:    zsh2.tar
ali@363
     8
BuildArch: noarch
ali@363
     9
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
ali@363
    10
Prefix:    /usr
ali@363
    11
Requires:  zip
ali@363
    12
ali@363
    13
%description
ali@363
    14
New and improved test package
ali@363
    15
ali@363
    16
%prep
ali@363
    17
ali@363
    18
%build
ali@363
    19
ali@363
    20
%install
ali@363
    21
mkdir -p $RPM_BUILD_ROOT/usr/bin
ali@363
    22
mkdir -p $RPM_BUILD_ROOT/etc
ali@363
    23
touch $RPM_BUILD_ROOT/usr/bin/zsh2
ali@363
    24
echo "DEVICE /dev/tty" > $RPM_BUILD_ROOT/etc/zsh.conf
ali@363
    25
ali@363
    26
%clean
ali@363
    27
ali@363
    28
%files
ali@363
    29
/usr/bin/zsh2
ali@363
    30
/etc/zsh.conf