test/filesystem.spec
author Kristian H?gsberg <krh@redhat.com>
Fri Jul 03 19:06:29 2009 +0100 (2009-07-03)
changeset 373 fda83d91e600
child 393 d16ac3fb05fa
permissions -rw-r--r--
Go back to having all info in one rzdb file.

We can still split the rzdb file into a main file and a file data and a details file, but that's only for optimizing the required download size. On the system we always combine the parts back into one rzdb file once downloaded.

committer: J. Ali Harlow <ali@juiblex.co.uk>
ali@352
     1
Name:      filesystem
ali@352
     2
Summary:   Test package
ali@352
     3
Group:     Test
ali@352
     4
License:   GPL
ali@352
     5
Version:   1
ali@352
     6
Release:   1
ali@352
     7
BuildArch: noarch
ali@352
     8
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
ali@352
     9
ali@352
    10
%description
ali@352
    11
Test package
ali@352
    12
ali@352
    13
%prep
ali@352
    14
ali@352
    15
%build
ali@352
    16
ali@352
    17
%install
ali@352
    18
mkdir %{buildroot}
ali@352
    19
mkdir -p %{buildroot}%{_sysconfdir}
ali@352
    20
mkdir -p %{buildroot}/{%{_bindir},%{_libdir},%{_includedir}}
ali@352
    21
mkdir -p %{buildroot}/media
ali@352
    22
ali@352
    23
%clean
ali@352
    24
rm -rf %{buildroot}
ali@352
    25
ali@352
    26
%post -p <lua>
ali@352
    27
function mkdir_missing(dir)
ali@352
    28
    if posix.stat(dir) == nil then
ali@352
    29
        posix.mkdir(dir)
ali@352
    30
    end
ali@352
    31
end
ali@352
    32
mkdir_missing("/media/cdrom")
ali@352
    33
ali@352
    34
%files
ali@352
    35
%defattr(0755,root,root)
ali@352
    36
/etc
ali@352
    37
%{_prefix}
ali@352
    38
%dir /media