libxcb/libxcb.spec

129 lines
3.9 KiB
RPMSpec
Raw Normal View History

2007-07-12 19:05:03 +00:00
Name: libxcb
2008-09-11 18:00:15 +00:00
Version: 1.1.91
2008-10-19 23:10:39 +00:00
Release: 5%{?dist}
2007-07-12 19:05:03 +00:00
Summary: A C binding to the X11 protocol
Group: System Environment/Libraries
License: MIT
URL: http://xcb.freedesktop.org/
Source0: http://xcb.freedesktop.org/dist/%{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
2008-10-19 23:10:39 +00:00
# This is stolen straight from the pthread-stubs source:
# http://cgit.freedesktop.org/xcb/pthread-stubs/blob/?id=6900598192bacf5fd9a34619b11328f746a5956d
# we don't need the library because glibc has working pthreads, but we need
# the pkgconfig file so libs that link against libxcb know this...
Source1: pthread-stubs.pc.in
2007-07-12 19:05:03 +00:00
2007-11-12 15:36:24 +00:00
Patch0: libxcb-1.1-no-pthread-stubs.patch
Patch2: libxcb-1.1-sloppy-lock.patch
Patch3: libxcb-1.1.91-git.patch
2007-07-12 19:05:03 +00:00
BuildRequires: autoconf automake libtool pkgconfig
BuildRequires: doxygen
BuildRequires: graphviz
BuildRequires: libXau-devel
BuildRequires: libxslt
2008-09-11 18:00:15 +00:00
BuildRequires: python
2007-11-12 15:36:24 +00:00
BuildRequires: xcb-proto >= 1.1
2007-07-12 19:05:03 +00:00
BuildRequires: xorg-x11-proto-devel
BuildRequires: xorg-x11-util-macros
%description
The X protocol C-language Binding (XCB) is a replacement for Xlib featuring a
small footprint, latency hiding, direct access to the protocol, improved
threading support, and extensibility.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: pkgconfig
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%package doc
Summary: Documentation for %{name}
Group: Documentation
%description doc
The %{name}-doc package contains documentation for the %{name} library.
%prep
%setup -q
%patch0 -p1 -b .pthread-stubs
%patch2 -p1 -b .sloppier
%patch3 -p1 -b .git
2007-07-12 19:05:03 +00:00
%build
autoreconf -v --install
2008-09-11 19:11:18 +00:00
%configure --disable-static --docdir=%{_datadir}/doc/%{name}-%{version} \
--enable-xselinux
2007-07-12 19:05:03 +00:00
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -name '*.la' | xargs rm -f
install -m 644 COPYING NEWS README $RPM_BUILD_ROOT/%{_datadir}/doc/%{name}-%{version}
2008-10-19 23:10:39 +00:00
sed 's,@libdir@,%{_libdir},;s,@prefix@,%{_prefix},;s,@exec_prefix@,%{_exec_prefix},' %{SOURCE1} > $RPM_BUILD_ROOT%{_libdir}/pkgconfig/pthread-stubs.pc
2007-07-12 19:05:03 +00:00
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root,-)
%{_includedir}/xcb
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%files doc
%defattr(-,root,root,-)
%{_datadir}/doc/%{name}-%{version}
%changelog
2008-10-19 23:10:39 +00:00
* Sun Oct 19 2008 Adam Jackson <ajax@redhat.com> 1.1.91-5
- Add pthread-stubs.pc
* Mon Oct 13 2008 Adam Jackson <ajax@redhat.com> 1.1.91-4
- libxcb-1.1-abstract-socket.patch: Drop.
- libxcb-1.1.91-git.patch: Update to git master.
* Wed Sep 17 2008 Adam Jackson <ajax@redhat.com> 1.1.91-3
- libxcb-1.1-xreply-leak.patch: Plug a memory leak in _XReply when the
caller has a non-fatal error handler. (mclasen, fdo #17616)
2008-09-11 19:11:18 +00:00
* Thu Sep 11 2008 Adam Jackson <ajax@redhat.com> 1.1.91-2
- Enable x-selinux bindings.
2008-09-11 18:00:15 +00:00
* Wed Sep 10 2008 Adam Jackson <ajax@redhat.com> 1.1.91-1
- libxcb 1.1.91
* Tue Apr 22 2008 Adam Jackson <ajax@redhat.com> 1.1-4
- libxcb-1.1-sloppy-lock.patch: Turn sloppy locking on all the time. I'm
tired of fighting it. (#390261)
2008-02-18 19:00:18 +00:00
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.1-2
- Autorebuild for GCC 4.3
2007-11-12 15:36:24 +00:00
* Mon Nov 12 2007 Adam Jackson <ajax@redhat.com> 1.1-1
- libxcb 1.1
* Fri Aug 24 2007 Adam Jackson <ajax@redhat.com> 1.0-3
- libxcb-1.0-abstract-socket.patch: When connecting to the X server, prefer
abstract-namespace unix sockets to filesystem-bound sockets.
2007-08-22 18:50:23 +00:00
* Wed Aug 22 2007 Adam Jackson <ajax@redhat.com> - 1.0-2
- Rebuild for PPC toolchain bug
2007-07-12 19:05:03 +00:00
* Fri Jun 29 2007 Adam Jackson <ajax@redhat.com> 1.0-1
- Initial revision.