[521] | 1 | %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(0)")} |
---|
| 2 | |
---|
| 3 | Summary: XCB protocol descriptions |
---|
| 4 | Name: xcb-proto |
---|
[528] | 5 | Version: 1.6 |
---|
[1901] | 6 | Release: 2%{?_dist_release} |
---|
[521] | 7 | |
---|
| 8 | Group: Development/Libraries |
---|
| 9 | License: MIT |
---|
| 10 | URL: http://xcb.freedesktop.org/ |
---|
| 11 | Source0: http://xcb.freedesktop.org/dist/%{name}-%{version}.tar.bz2 |
---|
| 12 | BuildArch: noarch |
---|
| 13 | |
---|
| 14 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 15 | BuildRequires: python |
---|
| 16 | Requires: pkgconfig |
---|
| 17 | |
---|
| 18 | %description |
---|
| 19 | XCB is a project to enable efficient language bindings to the X11 protocol. |
---|
| 20 | This package contains the protocol descriptions themselves. Language |
---|
| 21 | bindings use these protocol descriptions to generate code for marshalling |
---|
| 22 | the protocol. |
---|
| 23 | |
---|
| 24 | %prep |
---|
| 25 | %setup -q |
---|
| 26 | |
---|
| 27 | %build |
---|
| 28 | # Bit of a hack to get the pc file in /usr/share, no we can be noarch. |
---|
| 29 | %configure --libdir=%{_datadir} |
---|
| 30 | make %{?_smp_mflags} |
---|
| 31 | |
---|
| 32 | %install |
---|
| 33 | rm -rf $RPM_BUILD_ROOT |
---|
| 34 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
| 35 | |
---|
| 36 | %clean |
---|
| 37 | rm -rf $RPM_BUILD_ROOT |
---|
| 38 | |
---|
| 39 | %files |
---|
| 40 | %defattr(-,root,root,-) |
---|
| 41 | %doc COPYING NEWS README TODO doc/xml-xcb.txt |
---|
| 42 | %{_datadir}/pkgconfig/xcb-proto.pc |
---|
| 43 | %dir %{_datadir}/xcb/ |
---|
| 44 | %{_datadir}/xcb/*.xsd |
---|
| 45 | %{_datadir}/xcb/*.xml |
---|
| 46 | %{python_sitelib}/xcbgen |
---|
| 47 | |
---|
| 48 | %changelog |
---|
[1901] | 49 | * Sun Sep 26 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.6-2 |
---|
| 50 | - rebuild with rpm-4.8.1 for pkg-config file |
---|
| 51 | |
---|
[528] | 52 | * Mon Mar 08 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.6-1 |
---|
| 53 | - new upstream release |
---|
| 54 | |
---|
[521] | 55 | * Wed Feb 03 2010 Shu KONNO <owa@bg.wakwak.com> 1.5-2 |
---|
| 56 | - rebuilt with python-2.6.4 |
---|
| 57 | |
---|
| 58 | * Tue Nov 17 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.5-1 |
---|
| 59 | - new upstream release |
---|
| 60 | |
---|
| 61 | * Wed Mar 18 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4-1 |
---|
| 62 | - new upstream release |
---|
| 63 | - add BR: python |
---|
| 64 | |
---|
| 65 | * Sun May 18 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1-1 |
---|
| 66 | - new versioning policy |
---|
| 67 | |
---|
| 68 | * Sun Jan 13 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1-0vl1 |
---|
| 69 | - initial build for Vine Linux |
---|
| 70 | |
---|
| 71 | * Mon Nov 12 2007 Adam Jackson <ajax@redhat.com> 1.1-1 |
---|
| 72 | - xcb-proto 1.1 |
---|
| 73 | |
---|
| 74 | * Fri Jun 29 2007 Adam Jackson <ajax@redhat.com> 1.0-1 |
---|
| 75 | - Initial revision. |
---|