Closed mslacken closed 2 years ago
can you give me a real life example for this?
https://build.opensuse.org/package/show/home:mslacken:pr/openPBS with a local build with following diff to the spec file
diff --git a/openpbs.spec b/openpbs.spec
index f42fedf..27142a2 100644
--- a/openpbs.spec
+++ b/openpbs.spec
@@ -85,7 +85,7 @@
Name: %{pbs_name}
Version: %{pbs_version}
Release: %{pbs_release}
-Source0: %{pbs_dist}
+#Source0: %{pbs_dist}
Summary: OpenPBS
License: AGPLv3 with exceptions
URL: http://www.openpbs.org
@@ -307,16 +307,11 @@ functionality of PBS.
%endif
-%if 0%{?opensuse_bs}
-# Do not specify debug_package for OBS builds.
-%else
-%if 0%{?suse_version} || "x%{?_vendor_id}" == "xdebian" || "x%{?_vendor_id}" == "xubuntu"
-%debug_package
-%endif
-%endif
%prep
-%setup
+#%%setup
+%setup -q -D -T 0 -n %_sourcedir
+
%build
[ -f configure ] || ./autogen.sh
Seemed to have been an issue with the spec file.
If build directly with
osc build
from a git repo I get following problemThe file is not in the spec file so it is created during build.