aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/data/rpm/specs/gbp-test-tags.spec
blob: ee4c2b94aaa1733888dcc2494363af9f634fc587 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
#
# Spec file for testing all RPM tags (that we know of
#

%define suse_release %(test -e /etc/SuSE-release && head -n1 /etc/SuSE-release | cut -d ' ' -f2 | cut --output-delimiter=0 -d. -f1,2 || echo 0)
%if "%{suse_release}" >= "1201"
%define test_weak_dep_tags 1
%endif

%define test_arch_os_tags %(test -n "$GBP_SKIP_ARCH_OS_TAGS" && echo 0 || echo 1)

%define source_fn_base source
%define patch_fn_base patch

# Gbp-Undefined-Tag: foobar

# Test that we accept different cases
NAME:           my_name
version:        0
ReLeasE:        0

# Rest of the tags
Epoch:          0
Summary:        my_summary
License:        my_license
Distribution:   my_distribution
Vendor:         my_vendor
Group:          my_group
Packager:       my_packager
Url:            my_url
Vcs:            my_vcs
Source:         my_source
Patch:          my_%patch_fn_base
Patch0:         my_%{patch_fn_base}0
Nosource:       0
Nopatch:        0
#Icon:           my_icon
BuildRoot:      my_buildroot
Provides:       my_provides
Requires:       my_requires
Conflicts:      my_conflicts
Obsoletes:      my_obsoletes
BuildConflicts: my_buildconflicts
BuildRequires:  my_buildrequires
AutoReqProv:    No
AutoReq:        No
AutoProv:       No
DistTag:        my_disttag
BugUrl:         my_bugurl
Collections:    my_collections

%if 0%{?test_weak_dep_tags}
Recommends:     my_recommends
Suggests:       my_suggests
Supplements:    my_supplements
Enhances:       my_enhances
BuildRecommends:my_buildrecommends
BuildSuggests:  my_buildsuggests
BuildSupplements:my_buildsupplements
BuildEnhances:  my_buildenhances
%endif

# These should be filtered out by GBP
%if "%{test_arch_os_tags}" != "0"
BuildArch:      my_buildarch
ExcludeArch:    my_excludearch
ExclusiveArch:  my_exclusivearch
ExcludeOs:      my_excludeos
ExclusiveOs:    my_exclusiveos
%endif

%description
Package for testing GBP.