1
0
forked from pool/libmaa
libmaa/libmaa.spec
Matej Cepl 80226aa2c2 Accepting request 793556 from home:alois:branches:Education
- Update to version 1.4.7
  * Fix incorrect work of set_* where hash function generates
    full ulong_t hash value
  * hsh_string_hash generates full 64bit hash value on platforms
    where sizeof(long) == 8
  * Improve build and test system
  * tests/err: minor fix, target "test" should not remove _mkc_*
    and .o files
  * Avoid trailing \n in format argument for err_* functions, no
    need for it any longer
  * tests/err/errtest.c: fix another compilation failure due to
    __wur (warning used result)
  version 1.4.6
  * Add missing fix (compilation failure) for tests/err/errtest.c
  version 1.4.5
  * err_* functions:
    + Fix segfault caused by "ap" is used twice.  Solution is to
      va_copy it and use copied "ap" for printing to stderr.
    + Improve formatting (no empty lines in log files)
  * err_set_program_name: handle correctly NULL argument
  * log_mkpath function: avoid use of alloca(3)
  * hsh_pointer_compare function now follows -1/0/1 logic
  * Add more tests for log_*, err_*, hsh_* and set_* function
- Fix build with gcc 9.x
- Drop Group tag
- Spec cleanup

OBS-URL: https://build.opensuse.org/request/show/793556
OBS-URL: https://build.opensuse.org/package/show/Education/libmaa?expand=0&rev=11
2020-04-14 08:57:38 +00:00

98 lines
2.7 KiB
RPMSpec

#
# spec file for package libmaa
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define soname 4
Name: libmaa
Version: 1.4.7
Release: 0
Summary: Library providing many low-level data structures
License: MIT
URL: http://www.dict.org
Source0: https://downloads.sourceforge.net/dict/%{name}-%{version}.tar.gz
BuildRequires: mk-configure
BuildRequires: pkgconfig(zlib)
%description
The libmaa library provides many low-level data structures which can
be used for writing compilers, hash tables, sets, lists,
debugging support, and memory management. libmaa was originally
implemented as a foundation for the "kheperalong" package.
%package -n %{name}%{soname}
Summary: Library providing many low-level data structures
Group: System/Libraries
%description -n %{name}%{soname}
The libmaa library provides many low-level data structures which can
be used for writing compilers, hash tables, sets, lists,
debugging support, and memory management. libmaa was originally
implemented as a foundation for the "kheperalong" package.
%package -n %{name}-devel
Summary: Development files for libmaa
Group: Development/Libraries/C and C++
Requires: libmaa%{soname} = %{version}
%description -n %{name}-devel
This RPM contains the development files for libmaa.
%package doc
Summary: Documentation files for libmaa
Group: Documentation/Other
BuildArch: noarch
%description doc
This RPM contains the documentation files for libmaa.
%prep
%autosetup
%define env \
unset MAKEFLAGS \
export MKSTATICLIB=no \
export NOSUBDIR=doc
%build
%if 0%{?suse_version} > 1500 || 0%{?sle_version} >= 150200
mkc_compiler_settings
%endif
%{env}
%{mkcmake}
%install
%{env}
%{mkcmake} install DESTDIR=%{?buildroot}
%post -n %{name}%{soname} -p /sbin/ldconfig
%postun -n %{name}%{soname} -p /sbin/ldconfig
%files -n %{name}%{soname}
%license doc/LICENSE
%doc README doc/NEWS
%{_libdir}/*.so.*
%files -n %{name}-devel
%{_includedir}/maa*
%{_libdir}/*.so
%files doc
%license doc/LICENSE
%doc doc/*.ps*
%changelog