libxkbcommon/libxkbcommon.spec
jzm369 777848f5a9 remove rpath runpatch and add check in spec
(cherry picked from commit 55f8500524eab8842ecfc8265a564fc2d0eaabc8)
2021-05-21 10:06:38 +08:00

127 lines
3.2 KiB
RPMSpec

Name: libxkbcommon
Version: 0.8.4
Release: 6
Summary: X.Org X11 XKB parsing library
License: MIT
URL: https://www.x.org
Source0: https://xkbcommon.org/download/%{name}-%{version}.tar.xz
Patch0001: backport-add-XKB_KEY_XF86FullScreen-to-solve-could-not-resolve-keysym-XF86FullScreen.patch
BuildRequires: autoconf automake libtool pkgconfig(xcb-xkb) >= 1.10
BuildRequires: xorg-x11-util-macros byacc flex bison libX11-devel
BuildRequires: xorg-x11-proto-devel xkeyboard-config-devel chrpath
Requires: xkeyboard-config
%description
xkbcommon is a library for handling of keyboard descriptions, including
loading them from disk, parsing them and handling their state. It's mainly
meant for client toolkits, window systems, and other system applications
%package devel
Summary: X.Org X11 XKB parsing development package
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
X.Org X11 XKB parsing development package
%package x11
Summary: X.Org X11 XKB keymap creation library
Requires: %{name}%{?_isa} = %{version}-%{release}
%description x11
%{name}-x11 is the X.Org library for creating keymaps by querying the X
server.
%package x11-devel
Summary: X.Org X11 XKB keymap creation library
Requires: %{name}-x11%{?_isa} = %{version}-%{release}
%description x11-devel
X.Org X11 XKB keymap creation library development package
%prep
%autosetup -n %{name}-%{version} -p1
autoreconf -v --install || exit 1
%build
%configure --disable-silent-rules --enable-x11 --disable-docs
%make_build
%check
make check
%install
%make_install
%delete_la
# remove rpath
chrpath -d %{buildroot}%{_libdir}/libxkbcommon-x11.so.0.0.0
mkdir -p %{buildroot}/etc/ld.so.conf.d
echo "/usr/lib64" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf
%post x11
/sbin/ldconfig
%postun x11
/sbin/ldconfig
%files
%defattr(-,root,root)
%license LICENSE
%{_libdir}/%{name}.so.*
%files devel
%defattr(-,root,root)
%{_libdir}/libxkbcommon.so
%{_libdir}/*.a
%{_includedir}/xkbcommon/*.h
%{_libdir}/pkgconfig/xkbcommon.pc
%exclude %{_includedir}/xkbcommon/xkbcommon-x11.h
%ldconfig_scriptlets x11
%files x11
%{_libdir}/libxkbcommon-x11.so.0.0.0
%{_libdir}/libxkbcommon-x11.so.0
%config(noreplace) /etc/ld.so.conf.d/*
%files x11-devel
%{_libdir}/libxkbcommon-x11.so
%{_includedir}/xkbcommon/xkbcommon-x11.h
%{_libdir}/pkgconfig/xkbcommon-x11.pc
%changelog
* Tue Feb 9 2021 jinzhimin <jinzhimin2@huawei.com> - 0.8.4-6
- add check in spec
* Tue Feb 9 2021 jinzhimin <jinzhimin2@huawei.com> - 0.8.4-5
- remove rpath and runpath of exec files and libraries
* Fri Jan 29 2021 chengguipeng<chengguipeng1@huawei.com> - 0.8.4-4
- Type: bugfix
- ID: NA
- SUG: NA
- DESC:solve the issue which dispaly could not resolve keysym XF86FullScreen
* Wed Jan 8 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.8.4-3
- Type: enhancement
- ID: NA
- SUG: NA
- DESC:delete redundant files
* Mon Sep 23 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.8.4-2
- Type: enhancement
- ID: NA
- SUG: NA
- DESC: rebuilt spec, add x11,x11-devel package.
* Tue Sep 17 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.8.4-1
- Package init