You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
75 lines
1.6 KiB
75 lines
1.6 KiB
Name: libfakekey
|
|
Version: 0.3
|
|
%global so_version 0
|
|
Release: %autorelease
|
|
Summary: Library for converting characters to X key-presses
|
|
|
|
License: LGPLv2+
|
|
URL: https://git.yoctoproject.org/cgit/cgit.cgi/libfakekey
|
|
Source0: %{url}/snapshot/libfakekey-%{version}.tar.bz2
|
|
|
|
BuildRequires: gcc
|
|
BuildRequires: make
|
|
|
|
BuildRequires: autoconf
|
|
BuildRequires: automake
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: pkgconfig(x11)
|
|
BuildRequires: pkgconfig(xtst)
|
|
|
|
%description
|
|
libfakekey is a simple library for converting UTF-8 characters into 'fake' X
|
|
key-presses.
|
|
|
|
%package devel
|
|
Summary: Development files for libfakekey
|
|
|
|
Requires: libfakekey%{?_isa} = %{version}-%{release}
|
|
Requires: pkgconfig(x11)
|
|
Requires: pkgconfig(xtst)
|
|
|
|
%description devel
|
|
The libfakekey-devel package contains libraries and header files for developing
|
|
applications that use libfakekey.
|
|
|
|
|
|
%prep
|
|
%autosetup
|
|
|
|
|
|
%build
|
|
# The tarball generated from the git tag has no configure script, so this is
|
|
# mandatory. See autogen.sh (which, however, we do not use because we need to
|
|
# use the %%configure macro).
|
|
autoreconf -f -i -v
|
|
%configure --enable-maintainer-mode --disable-static
|
|
%make_build
|
|
|
|
|
|
%install
|
|
%make_install
|
|
rm -vf '%{buildroot}%{_libdir}/libfakekey.la'
|
|
|
|
|
|
# The only test is more like a demo; running it is not valueable
|
|
|
|
|
|
%{?el7:%ldconfig_scriptlets}
|
|
|
|
|
|
%files
|
|
%license COPYING
|
|
%{_libdir}/libfakekey.so.%{so_version}
|
|
%{_libdir}/libfakekey.so.%{so_version}.*
|
|
|
|
|
|
%files devel
|
|
%{_includedir}/fakekey/
|
|
%{_libdir}/libfakekey.so
|
|
%{_libdir}/pkgconfig/libfakekey.pc
|
|
|
|
|
|
%changelog
|
|
%autochangelog
|