SHA256
1
0
forked from pool/libmaa

Accepting request 697365 from home:cheusov:branches:openSUSE:Factory

- Update to libmaa-1.4.4:
  * Fix compilation failure using gcc-8
- Simplify build process using capabilities of mk-configure
- Remove patches already applied in upstream
- Fix License in rpm spec
- Remove unnecessary dependencies from rpm spec

OBS-URL: https://build.opensuse.org/request/show/697365
OBS-URL: https://build.opensuse.org/package/show/Education/libmaa?expand=0&rev=8
This commit is contained in:
Matej Cepl 2019-04-24 09:16:47 +00:00 committed by Git OBS Bridge
parent 49b4ba086b
commit 5176375c25
6 changed files with 24 additions and 66 deletions

View File

@ -1,23 +0,0 @@
From: Robert Luberda <robert@debian.org>
Date: Wed, 4 May 2011 22:38:50 +0200
Subject: Spelling typos
Fix spelling typos found by lintian
---
maa/sl.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
--- a/maa/sl.c
+++ b/maa/sl.c
@@ -181,9 +181,9 @@ sl_List sl_create( int (*compare)( const
}
if (!compare)
- err_internal( __func__, "compare fuction is NULL\n" );
+ err_internal( __func__, "compare function is NULL\n" );
if (!key)
- err_internal( __func__, "key fuction is NULL\n" );
+ err_internal( __func__, "key function is NULL\n" );
l = mem_get_object( _sl_Memory );
#if MAA_MAGIC

View File

@ -1,24 +0,0 @@
From: Robert Luberda <robert@debian.org>
Date: Sun, 3 Jun 2018 16:28:38 +0200
Subject: Fix FTBFS with gcc-8
Increase buffer size to fix build failures like the one below:
../log.c:328:40: error: '%s' directive output may be truncated writing up to 4095 bytes into a region of size between 3838 and 4093 [-Werror=format-truncation=]
snprintf (buf, sizeof (buf), "%s(%s) %s\n",
Bugs-Debian: https://bugs.debian.org/897789
---
maa/log.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/maa/log.c
+++ b/maa/log.c
@@ -297,7 +297,7 @@ static void _log_base_va(
{
va_list ap_copy;
time_t t;
- static char buf [4096] = "";
+ static char buf [8192] = "";
static char buf_main [4096] = "";
static char buf_preamble [256] = "";

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:47fb588c454956d3e4712603f0a81455bfe8d9ccb1e38814483110069b22f696
size 173000

3
libmaa-1.4.4.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:fbd739e8467c4b7213594b172cfe3059443127313f8365224aa9c269498869e2
size 172643

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Tue Apr 23 22:06:51 MSK 2019 - vle@gmx.net
- Update to libmaa-1.4.4:
* Fix compilation failure using gcc-8
- Simplify build process using capabilities of mk-configure
- Remove patches already applied in upstream
- Fix License in rpm spec
- Remove unnecessary dependencies from rpm spec
-------------------------------------------------------------------
Thu Mar 7 23:47:47 CET 2019 - Matej Cepl <mcepl@suse.com>

View File

@ -19,21 +19,14 @@
%define soname 4
Name: libmaa
Version: 1.4.3
Version: 1.4.4
Release: 0
Summary: Library providing many low-level data structures
License: GPL-2.0-or-later
License: MIT
Group: Development/Libraries/C and C++
Url: http://www.dict.org
Source0: https://downloads.sourceforge.net/dict/%{name}-%{version}.tar.gz
Patch0: 02-Spelling-typos.patch
Patch1: 03-Fix-gcc-8-ftbfs.patch
BuildRequires: bison
BuildRequires: bmake
BuildRequires: flex
BuildRequires: libtool
BuildRequires: mk-configure
BuildRequires: pam-devel
BuildRequires: zlib-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -71,17 +64,19 @@ This RPM contains the documentation files for libmaa.
%prep
%setup -q
%autopatch -p 1
%define env \
unset MAKEFLAGS \
export MKSTATICLIB=no \
export NOSUBDIR=doc
%build
mkcmake PREFIX=%{_prefix} LIBDIR=%{_libdir}
%{env}
%{mkcmake}
%install
mkcmake install DESTDIR=%{?buildroot} \
PREFIX=%{_prefix} LIBDIR=%{_libdir}
rm -f %{buildroot}%{_libdir}/*.la
rm -f %{buildroot}%{_libdir}/*.a
rm -rf %{buildroot}%{_datadir}/doc/libmaa
%{env}
%{mkcmake} install DESTDIR=%{?buildroot}
%post -n %{name}%{soname} -p /sbin/ldconfig