libXrender should not try to build into a pure wayland platform.
[platform/upstream/libXrender.git] / packaging / libXrender.spec
index 528187d..2e8a284 100644 (file)
@@ -1,24 +1,31 @@
+%bcond_with x
+
 Name:           libXrender
 Version:        0.9.7
 Release:        0
 License:        MIT
 Summary:        X Rendering Extension library
 Url:            http://cgit.freedesktop.org/xorg/lib/libXrender/
-Group:          Development/Libraries/C and C++
+Group:          Graphics/X Window System
 
 Source:         %{name}-%{version}.tar.bz2
+Source1001:    libXrender.manifest
 BuildRequires:  pkgconfig
 BuildRequires:  pkgconfig(renderproto) >= 0.9
 BuildRequires:  pkgconfig(x11)
 BuildRequires:  pkgconfig(xorg-macros) >= 1.8
 
+%if !%{with x}
+ExclusiveArch:
+%endif
+
 %description
 The Xrender library is designed as a lightweight library interface to
 the Render extension.
 
 %package devel
 Summary:        Development files for the X11 Render Extension library
-Group:          Development/Libraries/C and C++
+Group:          Development/Libraries
 Requires:       %{name} = %{version}
 
 %description devel
@@ -30,6 +37,7 @@ in %{name}.
 
 %prep
 %setup -q
+cp %{SOURCE1001} .
 
 %build
 %configure --docdir=%_docdir/%{name} --disable-static
@@ -43,10 +51,13 @@ make %{?_smp_mflags}
 %postun  -p /sbin/ldconfig
 
 %files
+%manifest %{name}.manifest
 %defattr(-,root,root)
+%license COPYING
 %{_libdir}/libXrender.so.1*
 
 %files devel
+%manifest %{name}.manifest
 %defattr(-,root,root)
 %{_includedir}/X11/*
 %{_libdir}/libXrender.so