diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2013-01-03 17:08:36 +0200 |
---|---|---|
committer | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2014-06-05 14:20:06 +0300 |
commit | e5dda623f7428175004fb8cffe4b669f19cd4132 (patch) | |
tree | 1676ad9c74d9547381dfbc6553ff16dcbd75a7c3 /tests/test_rpm_data | |
parent | e48816d3a3e175b64aca5dcc168739847f44cbe5 (diff) | |
download | git-buildpackage-e5dda623f7428175004fb8cffe4b669f19cd4132.tar.gz git-buildpackage-e5dda623f7428175004fb8cffe4b669f19cd4132.tar.bz2 git-buildpackage-e5dda623f7428175004fb8cffe4b669f19cd4132.zip |
rpm helpers: support all tags
Support all 'non-list' tags that we know of.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'tests/test_rpm_data')
-rw-r--r-- | tests/test_rpm_data/specs/gbp-test-tags.spec | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/tests/test_rpm_data/specs/gbp-test-tags.spec b/tests/test_rpm_data/specs/gbp-test-tags.spec new file mode 100644 index 00000000..9841a39e --- /dev/null +++ b/tests/test_rpm_data/specs/gbp-test-tags.spec @@ -0,0 +1,70 @@ +# +# 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) + +# 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 +Patch0: my_patch +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. + |