forked from rpm-software-management/rpm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Honor _enable_debug_packages when processing files
If the automatic creation of debuginfo packages is switched off via the __debug_package macro don't touch debuginfo packages that are declared in the spec file. If the packager created those on their own we should not mess with them. Also don't generate buildid files. Resolves: rpm-software-management#3057
- Loading branch information
Showing
3 changed files
with
89 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
# To whom it may concern: | ||
# DO NOT COPY THIS SPEC or its derivates to your testcase. That is, | ||
# unless your test-case actually requires running a compiler and | ||
# inspecting it's output. Everybody else should use a simple noarch | ||
# package which can be built under runroot in the test-suite. | ||
|
||
Summary: hello -- hello, world rpm | ||
Name: hello | ||
Version: 1.0 | ||
Release: 1 | ||
Group: Utilities | ||
License: GPL | ||
SourceLicense: GPL, ASL 1.0 | ||
Distribution: RPM test suite. | ||
URL: http://rpm.org | ||
Source0: hello-1.0.tar.gz | ||
Patch0: hello-1.0-modernize.patch | ||
Prefix: /usr | ||
%global _enable_debug_packages 0 | ||
|
||
%description | ||
Simple rpm demonstration. | ||
|
||
%prep | ||
%setup -q | ||
%patch -p1 -b .modernize 0 | ||
|
||
%build | ||
make | ||
|
||
%install | ||
mkdir -p $RPM_BUILD_ROOT/usr/local/bin | ||
make DESTDIR=$RPM_BUILD_ROOT install | ||
mkdir -p %{buildroot}/usr/lib/debug | ||
touch %{buildroot}/usr/lib/debug/test.txt | ||
|
||
%files | ||
%defattr(-,root,root) | ||
%doc FAQ | ||
#%readme README | ||
#%license COPYING | ||
%attr(0751,root,root) /usr/local/bin/hello | ||
|
||
%package debuginfo | ||
Summary: debuginfo | ||
|
||
%description debuginfo | ||
description | ||
|
||
%files debuginfo | ||
/usr/lib/debug/test.txt | ||
|
||
%changelog | ||
* Tue Oct 20 1998 Jeff Johnson <[email protected]> | ||
- create. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters