Skip to content

Commit 11a2924

Browse files
committed
Format and modify test/spec/bogus-date.spec
The description information has been changed to explain the purpose of this test case file.
1 parent fbb5765 commit 11a2924

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

test/spec/bogus-date.spec

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
11
### Based on macro-in-changelog.spec, I added the date information in changlog, as follows:
2-
Name: macro-in
2+
Name: bogus-date
33
Version: 0
44
Release: 0
5-
Summary: macro-in
5+
Summary: bogus-date
66
License: GPL-2.0-only
77
Group: Undefined
88
URL: http://rpmlint.zarb.org/#%{name}
99
Source0: Source0.tar.gz
1010

1111
%description
12-
Macros are expanded in %changelog too, which can in unfortunate cases lead
13-
to the package not building at all, or other subtle unexpected conditions that
14-
affect the build. Even when that doesn't happen, the expansion results in
15-
possibly 'rewriting history' on subsequent package revisions and generally
16-
odd entries eg. in source rpms, which is rarely wanted. Avoid use of macros
17-
in %changelog altogether, or use two '%'s to escape them, like '%%foo'.
12+
The 'rpm -q --specfile' command will display a warning message if the day of the
13+
week or date is not set correctly in %changelog.
14+
For example:'warning: bogus date in %changelog'
1815

1916
%prep
2017

0 commit comments

Comments
 (0)