+%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
-#Git-Clone: git://anongit.freedesktop.org/xorg/lib/libXrender
Source: %{name}-%{version}.tar.bz2
-#git#BuildRequires: autoconf >= 2.60, automake, libtool
+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
%prep
%setup -q
+cp %{SOURCE1001} .
%build
-%reconfigure --docdir=%_docdir/%{name} --disable-static
+%configure --docdir=%_docdir/%{name} --disable-static
make %{?_smp_mflags}
%install
%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