+Summary: X-Resource extension client library
+Name: libXres
+Version: 1.0.7
+Release: 1
+License: MIT
+Group: System Environment/Libraries
+URL: http://www.x.org
-Name: libXres
-Summary: X.Org X11 libXres runtime library
-Version: 1.0.5
-Release: 0
-Group: System/Libraries
-License: MIT
-URL: http://www.x.org
-Source0: http://xorg.freedesktop.org/releases/individual/lib/%{name}-%{version}.tar.gz
-Requires(post): /sbin/ldconfig
-Requires(postun): /sbin/ldconfig
-BuildRequires: pkgconfig(xorg-macros)
-BuildRequires: pkgconfig(x11)
-BuildRequires: pkgconfig(xext)
-BuildRequires: pkgconfig(resourceproto)
+Source0: %{name}-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
+BuildRequires: pkgconfig(xext)
+BuildRequires: pkgconfig(resourceproto)
+BuildRequires: pkgconfig(xorg-macros)
+BuildRequires: pkgconfig(xproto)
%description
-Description: %{summary}
-
+X-Resource is an extension that allows a client to query
+the X server about its usage of various resources.
%package devel
-Summary: X.Org X11 libXres development package
-Group: System/Libraries
-Requires: %{name} = %{version}-%{release}
-Requires: xorg-x11-filesystem
+Summary: Development files for %{name}
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+Provides: libxres-devel
%description devel
-Description: %{summary}
-
+X.Org X11 libXres development package
%prep
-%setup -q -n %{name}-%{version}
-
+%setup -q
%build
-
-%reconfigure \
- LDFLAGS="-Wl,--hash-style=both -Wl,--as-needed"
-
-# Call make instruction with smp support
+%reconfigure --disable-static \
+ LDFLAGS="${LDFLAGS} -Wl,--hash-style=both -Wl,--as-needed"
make %{?jobs:-j%jobs}
%install
-rm -rf %{buildroot}
-%make_install
+rm -rf $RPM_BUILD_ROOT
+mkdir -p %{buildroot}/usr/share/license
+cp -af COPYING %{buildroot}/usr/share/license/%{name}
+make install DESTDIR=$RPM_BUILD_ROOT
+# We intentionally don't ship *.la files
+rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
-%clean
-rm -rf %{buildroot}
-
+%remove_docs
+%clean
+rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
-
%postun -p /sbin/ldconfig
-
-
%files
%defattr(-,root,root,-)
-%doc AUTHORS COPYING README ChangeLog
+/usr/share/license/%{name}
+%doc AUTHORS COPYING
%{_libdir}/libXRes.so.1
%{_libdir}/libXRes.so.1.0.0
-
%files devel
%defattr(-,root,root,-)
-%dir %{_includedir}/X11
-%dir %{_includedir}/X11/extensions
%{_includedir}/X11/extensions/XRes.h
%{_libdir}/libXRes.so
%{_libdir}/pkgconfig/xres.pc
#%dir %{_mandir}/man3x
-%{_mandir}/man3/*.3*
-
+#%{_mandir}/man3/*.3*
\ No newline at end of file