]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dracut.spec: omit pkg-config from dependencies
authorHarald Hoyer <harald@redhat.com>
Wed, 30 Sep 2015 12:10:20 +0000 (14:10 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 11 Nov 2015 10:48:32 +0000 (11:48 +0100)
dracut.spec

index 6ef5de7af8e88a6ae148d3f977160a027e429af4..d0bb9bd77818a8faae5892ab38316ef7eb3d4a95 100644 (file)
@@ -1,6 +1,11 @@
 %define dracutlibdir %{_prefix}/lib/dracut
 %bcond_without doc
 
+# We ship a .pc file but don't want to have a dep on pkg-config. We
+# strip the automatically generated dep here and instead co-own the
+# directory.
+%global __requires_exclude pkg-config
+
 # Variables must be defined
 %define with_nbd                1
 
@@ -327,6 +332,7 @@ rm -rf -- $RPM_BUILD_ROOT
 %endif
 %dir %{_sysconfdir}/dracut.conf.d
 %dir %{dracutlibdir}/dracut.conf.d
+%dir %{_datadir}/pkgconfig
 %{_datadir}/pkgconfig/dracut.pc
 
 %if %{with doc}