1
0
forked from pool/libmaa
libmaa/libmaa.spec
Lars Vogdt e8d9546fac Accepting request 646404 from home:mcepl
- Add 02-Spelling-typos.patch and 03-Fix-gcc-8-ftbfs.patch from Debian
  package.

OBS-URL: https://build.opensuse.org/request/show/646404
OBS-URL: https://build.opensuse.org/package/show/Education/libmaa?expand=0&rev=2
2018-11-07 10:01:21 +00:00

89 lines
2.5 KiB
RPMSpec

#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
%define soname 3
Name: libmaa
Version: 1.3.2
Release: 1
License: GPL-2.0+
Summary: Library providing many low-level data structures
Url: http://www.dict.org
Group: System/Libraries
Source0: %{name}-%{version}.tar.bz2
Patch0: 02-Spelling-typos.patch
Patch1: 03-Fix-gcc-8-ftbfs.patch
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
%prep
%setup -q
%autopatch -p 1
%build
%configure --enable-dictorg
%__sed -i 's/-L.\/libmaa-1.3.1\/.libs/.\/.libs/' Makefile
make %{?_smp_mflags}
%install
%make_install
rm -f %{buildroot}%{_libdir}/*.la
rm -f %{buildroot}%{_libdir}/*.a
%post -n %{name}%{soname} -p /sbin/ldconfig
%postun -n %{name}%{soname} -p /sbin/ldconfig
%files -n %{name}%{soname}
%defattr(-,root,root)
%{_libdir}/*.so.*
%files -n %{name}-devel
%defattr(-,root,root)
%{_includedir}/maa*
%{_libdir}/*.so
%changelog