# # spec file for package xcb-proto # # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define dirsuffix 1.10.1 Name: xcb-proto Version: 7.6_%{dirsuffix} BuildRequires: pkg-config BuildRequires: python-base BuildRequires: autoconf >= 2.60 BuildRequires: automake BuildRequires: libtool BuildRequires: fdupes Url: http://xorg.freedesktop.org/ Release: 0 BuildRoot: %{_tmppath}/%{name}-%{version}-build Summary: The X Protocol License: MIT Group: Development/Libraries/X11 #Source URL: http://xorg.freedesktop.org/archive/individual/xcb/ Source: %{name}-%{dirsuffix}.tar.bz2 %description The XCB Protocol Headers for X development %package -n %{name}-devel Summary: The X Protocol Group: Development/Libraries/X11 Requires: python-xcb-proto-devel = %{version} # Added within the 13.2 Development Cycle Obsoletes: xorg-x11-proto-devel://usr/%{_lib}/pkgconfig/xcb-proto.pc %description -n %{name}-devel The XCB Protocol Headers for X development %package -n python-xcb-proto-devel Summary: Python libraries mandatory for XML-XCB Development Group: Development/Libraries/X11 Requires: python-base = %{py_ver} %description -n python-xcb-proto-devel Language-independent Python libraries that used to parse an XML description and create objects used by Python code generators in individual language bindings. %prep %setup -q -n %{name}-%{dirsuffix} %build autoreconf -fi ./configure CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" \ --prefix=/usr --libdir=%{_libdir} make %{?_smp_mflags} %install make install DESTDIR="%buildroot" %if %suse_version > 1110 %fdupes -s $RPM_BUILD_ROOT/%python_sitelib/xcbgen/ %else %fdupes -s $RPM_BUILD_ROOT/usr/%{_lib}/python2.6/site-packages/xcbgen/ %endif %files -n %{name}-devel %defattr(-,root,root) %dir /usr/share/xcb %doc /usr/share/xcb/* /usr/%{_lib}/pkgconfig/*.pc %files -n python-xcb-proto-devel %defattr(-,root,root) %if %suse_version > 1110 %python_sitelib/xcbgen/ %else /usr/%{_lib}/python2.6/site-packages/xcbgen/ %endif %changelog