Skip to content

Commit a2bcb9c

Browse files
committed
fakelib: add test for the new fileattr plugin
This is a package that "builds" by copying two files: a systemd library that is known to use dlopen notes and another glibc library that doesn't have them. It can be built with 'rpmbuild' or 'fedpkg local'. For example: (cd fakelib && fedpkg local && echo 'Requires:' && rpm -qpv --requires x86_64/fakelib-0-1.fc44.x86_64.rpm && echo 'Recommends:' && rpm -qpv --recommends x86_64/fakelib-0-1.fc44.x86_64.rpm && echo 'Suggests:' && rpm -qpv --suggests x86_64/fakelib-0-1.fc44.x86_64.rpm)
1 parent 11d4137 commit a2bcb9c

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

fakelib/fakelib.spec

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# SPDX-License-Identifier: CC0-1.0
2+
#
3+
# This file is part of the package-notes package.
4+
5+
Name: fakelib
6+
Version: 0
7+
Release: %autorelease
8+
Summary: %{name}
9+
10+
License: None
11+
12+
%define __dlopen_notes_requires_opts --rpm-features=fakelib:gcrypt,fakelib:lz4
13+
%define __dlopen_notes_recommends_opts --rpm-features=*:zstd
14+
%define __dlopen_notes_suggests_opts --rpm-features=fakelib:lzm[abc]
15+
16+
#undefine _dlopen_notes_generator
17+
18+
%description
19+
%{summary}.
20+
21+
%prep
22+
23+
%build
24+
25+
%install
26+
install -Dt %{buildroot}/usr/lib64/ /usr/lib64/libsystemd.so.0
27+
ln -s libsystemd.so.0 %{buildroot}/usr/lib64/libsystemd.so
28+
install -Dt %{buildroot}/usr/lib64/ /usr/lib64/libmvec.so.1
29+
30+
%files
31+
/usr/lib64/libsystemd.so.0
32+
/usr/lib64/libsystemd.so
33+
/usr/lib64/libmvec.so.1
34+
35+
%changelog
36+
%autochangelog

0 commit comments

Comments
 (0)