summaryrefslogtreecommitdiff
path: root/tests/data/SPECS/globtest.spec
blob: 80f45de73c3fadaabdb369bbca7b047bde147e44 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Name:           globtest 
Version:        1.0
Release:        1
Summary:        Testing file glob behavior
Group:          Testing
License:        GPL
BuildArch:	noarch

%description
%{summary}

%define testdir /opt/%{name}

%install
rm -rf $RPM_BUILD_ROOT

mkdir -p $RPM_BUILD_ROOT/%{testdir}
echo "foo" > $RPM_BUILD_ROOT/%{testdir}/weird%%name
for f in bif baf zab zeb zib; do
    echo "$f" > $RPM_BUILD_ROOT/%{testdir}/$f
done
for f in bing bang bong; do
    mkdir -p $RPM_BUILD_ROOT/%{testdir}/$f
done
mkdir -p $RPM_BUILD_ROOT/%{testdir}/foo
for f in one two three; do
    echo "$f" > $RPM_BUILD_ROOT/%{testdir}/foo/$f
done

ln -s %{testdir}/zab $RPM_BUILD_ROOT/%{testdir}/linkgood
ln -s %{testdir}/zub $RPM_BUILD_ROOT/%{testdir}/linkbad

%files
%defattr(-,root,root,-)
%{testdir}/b??
%{testdir}/weird?name
%{testdir}/z*
%{testdir}/l*
%{testdir}/b*g/
%dir %{testdir}/foo
%{testdir}/foo/*