From 39af90dafd66cd358fba9f9d1c2c8f4c3fed1a5f191da551a37eb716044d2a22 Mon Sep 17 00:00:00 2001 From: David Disseldorp Date: Wed, 6 Feb 2019 14:22:46 +0000 Subject: [PATCH] - export PACKAGE_DISTRIBUTION="suse" for build; (bsc#1123311). OBS-URL: https://build.opensuse.org/package/show/Base:System/pcp?expand=0&rev=74 --- pcp.changes | 5 +++++ pcp.spec | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/pcp.changes b/pcp.changes index c19f3d8..6af03cb 100644 --- a/pcp.changes +++ b/pcp.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Feb 6 14:21:04 UTC 2019 - ddiss@suse.com + +- export PACKAGE_DISTRIBUTION="suse" for build; (bsc#1123311). + ------------------------------------------------------------------- Thu Jan 31 12:58:08 UTC 2019 - ddiss@suse.com diff --git a/pcp.spec b/pcp.spec index 8da06b2..6ec13f5 100644 --- a/pcp.spec +++ b/pcp.spec @@ -2136,6 +2136,10 @@ autoconf rm -Rf $RPM_BUILD_ROOT %build +%if 0%{?suse_version} +# in case we're building without os-release (bsc#1123311)... +export PACKAGE_DISTRIBUTION="suse" +%endif PCP_CFLAGS="$RPM_OPT_FLAGS" CFLAGS="$RPM_OPT_FLAGS" CCFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" %configure \ --with-tmpdir=%{_tempsdir} \ --datarootdir=%{_datadir} \