[packages/libfep] - updated to 0.0.9 - removed obsolete gets patch

qboosh qboosh at pld-linux.org
Wed Dec 10 20:19:42 CET 2014


commit ec8890fdd7649ba6931ffe0b29345d510e821e83
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Wed Dec 10 20:20:09 2014 +0100

    - updated to 0.0.9
    - removed obsolete gets patch

 libfep-gets.patch | 28 ----------------------------
 libfep.spec       | 22 +++++++++++++++++-----
 2 files changed, 17 insertions(+), 33 deletions(-)
---
diff --git a/libfep.spec b/libfep.spec
index 18e0082..90e305c 100644
--- a/libfep.spec
+++ b/libfep.spec
@@ -6,17 +6,19 @@
 Summary:	Library to implement FEP (front end processor) on ANSI terminals
 Summary(pl.UTF-8):	Biblioteka do implementacji FEP (procesorów frontendowych) na terminalach ANSI
 Name:		libfep
-Version:	0.0.8
-Release:	2
+Version:	0.0.9
+Release:	1
 License:	GPL v3+
 Group:		Libraries
 #Source0Download: https://github.com/ueno/libfep/downloads
 Source0:	https://github.com/downloads/ueno/libfep/%{name}-%{version}.tar.gz
-# Source0-md5:	a360b049822506c53e9243d9e0a3f879
-Patch0:		%{name}-gets.patch
+# Source0-md5:	ab0dbc87b619e02e0f52a5818ff030ad
 URL:		https://github.com/ueno/libfep/
+BuildRequires:	autoconf >= 2.63
+BuildRequires:	automake >= 1:1.11
 BuildRequires:	glib2-devel >= 2.0
 BuildRequires:	gobject-introspection-devel >= 0.9.0
+BuildRequires:	libtool >= 2:2
 BuildRequires:	pkgconfig
 BuildRequires:	pkgconfig(ncurses)
 BuildRequires:	gtk-doc >= 1.14
@@ -92,9 +94,19 @@ Dokumentacja API biblioteki libfep.
 
 %prep
 %setup -q
-%patch0 -p1
+
+# force rebuild
+%{__rm} docs/libfep/*.txt docs/libfep-glib/*.txt
 
 %build
+# must rebuild libtool because included one uses Debian's link_all_deplibs=no
+# patch, which cases g-ir-scanner to fail on libfep-glib when older libfep is
+# installed on build host
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
 %configure \
 	%{?with_apidocs:--enable-gtk-doc} \
 	%{?with_static_libs:--enable-static} \
diff --git a/libfep-gets.patch b/libfep-gets.patch
deleted file mode 100644
index beaa3a2..0000000
--- a/libfep-gets.patch
+++ /dev/null
@@ -1,28 +0,0 @@
---- libfep-0.0.8/lib/stdio.in.h.orig	2012-03-29 03:17:35.000000000 +0200
-+++ libfep-0.0.8/lib/stdio.in.h	2012-11-22 18:53:14.053840934 +0100
-@@ -699,25 +699,6 @@
- # endif
- #endif
- 
--#if @GNULIB_GETS@
--# if @REPLACE_STDIO_READ_FUNCS@ && @GNULIB_STDIO_H_NONBLOCKING@
--#  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
--#   undef gets
--#   define gets rpl_gets
--#  endif
--_GL_FUNCDECL_RPL (gets, char *, (char *s) _GL_ARG_NONNULL ((1)));
--_GL_CXXALIAS_RPL (gets, char *, (char *s));
--# else
--_GL_CXXALIAS_SYS (gets, char *, (char *s));
--#  undef gets
--# endif
--_GL_CXXALIASWARN (gets);
--/* It is very rare that the developer ever has full control of stdin,
--   so any use of gets warrants an unconditional warning.  Assume it is
--   always declared, since it is required by C89.  */
--_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
--#endif
--
- 
- #if @GNULIB_OBSTACK_PRINTF@ || @GNULIB_OBSTACK_PRINTF_POSIX@
- struct obstack;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libfep.git/commitdiff/ec8890fdd7649ba6931ffe0b29345d510e821e83



More information about the pld-cvs-commit mailing list