~ubuntu-branches/debian/sid/rpm/sid

« back to all changes in this revision

Viewing changes to tests/data/SPECS/globtest.spec

  • Committer: Package Import Robot
  • Author(s): Michal Čihař
  • Date: 2013-06-06 11:39:34 UTC
  • mfrom: (1.1.16)
  • Revision ID: package-import@ubuntu.com-20130606113934-ela3du14fyba0t6u
Tags: 4.11.0.1-1
* New upstream release.
* Bump standards to 3.9.4.
* Refresh patches, update patch from Fedora.
* Build with Lua 5.2.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Name:           globtest 
 
2
Version:        1.0
 
3
Release:        1
 
4
Summary:        Testing file glob behavior
 
5
Group:          Testing
 
6
License:        GPL
 
7
BuildArch:      noarch
 
8
 
 
9
%description
 
10
%{summary}
 
11
 
 
12
%define testdir /opt/%{name}
 
13
 
 
14
%install
 
15
rm -rf $RPM_BUILD_ROOT
 
16
 
 
17
mkdir -p $RPM_BUILD_ROOT/%{testdir}
 
18
echo "foo" > $RPM_BUILD_ROOT/%{testdir}/weird%%name
 
19
for f in bif baf zab zeb zib; do
 
20
    echo "$f" > $RPM_BUILD_ROOT/%{testdir}/$f
 
21
done
 
22
for f in bing bang bong; do
 
23
    mkdir -p $RPM_BUILD_ROOT/%{testdir}/$f
 
24
done
 
25
mkdir -p $RPM_BUILD_ROOT/%{testdir}/foo
 
26
for f in one two three; do
 
27
    echo "$f" > $RPM_BUILD_ROOT/%{testdir}/foo/$f
 
28
done
 
29
 
 
30
ln -s %{testdir}/zab $RPM_BUILD_ROOT/%{testdir}/linkgood
 
31
ln -s %{testdir}/zub $RPM_BUILD_ROOT/%{testdir}/linkbad
 
32
 
 
33
%files
 
34
%defattr(-,root,root,-)
 
35
%{testdir}/b??
 
36
%{testdir}/weird?name
 
37
%{testdir}/z*
 
38
%{testdir}/l*
 
39
%{testdir}/b*g/
 
40
%dir %{testdir}/foo
 
41
%{testdir}/foo/*