%global libname termkey # Unibilium by default, otherwise ncurses %bcond_without unibilium Name: lib%{libname} Version: 0.22 Release: 1%{?dist} Summary: Library for easy processing of keyboard entry from terminal-based programs License: MIT URL: http://www.leonerd.org.uk/code/libtermkey Source0: %{url}/%{name}-%{version}.tar.gz # Non-upstream patches Patch0: 0001-build-take-into-account-CFLAGS-LDFLAGS-for-tests.patch Patch1: 0002-include-stdlib.h-for-putenv.patch BuildRequires: gcc BuildRequires: make BuildRequires: libtool %if %{with unibilium} BuildRequires: pkgconfig(unibilium) %else BuildRequires: pkgconfig(tinfo) %endif # For tests BuildRequires: %{_bindir}/prove %description This library allows easy processing of keyboard entry from terminal-based programs. It handles all the necessary logic to recognise special keys, UTF-8 combining, and so on, with a simple interface. %package devel Summary: Development files needed for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel %{summary}. %prep %autosetup -p1 # no need for demos sed -i -e '/^all:/s/$(DEMOS)//' Makefile %build CFLAGS="%{__global_cflags}" LDFLAGS="%{__global_ldflags}" %make_build VERBOSE=1 %install %make_install PREFIX=%{_prefix} LIBDIR=%{_libdir} rm -vf %{buildroot}%{_libdir}/*.{a,la} %check CFLAGS="%{__global_cflags} -D_XOPEN_SOURCE" LDFLAGS="%{__global_ldflags}" make test VERBOSE=1 %ldconfig_scriptlets %files %license LICENSE %{_libdir}/%{name}.so.* %files devel %{_libdir}/%{name}.so %{_includedir}/%{libname}.h %{_libdir}/pkgconfig/%{libname}.pc %{_mandir}/man3/%{libname}_*.3* %{_mandir}/man7/%{libname}.7* %changelog * Sat Dec 25 2021 Andreas Schneider - 0.22-1 - Update to version 0.22 * Thu Jul 22 2021 Fedora Release Engineering - 0.20-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 0.20-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Jul 28 2020 Fedora Release Engineering - 0.20-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Wed Jan 29 2020 Fedora Release Engineering - 0.20-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jul 25 2019 Fedora Release Engineering - 0.20-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Feb 01 2019 Fedora Release Engineering - 0.20-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 0.20-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Sat May 26 2018 Andreas Schneider - 0.20-4 - Rebuild against unibilium-2.0.0 * Wed Feb 07 2018 Fedora Release Engineering - 0.20-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Jan 31 2018 Igor Gnatenko - 0.20-2 - Switch to %%ldconfig_scriptlets * Wed Nov 08 2017 Andreas Schneider - 0.20-1 - Update to version 0.20 * Thu Aug 03 2017 Fedora Release Engineering - 0.18-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 0.18-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 0.18-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Dec 08 2016 Igor Gnatenko - 0.18-2 - Fix FTBFS * Thu Apr 14 2016 Igor Gnatenko - 0.18-1 - Initial package