summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packaging/libpciaccess.spec9
1 files changed, 7 insertions, 2 deletions
diff --git a/packaging/libpciaccess.spec b/packaging/libpciaccess.spec
index a1d06d0..9d06fb2 100644
--- a/packaging/libpciaccess.spec
+++ b/packaging/libpciaccess.spec
@@ -1,3 +1,5 @@
+%bcond_with x
+
Name: libpciaccess
Version: 0.13.1
Release: 1
@@ -12,9 +14,12 @@ BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: pkgconfig
-BuildRequires: pkgconfig(xorg-macros)
BuildRequires: pkgconfig(zlib)
+%if %{with x}
+BuildRequires: pkgconfig(xorg-macros)
+%endif
+
%description
libpciaccess is a library for portable PCI access routines across multiple
operating systems.
@@ -34,7 +39,7 @@ cp %{SOURCE1001} .
%build
%configure --disable-static \
- --with-pciids-path=%{_datadir}/misc --with-zlib
+ --with-pciids-path=%{_datadir}/misc --with-zlib
make %{?_smp_mflags}
%install