Compare commits

...

9 Commits

Author SHA1 Message Date
Andreas Schneider d58ed04b42 Rebuild against unibilium-2.0.0 2018-05-26 17:45:25 +02:00
Fedora Release Engineering 427892b2e4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2018-02-07 23:29:06 +00:00
Igor Gnatenko 672b0ed974
Switch to %ldconfig_scriptlets
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
2018-01-31 17:53:49 +01:00
Andreas Schneider 30c1fcba5a Update to version 0.20
Merges: https://src.fedoraproject.org/rpms/libtermkey/pull-request/1
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
2017-11-08 11:00:53 +01:00
Fedora Release Engineering 8f7027640d - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild 2017-08-03 02:22:18 +00:00
Fedora Release Engineering 7eb2ade609 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild 2017-07-26 19:49:04 +00:00
Fedora Release Engineering 98d6ec8a5e - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild 2017-02-10 19:32:57 +00:00
Igor Gnatenko abeacb8dd9 Fix FTBFS
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-12-08 21:38:35 +01:00
Igor Gnatenko bdfe3d4450 initial import
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2016-08-16 19:46:55 +02:00
5 changed files with 149 additions and 0 deletions

2
.gitignore vendored
View File

@ -0,0 +1,2 @@
/libtermkey-0.18.tar.gz
/libtermkey-0.20.tar.gz

View File

@ -0,0 +1,26 @@
From 69d5e2d1451d7f2114d4e46dc60eb731eb721c83 Mon Sep 17 00:00:00 2001
From: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Date: Thu, 8 Dec 2016 21:05:10 +0100
Subject: [PATCH 1/2] build: take into account CFLAGS/LDFLAGS for tests
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 58ba9b3..67da0fe 100644
--- a/Makefile
+++ b/Makefile
@@ -83,7 +83,7 @@ demo-glib: $(LIBRARY) demo-glib.lo
$(LIBTOOL) --mode=link --tag=CC $(CC) -o $@ $^ $(call pkgconfig, glib-2.0 --libs)
t/%.t: t/%.c $(LIBRARY) t/taplib.lo
- $(LIBTOOL) --mode=link --tag=CC $(CC) -o $@ $^
+ $(LIBTOOL) --mode=link --tag=CC $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
t/taplib.lo: t/taplib.c
$(LIBTOOL) --mode=compile --tag=CC $(CC) $(CFLAGS) -o $@ -c $^
--
2.11.0

View File

@ -0,0 +1,24 @@
From 0f9ae3282a20e5877c5e8884d749559dc9d204f2 Mon Sep 17 00:00:00 2001
From: Igor Gnatenko <i.gnatenko.brain@gmail.com>
Date: Thu, 8 Dec 2016 21:09:03 +0100
Subject: [PATCH 2/2] include <stdlib.h> for putenv()
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
---
t/05read.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/t/05read.c b/t/05read.c
index 073c43d..c9bbe93 100644
--- a/t/05read.c
+++ b/t/05read.c
@@ -1,5 +1,6 @@
#include <stdio.h>
#include <errno.h>
+#include <stdlib.h>
#include <unistd.h>
#include "../termkey.h"
#include "taplib.h"
--
2.11.0

96
libtermkey.spec Normal file
View File

@ -0,0 +1,96 @@
%global libname termkey
# Unibilium by default, otherwise ncurses
%bcond_without unibilium
Name: lib%{libname}
Version: 0.20
Release: 4%{?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 May 26 2018 Andreas Schneider <asn@redhat.com> - 0.20-4
- Rebuild against unibilium-2.0.0
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.20-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Wed Jan 31 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.20-2
- Switch to %%ldconfig_scriptlets
* Wed Nov 08 2017 Andreas Schneider <asn@redhat.com> - 0.20-1
- Update to version 0.20
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.18-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.18-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.18-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Thu Dec 08 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.18-2
- Fix FTBFS
* Thu Apr 14 2016 Igor Gnatenko <ignatenko@redhat.com> - 0.18-1
- Initial package

View File

@ -0,0 +1 @@
SHA512 (libtermkey-0.20.tar.gz) = 81a4bc5917c60ca692ec3065ac0252ae5dc1adccc2832be1c83c82318c97473d883900ab88a8a0ee08ab3f831ff07f3a4827ee3d8e936a3a42c4708ee58f6301