Stefan Dirsch
5851a4800d
update to version 1.11 OBS-URL: https://build.opensuse.org/request/show/243721 OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/xcb-proto?expand=0&rev=9
101 lines
2.8 KiB
RPMSpec
101 lines
2.8 KiB
RPMSpec
#
|
|
# 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.11
|
|
|
|
Name: xcb-proto
|
|
Version: 7.6_%{dirsuffix}
|
|
Release: 0
|
|
BuildRequires: pkg-config
|
|
BuildRequires: python-base
|
|
|
|
BuildRequires: autoconf >= 2.60
|
|
BuildRequires: automake
|
|
BuildRequires: fdupes
|
|
BuildRequires: libtool
|
|
|
|
Url: http://xorg.freedesktop.org/
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
Summary: The X Protocol
|
|
License: X11
|
|
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
|
|
#Provides: xorg-x11-proto-devel://usr/%{_lib}/pkgconfig/xcb-proto.pc
|
|
Provides: xorg-x11-proto-devel = 7.6
|
|
Obsoletes: xorg-x11-proto-devel <= 7.6
|
|
|
|
%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)
|
|
%doc COPYING
|
|
%if %suse_version > 1110
|
|
%python_sitelib/xcbgen/
|
|
%else
|
|
/usr/%{_lib}/python2.6/site-packages/xcbgen/
|
|
%endif
|
|
|
|
%changelog
|