SHA256
1
0
forked from pool/libmaa
libmaa/libmaa.spec
Matej Cepl 16accf12ff Accepting request 668830 from home:mcepl:branches:Education
- Upgrade to libmaa-1.4.2:
  * Fix build failure on SunOS-5.11 (alloca)
  * License has been changed from LGPL to MIT, permitted by Rik
    Faith, original author of this library.
  * Build system changed from autotools to mk-configure.
  * Library version/soname was bumped from 3 to 4. I cannot
    guarantee that mk-configure and libtool build shared library
    the same way.
  * Tests were added for stk_*, mem_* and prm_* functions.
  * stk_isempty function was added.
  * stk_* and other was reimplemented without obstack functions
    (glibc extension).

OBS-URL: https://build.opensuse.org/request/show/668830
OBS-URL: https://build.opensuse.org/package/show/Education/libmaa?expand=0&rev=3
2019-01-26 17:58:36 +00:00

103 lines
2.8 KiB
RPMSpec

#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
%define soname 4
Name: libmaa
Version: 1.4.2
Release: 1
License: GPL-2.0+
Summary: Library providing many low-level data structures
Url: http://www.dict.org
Group: System/Libraries
Source0: https://downloads.sourceforge.net/dict/%{name}-%{version}.tar.gz
Patch0: 02-Spelling-typos.patch
Patch1: 03-Fix-gcc-8-ftbfs.patch
BuildRequires: bmake
BuildRequires: mk-configure
BuildRequires: bison
BuildRequires: flex
BuildRequires: libtool
BuildRequires: pam-devel
BuildRequires: zlib-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The libmaa library provides many low-level data structures which are
helpful for writing compilers, including hash tables, sets, lists,
debugging support, and memory management. Although libmaa was designed
and implemented as a foundation for the kheperalong, the data structures
are generally applicable to a wide range of programming problems.
The memory management routines are especially helpful for improving the
performance of memory-intensive applications.
%package -n %{name}%{soname}
Group: System/Libraries
PreReq: glibc
Summary: Library providing many low-level data structures
%description -n %{name}%{soname}
The libmaa library provides many low-level data structures which are
helpful for writing compilers, including hash tables, sets, lists,
debugging support, and memory management. Although libmaa was designed
and implemented as a foundation for the kheperalong, the data structures
are generally applicable to a wide range of programming problems.
The memory management routines are especially helpful for improving the
performance of memory-intensive applications.
%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
%description doc
This RPM contains the documentation files for libmaa
%prep
%setup -q
%autopatch -p 1
%build
mkcmake PREFIX=%{_prefix} LIBDIR=%{_libdir}
%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
%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