summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonan Le Martret <ronan@fridu.net>2014-01-29 17:35:53 +0100
committerRonan Le Martret <ronan@fridu.net>2014-01-29 17:35:53 +0100
commitf78fc31c86aed51312b49c901a547491e4e0986b (patch)
tree12d82d7f4ae1672a9a8e418e02aaa7a8095ab895
parent5acc5e7edb59e4e23517faf8b36424db55a87bc6 (diff)
downloadlibpciaccess-accepted/tizen/generic.tar.gz
libpciaccess-accepted/tizen/generic.tar.bz2
libpciaccess-accepted/tizen/generic.zip
Change-Id: I6029af33ffe180ca4d159844e6da95faacbab286 Signed-off-by: Ronan Le Martret <ronan@fridu.net>
-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