libxklavier/libxklavier.spec

79 lines
2.0 KiB
RPMSpec
Raw Normal View History

2019-12-25 15:56:28 +08:00
Name: libxklavier
Version: 5.4
Release: 21
2019-12-25 15:56:28 +08:00
Summary: Library with X keyboard related functions
License: LGPLv2+
URL: https://www.freedesktop.org/wiki/Software/LibXklavier
Source0: http://people.freedesktop.org/~svu/%{name}-%{version}.tar.bz2
Patch9001: autogen.sh-Drop-intltool-requirement.patch
2020-03-21 10:23:10 -04:00
BuildRequires: make libX11-devel libxml2-devel iso-codes-devel glib2-devel libxkbfile-devel
2021-07-21 14:29:56 +08:00
BuildRequires: libXi-devel gobject-introspection-devel
2019-12-25 15:56:28 +08:00
Requires: iso-codes
2019-09-30 10:59:35 -04:00
%description
2019-12-25 15:56:28 +08:00
This package is a library that provides a high-level API for X keyboard extensions, called XKB.
This library can support XFree86 and other commercial X servers.
2019-09-30 10:59:35 -04:00
2019-12-25 15:56:28 +08:00
%package devel
Summary: Libxklavier development files
Requires: %{name} = %{version}-%{release} libxml2-devel
2019-09-30 10:59:35 -04:00
2019-12-25 15:56:28 +08:00
%description devel
This package contains all necessary include files and libraries needed to develop
applications that require these.
2019-09-30 10:59:35 -04:00
%package_help
%prep
%autosetup -n %{name}-%{version} -p1
%build
%configure --with-xkb-base='%{_datadir}/X11/xkb' --with-xkb-bin-base='%{_bindir}'
%make_build
2022-04-06 11:26:05 +08:00
%check
make check
2019-09-30 10:59:35 -04:00
%install
%make_install
%delete_la_and_a
2019-12-25 15:56:28 +08:00
%post
/sbin/ldconfig
%postun
/sbin/ldconfig
2019-09-30 10:59:35 -04:00
%files
%defattr(-,root,root)
2019-12-25 15:56:28 +08:00
%doc AUTHORS ChangeLog COPYING.LIB
%{_libdir}/{girepository-1.0/Xkl-1.0.typelib,libxklavier.so.*}
2019-09-30 10:59:35 -04:00
%files devel
%defattr(-,root,root)
2019-12-25 15:56:28 +08:00
%{_includedir}/libxklavier/*.h
%{_libdir}/{pkgconfig/libxklavier.pc,libxklavier.so}
2019-09-30 10:59:35 -04:00
%{_datadir}/gir-1.0/Xkl-1.0.gir
%files help
%defattr(-,root,root)
%doc NEWS README
%{_datadir}/gtk-doc/*
%changelog
* Tue Sep 6 2022 kouwenqi <kouwenqi@kylinos.cn> - 5.4-21
- Drop intltool requirement from autogen.sh
2022-04-06 11:26:05 +08:00
* Wed Apr 6 2022 liuyumeng1 <liuyumeng5@h-partners.com> -5.4-20
- enable tests
2021-07-21 14:29:56 +08:00
* Wed Jul 21 2021 yushaogui <yushaogui@huawei.com> - 5.4-19
- delete a buildrequires for gdb
2020-03-21 10:23:10 -04:00
* Sat Mar 21 2020 yanglijin <yanglijin@huawei.com> - 5.4-18
- modify buildrequires
2019-12-25 15:56:28 +08:00
* Wed Dec 11 2019 duyeyu <duyeyu@huawei.com> - 5.4-17
2020-03-21 10:23:10 -04:00
- Package init