libxklavier/libxklavier.spec

65 lines
1.6 KiB
RPMSpec
Raw Normal View History

2019-12-25 15:56:28 +08:00
Name: libxklavier
Version: 5.4
2020-03-21 10:23:10 -04:00
Release: 18
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
2020-03-21 10:23:10 -04:00
BuildRequires: make libX11-devel libxml2-devel iso-codes-devel glib2-devel libxkbfile-devel
2019-12-25 15:56:28 +08:00
BuildRequires: libXi-devel gdb gobject-introspection-devel
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
%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
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