83 lines
2.1 KiB
RPMSpec
83 lines
2.1 KiB
RPMSpec
|
Name: libxcb
|
||
|
Version: 1.0
|
||
|
Release: 1%{?dist}
|
||
|
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)
|
||
|
|
||
|
Patch0: libxcb-1.0-no-pthread-stubs.patch
|
||
|
|
||
|
BuildRequires: autoconf automake libtool pkgconfig
|
||
|
BuildRequires: doxygen
|
||
|
BuildRequires: graphviz
|
||
|
BuildRequires: libXau-devel
|
||
|
BuildRequires: libxslt
|
||
|
BuildRequires: xcb-proto
|
||
|
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
|
||
|
%patch -p1 -b .pthread-stubs
|
||
|
|
||
|
%build
|
||
|
autoreconf -v --install
|
||
|
%configure --disable-static --docdir=%{_datadir}/doc/%{name}-%{version}
|
||
|
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}
|
||
|
|
||
|
%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
|
||
|
* Fri Jun 29 2007 Adam Jackson <ajax@redhat.com> 1.0-1
|
||
|
- Initial revision.
|