Package libxcbutil-image: Specfile

Name: libxcbutil-image
Version: 0.4.0
Release: alt1.1.0.e2k.1
Summary: Port of Xlib's XImage and XShmImage functions on top of libxcb
License: MIT
Group: System/Libraries
URL: http://xcb.freedesktop.org
Packager: Evgenii Terechkov <evg@altlinux.org>

Source: %name-%version.tar
Source1: m4.tar
Patch: %name-%version-%release.patch

BuildRequires: libxcbutil-devel >= 0.3.8
BuildRequires: xorg-xproto-devel xorg-util-macros

%description
XCB util-image module provides the following library:

  - image: Port of Xlib's XImage and XShmImage functions.

%package devel
Summary: Development and header files for %name
Group: Development/C
Requires: %name = %version-%release

%description devel
Development and header files for %name

%prep
%setup -a1
%ifarch %e2k
# -Werror=return-type problem
sed -i '/CWARNFLAGS/d' image/Makefile*
%endif

%build
%autoreconf
%configure --disable-static
%make_build

%install
%makeinstall_std

%files
%_libdir/*.so.*
%doc README NEWS

%files devel
%_includedir/xcb/*.h
%_libdir/*.so
%_pkgconfigdir/*.pc

%changelog
* Tue Mar 27 2018 Grigory Ustinov <grenka@altlinux.org> 0.4.0-alt1.1.0.e2k.1
- NMU: Replace e2k arch name with %%e2k macro.

* Fri Jan 13 2017 Michael Shigorin <mike@altlinux.org> 0.4.0-alt1.1
- E2K: drop -Werror=return-type

* Fri Oct 30 2015 Sergey V Turchin <zerg@altlinux.org> 0.4.0-alt1
- new version

* Wed Sep  5 2012 Terechkov Evgenii <evg@altlinux.org> 0.3.9-alt1
- Initial build for ALT Linux Sisyphus